public static SyncCopyContentToDeviceTargetReturnValue Get_ReturnValue(SyncCopyContentToDeviceTarget.CallPrepareTargetAndListItemsToCopyReturnValue callPrepareTargetAndListItemsToCopyOutput) { return new SyncCopyContentToDeviceTargetReturnValue { CopiedItems = callPrepareTargetAndListItemsToCopyOutput.ItemsToCopy, DeletedItems = callPrepareTargetAndListItemsToCopyOutput.ItemsDeleted }; }
public static void ExecuteMethod_CopyItemsToCopyToTargetDevice(AuthenticatedAsActiveDevice authenticatedAsActiveDevice, SyncCopyContentToDeviceTarget.CallPrepareTargetAndListItemsToCopyReturnValue callPrepareTargetAndListItemsToCopyOutput) { var itemsToCopy = callPrepareTargetAndListItemsToCopyOutput.ItemsToCopy; foreach(var itemToCopy in itemsToCopy) { string ownerRelatedLocation = StorageSupport.RemoveOwnerPrefixIfExists(itemToCopy.ContentLocation); DeviceSupport.PushContentToDevice(authenticatedAsActiveDevice, ownerRelatedLocation, ownerRelatedLocation); } }