ChatService
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns ChatService
Properties
publicreadonlyhttpRequest
Methods
publicroomCreate
Parameters
__namedParameters: { requestBody: CreateRoomParam }
Returns CancelablePromise<{ data?: CreateRoomResponse }>
any Successfully created the chat.
publicroomInfo
Get a chat's information Retrieves information about a chat.
Parameters
__namedParameters: { roomId: string; targetUserId?: string }
Returns CancelablePromise<{ data?: GetRoomResponse }>
any Successfully retrieved the chat's information.
publicroomInvite
Invite people Invites people to a chat.
Parameters
__namedParameters: { requestBody: InviteRoomParam }
Returns CancelablePromise<{ data?: InviteRoomResponse }>
any Successfully invited people to the chat.
publicroomLevae
Leave a chat The use leaves a chat.
Parameters
__namedParameters: { requestBody: LeaveRoomParam }
Returns CancelablePromise<{ data?: LeaveRoomResponse }>
any Successfully left the chat.
publicroomList
List out chats Lists out a given number of chats. This method uses the Swit API's pagination scheme.
Parameters
__namedParameters: { filter?: all | starred | unread; limit?: number; offset?: string; offsetOrderType?: less | eq_less | greater | eq_greater; page?: number; search?: string }
Returns CancelablePromise<{ data?: GetRoomListResponse }>
any Successfully retrieved the chats.
publicroomUpdate
Update a chat Updates an existing chat.
Parameters
__namedParameters: { requestBody: UpdateRoomParam }
Returns CancelablePromise<{ data?: UpdateRoomResponse }>
any Successfully updated the chat.
Create a chat Creates a new chat. If a 1:1 chat with the specified member already exists, the response will not create a duplicate but instead return the existing chat's information. For group chats with specified members, a new chat will be created even if one already exists with the same members.
ApiError