public OauthTokenModel ToOauthTokenModel()
        {
            var ytm = new OauthTokenModel
            {
                AccessToken       = access_token,
                TokenType         = scope,
                AccessTokenExpiry = DateTime.MaxValue
            };

            return(ytm);
        }
예제 #2
0
        public OauthTokenModel ToOauthTokenModel()
        {
            var ytm = new OauthTokenModel
            {
                AccessToken = access_token,
                TokenType   = token_type,
                //RefreshToken = refresh_token,
                AccessTokenExpiry = DateTime.UtcNow.AddSeconds(expires_in)
            };

            return(ytm);
        }