Extensions on
Endpoint.Group.Direct.Conversation
Properties
messages
var messages: Endpoint.Paginated<Conversation.Unit, String?, Error>
Paginate all messages in the conversation.
Methods
message(_:)
func message(_ identifier: String) -> Message
A wrapper for message endpoints.
Parameters
Name | Type | Description |
---|---|---|
identifier | String |
A valid |
Returns
A valid Message
.
invite(_:)
func invite<C: Collection>(_ userIdentifiers: C) -> Endpoint.Single<Status, Error> where C.Element == String
Invite users based on their identifier.
Parameters
Name | Type | Description |
---|---|---|
userIdentifiers | C |
A collection of |
Returns
A valid Endpoint.Single
.
invite(_:)
Invite a user based on their identifier.
Parameters
Name | Type | Description |
---|---|---|
userIdentifier | String |
A valid |
Returns
A valid Endpoint.Single
.
send(_:)
func send(_ text: String) -> Endpoint.Single<Wrapper, Error>
Send a message in the current conversation.
Parameters
Name | Type | Description |
---|---|---|
text | String |
A valid |
Returns
A valid Endpoint.Single
.
title(_:)
Update the title for the current conversation.
Parameters
Name | Type | Description |
---|---|---|
title | String |
A valid |
Returns
A valid Endpoint.Single
.