public interface AskFastRestService
| Modifier and Type | Method and Description |
|---|---|
retrofit.client.Response |
buyAdapter(String adapterId) |
Dialog |
createDialog(Dialog dialog) |
TTSUser |
createTTSAccount(TTSUser ttsUser) |
void |
deleteTTSAccount(String ttsAccountId) |
Adapter |
getAdapter(String adapterId) |
List<Adapter> |
getAdapters(String type,
boolean owned) |
List<Adapter> |
getCapableAdapters(String type) |
List<DDRRecord> |
getDDRRecords(String delimitedAdapterIds,
String delimitedAdapterTypes,
String fromAddress,
String typeId,
String status,
Long startTime,
Long endTime,
String delimitedSessionKeys,
Integer offset,
Integer limit,
Boolean shouldGenerateCosts,
Boolean shouldIncludeServiceCosts)
Returns a list of
DDRRecords based on the give
parameters. |
RestResponse |
getDDRRecordsCount(String delimitedAdapterIds,
String delimitedAdapterTypes,
String fromAddress,
String typeId,
String status,
Long startTime,
Long endTime,
String delimitedSessionKeys,
Integer offset)
A faster fetch of the aggregation of all quantities in the
DDRRecord.getQuantity() based on the filtering criteria given |
Dialog |
getDialog(String dialogId) |
Set<Dialog> |
getDialogs() |
Set<Dialog> |
getDialogsByName(String name) |
Set<Adapter> |
getFreeAdapters(String adapterType,
String address) |
List<Recording> |
getRecordings(String accountId) |
TTSUser |
getTTSAccount(String ttsAccountId) |
List<TTSUser> |
getTTSAccounts() |
RestResponse |
modifyCall(ModifyCall modifyCall) |
retrofit.client.Response |
removeAdapter(String adapterId) |
retrofit.client.Response |
removeDialog(String dialogId) |
Result |
startDialog(DialogRequest req) |
Adapter |
updateAdapter(String adapterId,
Adapter adapter) |
Dialog |
updateDialog(String dialogId,
Dialog dialog) |
TTSUser |
updateTTSAccount(String ttsAccountId,
TTSUser ttsUser) |
@POST(value="/startDialog") Result startDialog(@Body DialogRequest req)
@GET(value="/adapter") List<Adapter> getAdapters(@Query(value="type") String type, @Query(value="owned") boolean owned)
@GET(value="/adapter/{adapterId}")
Adapter getAdapter(@Path(value="adapterId")
String adapterId)
@POST(value="/adapter/{adapterId}")
retrofit.client.Response buyAdapter(@Path(value="adapterId")
String adapterId)
@PUT(value="/adapter/{adapterId}")
Adapter updateAdapter(@Path(value="adapterId")
String adapterId,
@Body
Adapter adapter)
@GET(value="/free_adapters") Set<Adapter> getFreeAdapters(@Query(value="adapterType") String adapterType, @Query(value="address") String address)
@DELETE(value="/adapter/{adapterId}")
retrofit.client.Response removeAdapter(@Path(value="adapterId")
String adapterId)
@GET(value="/dialog/{dialogId}")
Dialog getDialog(@Path(value="dialogId")
String dialogId)
@GET(value="/dialog/getByName") Set<Dialog> getDialogsByName(@Query(value="name") String name)
@PUT(value="/dialog/{dialogId}")
Dialog updateDialog(@Path(value="dialogId")
String dialogId,
@Body
Dialog dialog)
@DELETE(value="/dialog/{dialogId}")
retrofit.client.Response removeDialog(@Path(value="dialogId")
String dialogId)
@GET(value="/tts/{ttsAccountId}")
TTSUser getTTSAccount(@Path(value="ttsAccountId")
String ttsAccountId)
@PUT(value="/tts/{ttsAccountId}")
TTSUser updateTTSAccount(@Path(value="ttsAccountId")
String ttsAccountId,
@Body
TTSUser ttsUser)
@DELETE(value="/tts/{ttsAccountId}")
void deleteTTSAccount(@Path(value="ttsAccountId")
String ttsAccountId)
@GET(value="/account/{accountId}/recording")
List<Recording> getRecordings(@Path(value="accountId")
String accountId)
@GET(value="/adapter/search") List<Adapter> getCapableAdapters(@Query(value="type") String type)
@GET(value="/ddr") List<DDRRecord> getDDRRecords(@Query(value="adapterIds") String delimitedAdapterIds, @Query(value="adapterTypes") String delimitedAdapterTypes, @Query(value="fromAddress") String fromAddress, @Query(value="typeId") String typeId, @Query(value="status") String status, @Query(value="startTime") Long startTime, @Query(value="endTime") Long endTime, @Query(value="sessionKeys") String delimitedSessionKeys, @Query(value="offset") Integer offset, @Query(value="limit") Integer limit, @Query(value="shouldGenerateCosts") Boolean shouldGenerateCosts, @Query(value="shouldIncludeServiceCosts") Boolean shouldIncludeServiceCosts)
DDRRecords based on the give
parameters.delimitedAdapterIds - The list of adapterIds for which ddrRecords must be fetcheddelimitedAdapterTypes - Fetch ddrRecords based on the channel usedfromAddress - Fetch ddrRecords based on the fromAddresstypeId - Fetch ddrRecords based on the type of cost attached. E.g.
incoming, outgoing, tts processing etcstatus - Fetch ddrRecords based on the status of the communicationstartTime - Fetch ddrRecords based on a date rangeendTime - Fetch ddrRecords based on a date rangedelimitedSessionKeys - Fetch ddrRecords based on the sessionKeys generated per
communication address.offset - Skip the given number of ddrRecordslimit - Limit the fetchshouldGenerateCosts - Force recalculating the costs for the communication or eventshouldIncludeServiceCosts - Force recalculating the service costs for the communication or
event@GET(value="/ddr/count") RestResponse getDDRRecordsCount(@Query(value="adapterIds") String delimitedAdapterIds, @Query(value="adapterTypes") String delimitedAdapterTypes, @Query(value="fromAddress") String fromAddress, @Query(value="typeId") String typeId, @Query(value="status") String status, @Query(value="startTime") Long startTime, @Query(value="endTime") Long endTime, @Query(value="sessionKeys") String delimitedSessionKeys, @Query(value="offset") Integer offset)
DDRRecord.getQuantity() based on the filtering criteria givendelimitedAdapterIds - The list of adapterIds for which ddrRecords must be fetcheddelimitedAdapterTypes - Fetch ddrRecords based on the channel usedfromAddress - Fetch ddrRecords based on the fromAddresstypeId - Fetch ddrRecords based on the type of cost attached. E.g.
incoming, outgoing, tts processing etcstatus - Fetch ddrRecords based on the status of the communicationstartTime - Fetch ddrRecords based on a date rangeendTime - Fetch ddrRecords based on a date rangedelimitedSessionKeys - Fetch ddrRecords based on the sessionKeys generated per
communication address.offset - Skip the given number of ddrRecords@POST(value="/modifyDialog") RestResponse modifyCall(@Body ModifyCall modifyCall)
modifyCall - A modifyCall object containing sessionId and new url.Copyright © 2017 AskFast BV. All Rights Reserved.