Show / Hide Table of Contents

Class ApiLink

リンク先を取得する

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

Fields

href

リンク先テキスト

Declaration
public string href
Field Value
Type Description
String

Methods

RequestLink<T>(Action<T, ApiLinksFormat>, Action<ApiErrorFormat>)

リンク先を取得する

Declaration
public void RequestLink<T>(Action<T, ApiLinksFormat> onSuccess, Action<ApiErrorFormat> onError)
Parameters
Type Name Description
Action<T, ApiLinksFormat> onSuccess

成功した時のコールバック

Action<ApiErrorFormat> onError

失敗した時のコールバック

Type Parameters
Name Description
T

リクエスト結果の型

RequestLinkAsync<T>()

リンク先を取得する

Declaration
public async Task<WithLink<T>> RequestLinkAsync<T>()
Returns
Type Description
Task<WithLink<T>>

リクエスト結果

Type Parameters
Name Description
T

リクエスト結果の型

Exceptions
Type Condition
Exception

hrefが未設定である場合の例外

In This Article
Back to top Generated by DocFX