/// <summary> /// Retrieve the details for a specific Parature module entity with custom query string arguments /// </summary> /// <typeparam name="T"></typeparam> /// <param name="pc"></param> /// <param name="entityId"></param> /// <returns></returns> internal static ParaObjects.Download ApiGetDownloadEntity(ParaCredentials pc, long entityId, ArrayList arl) { var entity = new ParaObjects.Download(); var req = ApiCallFactory.ObjectGetDetail <ParaObjects.Download>(pc, entityId, arl); if (req.HasException == false) { entity = ParaEntityParser.EntityFillDownload(req.XmlReceived); entity.FullyLoaded = true; } else { entity.FullyLoaded = false; entity.Id = 0; } entity.ApiCallResponse = req; entity.IsDirty = false; return(entity); }
public Download(Download download) : base(download) { Id = download.Id; Date_Created = download.Date_Created; Date_Updated = download.Date_Updated; Description = download.Description; External_Link = download.External_Link; MultipleFolders = download.MultipleFolders; Folders = download.Folders; Guid = download.Guid; Permissions = new List<Sla>(download.Permissions); Name = download.Name; Products = new List<Product>(download.Products); Published = download.Published; Title = download.Title; Visible = download.Visible; Eula = new EulaReference(); Eula.Eula = download.Eula.Eula; File_Hits = download.File_Hits; File_Size = download.File_Size; }