Show / Hide Table of Contents

Class ResponseConverterBase<T>

WebResponseを加工するメソッドを提供するインターフェース

Inheritance
Object
ResponseConverterBase<T>
ByteResponseConverter
GenericDataResponseConverter<T>
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: VRoidSDK
Assembly: VRoidSDK.dll
Syntax
public abstract class ResponseConverterBase<T>
Type Parameters
Name Description
T

Methods

Convert(IWebResponse, Action<ApiResponseTemplate<T>>, Action<ApiErrorFormat>)

WebResponseを指定した型に変換する

Declaration
public abstract void Convert(IWebResponse response, Action<ApiResponseTemplate<T>> onSuccess, Action<ApiErrorFormat> onError)
Parameters
Type Name Description
IWebResponse response

変換するWebResponse

Action<ApiResponseTemplate<T>> onSuccess

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

Action<ApiErrorFormat> onError

エラー発生時のコールバック

ConvertError(IWebResponse)

WebResponseをApiErrorFormatに変換する

Declaration
public ApiErrorFormat ConvertError(IWebResponse response)
Parameters
Type Name Description
IWebResponse response

変換するWebResponse

Returns
Type Description
ApiErrorFormat

変換後のApiErrorFormat

Back to top Generated by DocFX