SwiftagramCrypto Documentation

Extensions on Endpoint.Group.Direct.Conversation

Properties

messages

var messages: Endpoint.Paginated<Conversation.Unit, String?, Error>  

Paginate all messages in the conversation.

request

var request: Request  

A wrapper for request endpoints.

Methods

message(_:​)

func message(_ identifier: String) -> Message  

A wrapper for message endpoints.

Parameters

identifier String

A valid String.

Returns

A valid Message.

delete()

func delete() -> Endpoint.Single<Status, Error>  

Delete the current conversation.

Returns

A valid Endpoint.Single.

invite(_:​)

func invite<C: Collection>(_ userIdentifiers: C) -> Endpoint.Single<Status, Error> where C.Element == String  

Invite users based on their identifier.

Parameters

user​Identifiers C

A collection of Strings.

Returns

A valid Endpoint.Single.

invite(_:​)

func invite(_ userIdentifier: String) -> Endpoint.Single<Status, Error>  

Invite a user based on their identifier.

Parameters

user​Identifier String

A valid String.

Returns

A valid Endpoint.Single.

leave()

func leave() -> Endpoint.Single<Status, Error>  

Leave the current conversation.

Returns

A valid Endpoint.Single.

mute()

func mute() -> Endpoint.Single<Status, Error>  

Mute the current conversation.

Returns

A valid Endpoint.Single.

send(_:​)

func send(_ text: String) -> Endpoint.Single<Wrapper, Error>  

Send a message in the current conversation.

Parameters

text String

A valid String.

Returns

A valid Endpoint.Single.

title(_:​)

func title(_ title: String) -> Endpoint.Single<Status, Error>  

Update the title for the current conversation.

Parameters

title String

A valid String.

Returns

A valid Endpoint.Single.

unmute()

func unmute() -> Endpoint.Single<Status, Error>  

Unmute the current conversation.

Returns

A valid Endpoint.Single.