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