public static IEntry ToEntry(this ListRequest.Result data) { MailRuCloud.ItemType itemType = data.Item is FsFile ? MailRuCloud.ItemType.File : MailRuCloud.ItemType.Folder; var entry = itemType == MailRuCloud.ItemType.File ? (IEntry)data.ToFile() : data.ToFolder(); return(entry); }
public Link(string href, MailRuCloud.ItemType itemType = MailRuCloud.ItemType.Unknown) { Href = href; IsLinkedToFileSystem = false; ItemType = itemType; }