// Convert from API to SDK PackageCompletionReport private Silanis.ESL.SDK.PackageCompletionReport ToSDKPackageCompletionReport(Silanis.ESL.API.PackageCompletionReport apiPackageCompletionReport) { Silanis.ESL.SDK.PackageCompletionReport sdkPackageCompletionReport = new Silanis.ESL.SDK.PackageCompletionReport(apiPackageCompletionReport.Name); sdkPackageCompletionReport.Id = apiPackageCompletionReport.Id; sdkPackageCompletionReport.Created = apiPackageCompletionReport.Created; sdkPackageCompletionReport.DocumentPackageStatus = new PackageStatusConverter(apiPackageCompletionReport.Status).ToSDKPackageStatus(); sdkPackageCompletionReport.Trashed = apiPackageCompletionReport.Trashed.Value; return(sdkPackageCompletionReport); }
// Convert from API to SDK PackageCompletionReport private Silanis.ESL.SDK.PackageCompletionReport ToSDKPackageCompletionReport(Silanis.ESL.API.PackageCompletionReport apiPackageCompletionReport) { Silanis.ESL.SDK.PackageCompletionReport sdkPackageCompletionReport = new Silanis.ESL.SDK.PackageCompletionReport(apiPackageCompletionReport.Name); sdkPackageCompletionReport.Id = apiPackageCompletionReport.Id; sdkPackageCompletionReport.Created = apiPackageCompletionReport.Created; sdkPackageCompletionReport.DocumentPackageStatus = new PackageStatusConverter(apiPackageCompletionReport.Status).ToSDKPackageStatus(); sdkPackageCompletionReport.Trashed = apiPackageCompletionReport.Trashed.Value; return sdkPackageCompletionReport; }