| 限定符和类型 | 方法和说明 |
|---|---|
void |
ConversationResult.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
Request |
ConversationParam.toRequest(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RecognitionResult.fromResponse(Protocol protocol,
Response response) |
Request |
RecognitionStreamParam.toRequest(Protocol protocol) |
Request |
RecognitionRequestParam.toRequest(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TranscriptionResult.fromResponse(Protocol protocol,
Response response) |
Request |
TranscriptionQueryParam.toRequest(Protocol protocol) |
Request |
TranscriptionParam.toRequest(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SpeechSynthesisResult.fromResponse(Protocol protocol,
Response response) |
Request |
SpeechSynthesisParam.toRequest(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Protocol |
Protocol.of(String value) |
static Protocol |
Protocol.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Protocol[] |
Protocol.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
Result.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
abstract Request |
Param.toRequest(Protocol protocol) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Result |
ServiceFacility.call(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
HttpMethod method,
long receiveTimeout)
Call the network to do a single-in, single-out request.
|
void |
SubmitResult.fromResponse(Protocol protocol,
Response response) |
static Map<String,String> |
ServiceFacility.prepareHeaders(Protocol protocol,
Param param)
Prepare common headers.
|
static Request |
ServiceFacility.prepareRequest(Protocol protocol,
Param param,
WebSocketEventType eventType)
Build the message body by the protocol.
|
static Result |
ServiceFacility.prepareResult(Protocol protocol,
Param param,
Response res)
Prepare the Result by the response and the input param.
|
static String |
ServiceFacility.prepareUrl(Protocol protocol,
Param param)
Prepare the connecting url.
|
static io.reactivex.Flowable<Result> |
ServiceFacility.streamCall(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
long receiveTimeout)
Call the network to do a single-in, stream-out request.
|
static Response |
ServiceFacility.streamingNone(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
long receiveTimeout)
Call rpc on single-in, single-out mode
|
static io.reactivex.Flowable<Response> |
ServiceFacility.streamingOut(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
long receiveTimeout)
Call rpc on single-in, stream-out mode
|
static void |
ServiceFacility.streamingOutWithCallback(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
ResultCallback<Response> callback)
Call rpc on single-in mode with a callback.
|
Request |
SubmitParam.toRequest(Protocol protocol) |
Copyright © 2023. All rights reserved.