public Request SendItems(CryptoItemBatch sendItems, int userID) { _query = @"mutation advancedSend{CreateEnjinRequest(identity_id:" + userID.ToString() + ",type:ADVANCED_SEND,advanced_send_token_data:{transfers:["; for (int i = 0; i < sendItems.Items.Count; i++) { _query += "{" + sendItems.Items[i] + "}"; if (i < sendItems.Items.Count - 1) { _query += ","; } } _query += "]}){id,encoded_data}}"; GraphQuery.POST(_query); Debug.Log("<color=white>[DEBUG INFO]</color> " + _query); if (Enjin.ServerResponse == ResponseCodes.SUCCESS) { return(JsonUtility.FromJson <Request>(EnjinHelpers.GetJSONString(GraphQuery.queryReturn, 2))); } return(null); }
public static Request SendBatchCryptoItems(CryptoItemBatch items, int userID) { return(_requests.SendItems(items, userID)); }