コード例 #1
0
            public override void Callback(Gs2RestResponse gs2RestResponse)
            {
                var    error       = gs2RestResponse.Error;
                string accessToken = null;

                if (error == null)
                {
                    try
                    {
                        accessToken = LoginResult.FromDict(JsonMapper.ToObject(gs2RestResponse.Message)).access_token;
                    }
                    catch (System.Exception)
                    {
                        error = new UnknownException("JSON parsing error: \n" + gs2RestResponse.Message);
                    }
                }

                _gs2RestSession.OpenCallback(accessToken, error);
            }
コード例 #2
0
 public abstract void Callback(Gs2RestResponse gs2RestResponse);
コード例 #3
0
 public override void Callback(Gs2RestResponse gs2RestResponse)
 {
     _gs2RestSession.OnMessage(_gs2SessionTaskId, gs2RestResponse);
 }