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); }
public abstract void Callback(Gs2RestResponse gs2RestResponse);
public override void Callback(Gs2RestResponse gs2RestResponse) { _gs2RestSession.OnMessage(_gs2SessionTaskId, gs2RestResponse); }