public string ToHashable()
        {
            string HashValue = AlternateDestinationOwner.ToHashable(AlternateDestination);

            SelectedVouchers.ForEach(v => HashValue += v.ToHashable());
            return(HashValue);
        }
Exemplo n.º 2
0
 public UpdateItemsByIdsRequest(int itemId, int amount, int location, AlternateDestinationOwner alternateDestination = null)
 {
     Orders = new List <UpdateOrderByID>()
     {
         new UpdateOrderByID(itemId, amount, location)
     };
     AlternateDestination = alternateDestination;
 }
Exemplo n.º 3
0
        public string ToHashable()
        {
            string resluts = "";

            Orders.ForEach(x => resluts += x.ToHashable());
            resluts += AlternateDestinationOwner.ToHashable(AlternateDestination);
            return(resluts);
        }
 public MoveItemsRequest(MoveOrder singleMoveOrder, AlternateDestinationOwner alternateDestination = null)
 {
     MoveOrders = new List <MoveOrder>()
     {
         singleMoveOrder
     };
     AlternateDestination = alternateDestination;
 }
        public string ToHashable()
        {
            string Results = "";

            MoveOrders.ForEach(order => { Results += order.ToHashable(); });
            Results += AlternateDestinationOwner.ToHashable(AlternateDestination);
            return(Results);
        }
 public RedeemItemVouchersRequest(int voucherId, int itemId, int amount, int location = 0, AlternateDestinationOwner alternateDestination = null)
 {
     SelectedVouchers = new List <ItemVoucherSelection>()
     {
         new ItemVoucherSelection(voucherId, itemId, amount, location)
     };
     AlternateDestination = alternateDestination;
 }
 public static void UpdateItemByStackIds(string stackId, int amount, int location, Action<UpdatedStacksResponse> callback, AlternateDestinationOwner otherOwner = null)
 {
     List<UpdateItemsByStackIdRequest.UpdateOrderByStackId> orders = new List<UpdateItemsByStackIdRequest.UpdateOrderByStackId>(){
     new UpdateItemsByStackIdRequest.UpdateOrderByStackId(){
         stackId = stackId,
         amount = amount,
         location = location
     }
     };
     CallHandler.Instance.UpdateItemByStackIds(orders, callback, otherOwner);
 }
 public RedeemItemVouchersRequest(List <ItemVoucherSelection> selectedVouchers, AlternateDestinationOwner alternateDestination = null)
 {
     SelectedVouchers     = selectedVouchers;
     AlternateDestination = alternateDestination;
 }
Exemplo n.º 9
0
 public void UpdateItemByStackIds(List<UpdateItemsByStackIdRequest.UpdateOrderByStackId> orders, Action<UpdatedStacksResponse> callback, AlternateDestinationOwner destinationOwner = null)
 {
     StartCoroutine(ServiceGetString(callObjectCreator.CreateUpdateItemByStackIdRequestCallObject(new UpdateItemsByStackIdRequest() { Orders = orders, AlternateDestination = destinationOwner }), x =>
     {
         callback(responseCreator.CreateUpdatedStacksResponse(x));
     }));
 }
 public static string ToHashable(AlternateDestinationOwner value)
 {
     return value == null ? "" : value.ToHashable();
 }
Exemplo n.º 11
0
 public MoveItemsRequest(MoveOrder singleMoveOrder, AlternateDestinationOwner alternateDestination = null)
 {
     MoveOrders = new List<MoveOrder>() { singleMoveOrder };
     AlternateDestination = alternateDestination;
 }
 public UpdateItemsByIdsRequest(List<UpdateOrderByID> orders, AlternateDestinationOwner alternateDestination = null)
 {
     Orders = orders;
     AlternateDestination = alternateDestination;
 }
Exemplo n.º 13
0
 public MoveItemsRequest(List <MoveOrder> moveOrders, AlternateDestinationOwner alternateDestination = null)
 {
     MoveOrders           = moveOrders;
     AlternateDestination = alternateDestination;
 }
 public RedeemItemVouchersRequest(int voucherId, int itemId, int amount, int location = 0, AlternateDestinationOwner alternateDestination = null)
 {
     SelectedVouchers = new List<ItemVoucherSelection>() { new ItemVoucherSelection(voucherId, itemId, amount, location) };
     AlternateDestination = alternateDestination;
 }
 public RedeemItemVouchersRequest(List<ItemVoucherSelection> selectedVouchers, AlternateDestinationOwner alternateDestination = null)
 {
     SelectedVouchers = selectedVouchers;
     AlternateDestination = alternateDestination;
 }
Exemplo n.º 16
0
 public UpdateItemsByIdsRequest(List <UpdateOrderByID> orders, AlternateDestinationOwner alternateDestination = null)
 {
     Orders = orders;
     AlternateDestination = alternateDestination;
 }
 public UpdateItemsByIdsRequest(int itemId, int amount, int location, AlternateDestinationOwner alternateDestination = null)
 {
     Orders = new List<UpdateOrderByID>() { new UpdateOrderByID(itemId, amount, location) };
     AlternateDestination = alternateDestination;
 }
 public static void UpdateItemByStackIds(List<UpdateItemsByStackIdRequest.UpdateOrderByStackId> orders, Action<UpdatedStacksResponse> callback, AlternateDestinationOwner destinationOwner = null)
 {
     CallHandler.Instance.UpdateItemByStackIds(orders, callback, destinationOwner);
 }
Exemplo n.º 19
0
 public static string ToHashable(AlternateDestinationOwner value)
 {
     return(value == null ? "" : value.ToHashable());
 }
Exemplo n.º 20
0
 public MoveItemsRequest(List<MoveOrder> moveOrders, AlternateDestinationOwner alternateDestination = null)
 {
     MoveOrders = moveOrders;
     AlternateDestination = alternateDestination;
 }