Class DeviceAuthorization
Inherited Members
Namespace: Pixiv.VroidSdk.Oauth.DataModel
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class DeviceAuthorization
Fields
device_code
Device code
Declaration
public string device_code
Field Value
Type | Description |
---|---|
String |
expires_in
Device code and user code expire in...
Declaration
public int expires_in
Field Value
Type | Description |
---|---|
Int32 |
interval
Token request minimum polling interval
Declaration
public int interval
Field Value
Type | Description |
---|---|
Int32 |
user_code
User code
Declaration
public string user_code
Field Value
Type | Description |
---|---|
String |
verification_uri
End user verification URI
Declaration
public string verification_uri
Field Value
Type | Description |
---|---|
String |
verification_uri_complete
End user verification URI including user code
Declaration
public string verification_uri_complete
Field Value
Type | Description |
---|---|
String |
Methods
FromJson(Byte[])
Deserialize JSON and create DeviceAuthorization
Declaration
public static DeviceAuthorization FromJson(byte[] jsonBinary)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | jsonBinary | DeviceAuthorization JSON string byte string |
Returns
Type | Description |
---|---|
DeviceAuthorization | DeviceAuthorization received from JSON deserialization |
FromJson(String)
Deserialize JSON and create DeviceAuthorization
Declaration
public static DeviceAuthorization FromJson(string jsonString)
Parameters
Type | Name | Description |
---|---|---|
String | jsonString | DeviceAuthorization JSON string |
Returns
Type | Description |
---|---|
DeviceAuthorization | DeviceAuthorization |