public FileProfile(string localPath, BookmarkFileType fileType, DateTime lastTimeUtc, IFileDataProviderService providerService) { LocalPath = localPath; FileType = fileType; LastTimeUtc = lastTimeUtc; ProviderService = providerService; }
public static string GetExtension(this BookmarkFileType fileType) { return(fileType switch { BookmarkFileType.BookmarkBody => "vbm", BookmarkFileType.BookmarkImage => "jpg", _ => throw new ArgumentOutOfRangeException(nameof(fileType), fileType, null) });