internal static IExportJob ConvertServerExportJob(Service.ExportJob exportJob) { Proxy.ExportJob result = new Proxy.ExportJob(); result.Id = exportJob.Id; result.IsCurrent = exportJob.IsCurrent; result.Link = exportJob.Link; result.Status = ConvertServerExportStatus(exportJob.Status); if (exportJob.Created.HasValue) { result.Created = exportJob.Created.Value; } result.CreatedBy = new GlymaUser(exportJob.CreatedBy.Name); result.Type = ConvertServerExportType(exportJob.Type); result.MapType = ConvertServerMapType(exportJob.MapType); result.ExportProperties = exportJob.ExportProperties; result.PercentageComplete = exportJob.PercentageComplete; return result; }
internal static IExportJob ConvertServerExportJob(Service.ExportJob exportJob) { Proxy.ExportJob result = new Proxy.ExportJob(); result.Id = exportJob.Id; result.IsCurrent = exportJob.IsCurrent; result.Link = exportJob.Link; result.Status = ConvertServerExportStatus(exportJob.Status); if (exportJob.Created.HasValue) { result.Created = exportJob.Created.Value; } result.CreatedBy = new GlymaUser(exportJob.CreatedBy.Name); result.Type = ConvertServerExportType(exportJob.Type); result.MapType = ConvertServerMapType(exportJob.MapType); result.ExportProperties = exportJob.ExportProperties; result.PercentageComplete = exportJob.PercentageComplete; return(result); }