Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static void UpdateItemByStackIds(List <UpdateItemsByStackIdRequest.UpdateOrderByStackId> orders, Action <UpdatedStacksResponse> callback, AlternateDestinationOwner destinationOwner = null)
 {
     CallHandler.Instance.UpdateItemByStackIds(orders, callback, destinationOwner);
 }
Beispiel #3
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));
     }));
 }