library
androidJvm
library
/
org.xmtp.android.library
/
ConversationV1
Conversation
V1
data
class
ConversationV1
(
val
client
:
Client
,
val
peerAddress
:
String
,
val
sentAt
:
Date
)
Members
Constructors
Conversation
V1
Link copied to clipboard
constructor
(
client
:
Client
,
peerAddress
:
String
,
sentAt
:
Date
)
Functions
decode
Link copied to clipboard
fun
decode
(
envelope
:
Envelope
)
:
DecodedMessage
messages
Link copied to clipboard
fun
messages
(
limit
:
Int
?
=
null
,
before
:
Date
?
=
null
,
after
:
Date
?
=
null
)
:
List
<
DecodedMessage
>
prepare
Message
Link copied to clipboard
fun
<
T
>
prepareMessage
(
content
:
T
,
options
:
SendOptions
?
)
:
PreparedMessage
send
Link copied to clipboard
fun
<
T
>
send
(
content
:
T
,
options
:
SendOptions
?
=
null
)
:
String
fun
send
(
text
:
String
,
options
:
SendOptions
?
=
null
)
:
String
stream
Messages
Link copied to clipboard
fun
streamMessages
(
)
:
Flow
<
DecodedMessage
>
Properties
client
Link copied to clipboard
val
client
:
Client
peer
Address
Link copied to clipboard
val
peerAddress
:
String
sent
At
Link copied to clipboard
val
sentAt
:
Date
topic
Link copied to clipboard
val
topic
:
Topic