Show / Hide Table of Contents

Class Account

Account

Inheritance
Object
Account
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Oauth.DataModel
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class Account

Properties

AccessToken

Access token

Declaration
public string AccessToken { get; }
Property Value
Type Description
String

CreatedAt

Account creation time

Declaration
public long CreatedAt { get; }
Property Value
Type Description
Int64

ExpiresIn

Expiry time

Declaration
public long ExpiresIn { get; }
Property Value
Type Description
Int64

RefreshToken

Refresh token

Declaration
public string RefreshToken { get; }
Property Value
Type Description
String

Scope

Scope

Declaration
public string Scope { get; }
Property Value
Type Description
String

TokenType

Token type

Declaration
public string TokenType { get; }
Property Value
Type Description
String

Methods

CreatedAtDateTime()

Get this authorized account creation date

Declaration
public DateTime CreatedAtDateTime()
Returns
Type Description
DateTime

Creation date

ExpiresAtDateTime()

Get authorization expiry date

Declaration
public DateTime ExpiresAtDateTime()
Returns
Type Description
DateTime

expiry date

FromJson(Byte[])

Deserialize JSON and create Account

Declaration
public static Account FromJson(byte[] jsonBinary)
Parameters
Type Name Description
Byte[] jsonBinary

Account JSON string byte string

Returns
Type Description
Account

Account received from JSON deserialization

FromJson(String)

Deserialize JSON and create Account

Declaration
public static Account FromJson(string jsonString)
Parameters
Type Name Description
String jsonString

Account JSON string

Returns
Type Description
Account

Account received from JSON deserialization

IsExpired()

Is authorization data already expired

Declaration
public bool IsExpired()
Returns
Type Description
Boolean

Past expiry date: true, else: false

In This Article
Back to top Generated by DocFX