V2TimConversation

Introduction

The class of each conversation.

Parameter introduction

conversationID

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : The unique conversation ID.

type

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : The conversation type

1: One-to-one c2c chat.

2: Group chat.

userID

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : If the conversation type is one-to-one chat, the userID stores the user ID of the peer; otherwise, the userID is null.

groupID

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : If the conversation type is group chat, the groupID stores the current group ID; otherwise, the groupID is null.

showName

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : The conversation display name.

Conversation display name priorities are as follows:

Group: group name -> group ID.

One-to-one: peer's remarks -> peer's nickname -> peer's userID

faceUrl

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : Get the URl of conversation display profile photo.

groupType

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : The group type (valid for group conversations only).

unreadCount

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : The unread count

lastMessage

  • Parameter type : V2TimMessage

  • Supported Platform: All

  • Parameter description : The last message of the conversation.

draftText

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : A draft message whose editing is not finished (a draft message is stored locally only and will get lost after the app is uninstalled and reinstalled). Set this field by invoking setConversationDraft method.

draftTimestamp

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : The draft message time.

isPinned

  • Parameter type : bool

  • Supported Platform: All

  • Parameter description : Whether to pin on top.

recvOpt

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : The message receiving option.

0: Allow receive.

1: Receive but not notify.

2: Do not allow receive.

groupAtInfoList

  • Parameter type : List< V2TimGroupAtInfo >

  • Supported Platform: All

  • Parameter description : The @ information list of a group conversation, which is used to display "someone@me" or "@All" notifications

orderkey

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : The sorting field orderKey is a number that increases linearly according to the conversation activation time (note: this is not a timestamp because multiple conversations may be activated at the same time).

markList

  • Parameter type : List< int? >

  • Supported Platform: All

  • Parameter description : Mark list of the conversation.

conversationGroupList

  • Parameter type : List< String? >

  • Supported Platform: All

  • Parameter description : Conversation group name list to which the conversation belongs.

toJson

  • Parameter type : Map< String, dynamic > toJson()

  • Supported Platform: All

  • Parameter description : Get the data in Map.

results matching ""

    No results matching ""