Interface IChatMessage
Represents a message that appears in the chat.
Namespace: TehGM.Wolfringo.Messages
Assembly: Wolfringo.Core.dll
Syntax
[ResponseType(typeof(ChatResponse))]
public interface IChatMessage : IWolfMessage, IRawDataMessage
Properties
| Improve this Doc View SourceFlightID
WOLF protocol internal flight ID.
Declaration
string FlightID { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ID
Unique ID of the message.
Declaration
Guid? ID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Guid> |
IsGroupMessage
Is it a group message?
Declaration
bool IsGroupMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MimeType
Type of the message.
Declaration
string MimeType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RecipientID
User or group that received the message.
Declaration
uint RecipientID { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
SenderID
User that sent the message.
Declaration
uint? SenderID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt32> |
Remarks
When creating a new chat message, this value will be null.
For received messages, this value will be populated normally.
Timestamp
Message's timestamp.
Declaration
WolfTimestamp? Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<WolfTimestamp> |
Remarks
When creating a new chat message, this value will be null. Once WOLF server acknowledges the message, it'll respond with timestamp value. Default WolfClient implementation will automatically populate this value once this happens, so message will have timestamp populated after SendAsync<TResponse>(IWolfMessage, CancellationToken) returns.
For received messages, this value will be populated normally.