Beispiel #1
0
        public void createUserItem(ItemUserModel userItem)
        {
            WWWForm form = new WWWForm();

            form.AddField("user_id", userItem.user_id);
            form.AddField("item_id", userItem.item_id);
            form.AddField("status", userItem.status);
            httpHandlerScript.POST(Config.apiUrl + "itemsUsers/store", CallBackCreate, form);
        }
Beispiel #2
0
        void CallBackSetBroken(string response)
        {
            if (response == "")
            {
                return;
            }
            ItemUserModel userItem = JsonUtility.FromJson <ItemUserModel>(response);

            print(userItem);
        }
Beispiel #3
0
        void CallBackCreate(string response)
        {
            print(response);
            if (response == "")
            {
                return;
            }
            ItemUserModel itemUser = JsonUtility.FromJson <ItemUserModel>(response);

            print(itemUser);
        }