コード例 #1
0
        public void update_(FriendModel friendModel, string id)
        {
            WWWForm form = new WWWForm();

            form.AddField("friend_id", friendModel.friend_id);
            form.AddField("friend_from", friendModel.friend_from);
            form.AddField("friend_to", friendModel.friend_to);
            form.AddField("status", friendModel.status);
            httpHandlerScript.POST(Config.apiUrl + "friends/update/" + id, CallBackUpdate, form);
        }
コード例 #2
0
        public void create(FriendModel friendModel)
        {
            WWWForm form = new WWWForm();

            form.AddField("friend_id", friendModel.friend_id);
            form.AddField("friend_from", friendModel.friend_from);
            form.AddField("friend_to", friendModel.friend_to);
            form.AddField("status", friendModel.status);
            httpHandlerScript.POST(Config.apiUrl + "friends/store", CallBackCreate, form);
        }
コード例 #3
0
        void CallBackDelete(string response)
        {
            if (response == "")
            {
                return;
            }
            FriendModel friend = JsonUtility.FromJson <FriendModel>(response);

            print(friend);
        }