예제 #1
0
        public void ChangeUserData(UserDataChangeModel model, Action <UserGameData> resultCallback)
        {
            userGameData.first_name = model.first_name;
            userGameData.last_name  = model.last_name;
            userGameData.nickname   = model.nickname;
            userGameData.email      = model.email;

            resultCallback(userGameData);
        }
예제 #2
0
        public void ChangeUserData(UserDataChangeModel model, Action <UserGameData> resultCallback)
        {
            var request = new PostRequest <UserGameData>()
                          .SelectMethod(NetworkConstants.Methods.USER_DATA_EDIT)
                          .AddBodyParameters(model)
                          .AddSuccesCallback(data => {
                userGameData = data;
                resultCallback(data);
            })
                          .Build();

            networking.SendRequest(request);
        }