public static YaR.MailRuCloud.Api.Base.File ToFile(this ListRequest.Result data) { var source = data.Item as FsFile; var res = source.ToFile(); //new File(data.FullPath, (long)source.Size, source.Sha1.ToHexString()); return(res); }
internal static File ToFile(this ListRequest.Result data) { var source = data.Item as FsFile; var res = source.ToFile(); //new File(data.FullPath, (long)source.Size, source.Sha1.ToHexString()); return(res); }
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); }
internal static IEntry ToEntry(this ListRequest.Result data) { Cloud.ItemType itemType = data.Item is FsFile ? Cloud.ItemType.File : Cloud.ItemType.Folder; var entry = itemType == Cloud.ItemType.File ? (IEntry)data.ToFile() : data.ToFolder(); return(entry); }
public static YaR.MailRuCloud.Api.Base.Folder ToFolder(this ListRequest.Result data) { var res = (data.Item as FsFolder)?.ToFolder(); return(res); }
internal static Folder ToFolder(this ListRequest.Result data) { var res = (data.Item as FsFolder)?.ToFolder(); return(res); }