public static ParaObjects.Download GetDetails(XmlDocument xml) { var entity = ParaEntityParser.EntityFillDownload(xml); entity.FullyLoaded = true; entity.ApiCallResponse.XmlReceived = xml; entity.ApiCallResponse.Id = entity.Id; entity.IsDirty = false; return(entity); }
/// <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); }