Show / Hide Table of Contents

Class HeartApi

スコープがheartのAPI

どのAPIも非同期で呼び出される

Asyncがつくものは非同期に実行されるかつ、成功結果のTaskが返ってくる

Inheritance
Object
ApiBase
HeartApi
Inherited Members
ApiBase._client
ApiBase.OnSuccessCallback<T>(IHttpResponse, Action<T, ApiLinksFormat>, Action<ApiErrorFormat>)
ApiBase.OnSuccessCallback<T>(IHttpResponse, Action<T>, Action<ApiErrorFormat>)
ApiBase.ConvertApiResponse<T>(IHttpResponse)
ApiBase.OnHttpRequestFailed(Action<Account>, Action<ApiErrorFormat>)
ApiBase.ConvertErrorResponse(IHttpResponse)
ApiBase.OmitApiLinksFormat<T>(Action<T>)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Api
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class HeartApi : ApiBase

Constructors

HeartApi(Client)

コンストラクタ

Declaration
public HeartApi(Client client)
Parameters
Type Name Description
Client client

APIリクエストを行うクライアント

Methods

DeleteHearts(String, Action<EmptySerializer>, Action<ApiErrorFormat>)

モデルに対してハートを取り消す

Declaration
public void DeleteHearts(string characterModelId, Action<EmptySerializer> onSuccess, Action<ApiErrorFormat> onError)
Parameters
Type Name Description
String characterModelId

ハートする対象のモデル

Action<EmptySerializer> onSuccess

成功コールバック

Action<ApiErrorFormat> onError

失敗コールバック

DeleteHeartsAsync(String)

モデルに対してハートを取り消す

Declaration
public async Task<EmptySerializer> DeleteHeartsAsync(string characterModelId)
Parameters
Type Name Description
String characterModelId

ハートする対象のモデル

Returns
Type Description
Task<EmptySerializer>

レスポンスの空データ

Exceptions
Type Condition
ApiErrorFormat

APIエラー

PostHearts(String, Action<EmptySerializer>, Action<ApiErrorFormat>)

モデルに対してハートする

Declaration
public void PostHearts(string characterModelId, Action<EmptySerializer> onSuccess, Action<ApiErrorFormat> onError)
Parameters
Type Name Description
String characterModelId

ハートする対象のモデル

Action<EmptySerializer> onSuccess

成功コールバック

Action<ApiErrorFormat> onError

失敗コールバック

PostHeartsAsync(String)

モデルに対してハートする

Declaration
public async Task<EmptySerializer> PostHeartsAsync(string characterModelId)
Parameters
Type Name Description
String characterModelId

ハートする対象のモデル

Returns
Type Description
Task<EmptySerializer>

レスポンスの空データ

Exceptions
Type Condition
ApiErrorFormat
In This Article
Back to top Generated by DocFX