コード例 #1
0
        public IsUnknownOrInvalidTokenResponse IsUnknownOrInvalidToken(IsUnknownOrInvalidTokenRequest request)
        {
            IsUnknownOrInvalidTokenResponse response = new IsUnknownOrInvalidTokenResponse();

            try
            {
                IsUnknownOrInvalidTokenResponse isUnknownOrInvalidTokenResponse =
                    new UserServerObjectService().IsUnknownOrInvalidToken(new IsUnknownOrInvalidTokenRequest()
                {
                    fbToken = request.fbToken
                });

                if (isUnknownOrInvalidTokenResponse.Result.Success())
                {
                    response.Result = new Ac4yProcessResult()
                    {
                        Code = Ac4yProcessResult.SUCCESS, Message = "unknown or invalid token"
                    }
                }
                ;
                else
                {
                    response.Result = new Ac4yProcessResult()
                    {
                        Code = Ac4yProcessResult.INEFFECTIVE, Message = "létező token"
                    }
                };
            }
            catch (Exception exception)
            {
                response.Result = (new Ac4yProcessResult()
                {
                    Code = Ac4yProcessResult.FAIL, Message = exception.Message, Description = exception.StackTrace
                });
            }
            return(response);
        }
コード例 #2
0
 public IsUnknownOrInvalidTokenResponse IsUnkmnownOrInvalidToken(IsUnknownOrInvalidTokenRequest request)
 {
     return(new GigServerPersistentObjectService().IsUnknownOrInvalidToken(request));
 }