ServiceResponse<T> クラス
- java.
lang. Object - com.
microsoft. bot. restclient. ServiceResponse<T>
- com.
型パラメーター
- T
応答の型
public class ServiceResponse
このクラスのインスタンスは、応答オブジェクトと生の REST 応答を保持します。
コンストラクターの概要
| コンストラクター | 説明 |
|---|---|
| ServiceResponse(T body, Response<ResponseBody> response) |
応答オブジェクトと生の REST 応答を使用して、Service |
| ServiceResponse(Response<Void> headResponse) |
HEAD 操作からの応答を使用して、Service |
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| T |
body()
応答オブジェクトを取得します。 |
| retrofit2.Response<java.lang.Void> |
headResponse()
HEAD 操作から生の REST 応答を取得します。 |
| retrofit2.Response<okhttp3.ResponseBody> |
response()
生の REST 応答を取得します。 |
|
Service |
withBody(T body)
応答オブジェクトを設定します。 |
メソッドの継承元: java.lang.Object
コンストラクターの詳細
ServiceResponse
public ServiceResponse(T body, Response
応答オブジェクトと生の REST 応答を使用して ServiceResponse インスタンスをインスタンス化します。
パラメーター:
ServiceResponse
public ServiceResponse(Response
HEAD 操作からの応答を使用して ServiceResponse インスタンスをインスタンス化します。
パラメーター:
メソッドの詳細
body
public T body()
応答オブジェクトを取得します。
戻り値:
headResponse
public Response
HEAD 操作から生の REST 応答を取得します。
戻り値:
response
public Response
生の REST 応答を取得します。
戻り値:
withBody
public ServiceResponse
応答オブジェクトを設定します。
パラメーター:
戻り値: