Interface MessageService
-
- All Implemented Interfaces:
public interface MessageService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
MessageService.WithRawResponse
A view of MessageService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract MessageService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. Message
create(MessageCreateParams params)
Create a message. abstract Message
create(MessageCreateParams params, RequestOptions requestOptions)
Message
retrieve(MessageRetrieveParams params)
Retrieve a message. abstract Message
retrieve(MessageRetrieveParams params, RequestOptions requestOptions)
Message
update(MessageUpdateParams params)
Modifies a message. abstract Message
update(MessageUpdateParams params, RequestOptions requestOptions)
MessageListPage
list(MessageListParams params)
Returns a list of messages for a given thread. abstract MessageListPage
list(MessageListParams params, RequestOptions requestOptions)
MessageDeleted
delete(MessageDeleteParams params)
Deletes a message. abstract MessageDeleted
delete(MessageDeleteParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract MessageService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
Message create(MessageCreateParams params)
Create a message.
-
create
abstract Message create(MessageCreateParams params, RequestOptions requestOptions)
-
retrieve
Message retrieve(MessageRetrieveParams params)
Retrieve a message.
-
retrieve
abstract Message retrieve(MessageRetrieveParams params, RequestOptions requestOptions)
-
update
Message update(MessageUpdateParams params)
Modifies a message.
-
update
abstract Message update(MessageUpdateParams params, RequestOptions requestOptions)
-
list
MessageListPage list(MessageListParams params)
Returns a list of messages for a given thread.
-
list
abstract MessageListPage list(MessageListParams params, RequestOptions requestOptions)
-
delete
MessageDeleted delete(MessageDeleteParams params)
Deletes a message.
-
delete
abstract MessageDeleted delete(MessageDeleteParams params, RequestOptions requestOptions)
-
-
-
-