Exemplo n.º 1
0
    void OnRegister(JsonData json)
    {
        int code = (int)json[SDKConstants.KEY_ERROR_CODE];

        switch (code)
        {
        case NdErrorCode.ND_COM_PLATFORM_SUCCESS:

            JsonData data      = json[SDKConstants.KEY_JSON_DATA];
            string   userId    = (string)data[SDKConstants.KEY_USER_ID];
            string   sessionId = (string)data[SDKConstants.KEY_USER_SESSION_ID];
            string   nickName  = (string)data[SDKConstants.KEY_USER_NICKNAME];

            ThirdPartyPlatform.OnRegister(true);
            // Log.e("91","登陆成功 " + userId);
            break;

        case NdErrorCode.ND_COM_PLATFORM_ERROR_LOGIN_FAIL:
            // Log.e("91","登陆失败");
            break;

        case NdErrorCode.ND_COM_PLATFORM_ERROR_CANCEL:
            // Log.e("91","用户取消登陆");
            break;

        default:
            break;
        }
    }
    public void registerNotify(string args)
    {
        ParseReceiveParams(args);

        U3dGfanSender.ShowToast("registerNotify finishi...IsSuccess " + IsSuccess());
        ThirdPartyPlatform.OnRegister(IsSuccess());
    }
 public void registerNotify(string args)
 {
     ParseReceiveParams(args);
     ThirdPartyPlatform.OnRegister(IsSuccess());
 }