namespace InnovEnergy.API; public static class Extensions { public const String Installation = ".inst"; public const String Folder = ".folder"; public const String Viewer = ".viewer"; public const String Admin = ".admin"; public const String Editor = ".editor"; public static Boolean IsInstallation(this String path) => path.EndsWith(Installation); public static Boolean IsFolder (this String path) => path.EndsWith(Folder); public static Boolean IsViewer (this String path) => path.EndsWith(Viewer); public static Boolean IsEditor (this String path) => path.EndsWith(Editor); public static Boolean IsAdmin (this String path) => path.EndsWith(Admin); public static Boolean IsUser (this String path) => path.IsViewer() || path.IsEditor() || path.IsAdmin(); }