Class ApiLink
Get link destination
Inherited Members
Namespace: Pixiv.VroidSdk.Api.DataModel
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class ApiLink
  Fields
href
Link destination text
Declaration
public string href
  Field Value
| Type | Description | 
|---|---|
| String | 
Methods
RequestLink<T>(Action<T, ApiLinksFormat>, Action<ApiErrorFormat>)
Get link destination
Declaration
public void RequestLink<T>(Action<T, ApiLinksFormat> onSuccess, Action<ApiErrorFormat> onError)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Action<T, ApiLinksFormat> | onSuccess | Callback on success  | 
      
| Action<ApiErrorFormat> | onError | Callback on failure  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | Request result type  | 
      
RequestLinkAsync<T>()
Get link destination
Declaration
public async Task<WithLink<T>> RequestLinkAsync<T>()
  Returns
| Type | Description | 
|---|---|
| Task<WithLink<T>> | Request result  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | Request result type  | 
      
Exceptions
| Type | Condition | 
|---|---|
| Exception | Exception when href is not set  |