InternalLiveLikeChatClient

class InternalLiveLikeChatClient(configurationOnce: Once<SdkConfiguration>, uiScope: CoroutineScope, sdkScope: CoroutineScope, networkApiClient: NetworkApiClient, currentProfileOnce: Once<LiveLikeProfile>) : BaseClient, LiveLikeChatClient

Constructors

Link copied to clipboard
constructor(configurationOnce: Once<SdkConfiguration>, uiScope: CoroutineScope, sdkScope: CoroutineScope, networkApiClient: NetworkApiClient, currentProfileOnce: Once<LiveLikeProfile>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addCurrentProfileToChatRoom(chatRoomId: String, liveLikeCallback: LiveLikeCallback<ChatRoomMembership>)

Adds the current user's profile to the specified chat room, granting membership.

Link copied to clipboard
open override fun addProfileToChatRoom(chatRoomId: String, profileId: String, liveLikeCallback: LiveLikeCallback<ChatRoomMembership>)

Adds a user profile to the specified chat room, granting membership.

Link copied to clipboard
open override fun createChatRoom(title: String? = null, visibility: Visibility? = null, tokenGates: List<ChatRoomTokenGate>? = null, liveLikeCallback: LiveLikeCallback<ChatRoomInfo>)

Creates a new chat room with the specified parameters.

Link copied to clipboard
open override fun deleteCurrentProfileFromChatRoom(chatRoomId: String, liveLikeCallback: LiveLikeCallback<LiveLikeEmptyResponse>)

Removes the current user's profile from the specified chat room, revoking membership.

Link copied to clipboard
open override fun getChatRoom(id: String, liveLikeCallback: LiveLikeCallback<ChatRoomInfo>)

Retrieves a chat room with the specified unique identifier.

Link copied to clipboard
open override fun getChatRoomMemberships(chatRoomRequestOptions: ChatRoomRequestOptions, liveLikeCallback: LiveLikeCallback<List<LiveLikeProfile>>)

Fetches chat room membership, provided chat room id

Link copied to clipboard
open override fun getCurrentProfileChatRoomList(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<ChatRoomInfo>>)

Retrieves a list of chat rooms associated with the current user's profile.

Retrieves a list of chat room invitations received by the current user's profile with the specified invitation status.

Retrieves a list of chat room invitations sent by the current user's profile with the specified invitation status.

Link copied to clipboard
open override fun getMembersOfChatRoom(chatRoomId: String, liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<LiveLikeProfile>>)

Retrieves a list of members (profiles) in the specified chat room.

Link copied to clipboard
open override fun getPinMessageInfoList(chatRoomId: String, order: LiveLikeOrdering, pagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<PinMessageInfo>>)

Retrieves a list of pinned messages (PinMessageInfo) in the specified chat room.

Link copied to clipboard
open override fun getProfileChatRoomMemberships(profileChatRoomMembershipRequestOption: ProfileChatRoomMembershipRequestOption, liveLikeCallback: LiveLikeCallback<List<ChatRoom>>)

Fetches chat room membership for a single or multiple profiles

Link copied to clipboard
open override fun getProfileMutedStatus(chatRoomId: String, liveLikeCallback: LiveLikeCallback<ChatProfileMuteStatus>)

Retrieves the muted status of the current user's profile for the specified chat room.

Link copied to clipboard
open override fun getSmartContracts(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<SmartContractDetails>>)

Retrieves a list of smart contracts with their details.

Link copied to clipboard
open override fun getTokenGatedChatRoomAccessDetails(walletAddress: String, chatRoomId: String, liveLikeCallback: LiveLikeCallback<TokenGatingStatus>)

Checks if the wallet passes the required token gating criteria

Link copied to clipboard
open override fun pinMessage(messageId: String, chatRoomId: String, chatMessagePayload: LiveLikeChatMessage, liveLikeCallback: LiveLikeCallback<PinMessageInfo>)

Pins a specific chat message within a chat room, making it a pinned message.

Link copied to clipboard
protected fun <T : Any> safeCallBack(call: suspend (Pair<LiveLikeProfile, SdkConfiguration>) -> T?)
protected fun <T : Any> safeCallBack(liveLikeCallBack: LiveLikeCallback<T>?, call: suspend (Pair<LiveLikeProfile, SdkConfiguration>) -> T?)
Link copied to clipboard
protected fun <T : Any> safeConfigCallBack(liveLikeCallBack: LiveLikeCallback<T>?, call: suspend (SdkConfiguration) -> T?)
Link copied to clipboard
open override fun sendChatRoomInviteToProfile(chatRoomId: String, profileId: String, liveLikeCallback: LiveLikeCallback<ChatRoomInvitation>)

Sends a chat room invitation to a specific user profile for the specified chat room.

Link copied to clipboard
open override fun unPinMessage(pinMessageInfoId: String, liveLiveLikeCallback: LiveLikeCallback<LiveLikeEmptyResponse>)

Unpins a previously pinned chat message with the specified PinMessageInfo identifier.

Link copied to clipboard
open override fun updateChatRoom(chatRoomId: String, title: String? = null, visibility: Visibility? = null, liveLikeCallback: LiveLikeCallback<ChatRoomInfo>)

Updates an existing chat room with the specified parameters.

Link copied to clipboard
open override fun updateChatRoomInviteStatus(chatRoomInvitation: ChatRoomInvitation, invitationStatus: ChatRoomInvitationStatus, liveLikeCallback: LiveLikeCallback<ChatRoomInvitation>)

Updates the status of a chat room invitation with the specified new status.