public static Transfer ToModel(this Api.ResponseObjects.Transfers.Transfer @this, IPropertyChangedInvoke invoker) { var result = new Transfer { Name = @this.name, Size = @this.size, PercentComplete = @this.percent_done, TransferID = @this.id, Status = @this.status.ToStatusType(), Invoker = invoker, TimeRemaining = (@this.estimated_time ?? 0), DownSpeed = @this.down_speed }; return result; }
public static Transfer ToModel(this Api.ResponseObjects.Transfers.Transfer @this, IPropertyChangedInvoke invoker) { var result = new Transfer { Name = @this.name, Size = @this.size, PercentComplete = @this.percent_done, TransferID = @this.id, Status = @this.status.ToStatusType(), Invoker = invoker, TimeRemaining = (@this.estimated_time ?? 0), DownSpeed = @this.down_speed }; return(result); }
public void CancelTransfer(Transfer selectedItem) { CancelTransfers(new List<int> { selectedItem.TransferID }); }