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
[JsonProperty("flightId", NullValueHandling = NullValueHandling.Ignore)]
string FlightID { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ID
Unique ID of the message.
Declaration
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
Guid? ID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Guid> |
IsGroupMessage
Is it a group message?
Declaration
[JsonProperty("isGroup")]
bool IsGroupMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MimeType
Type of the message.
Declaration
[JsonProperty("mimeType")]
string MimeType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RecipientID
User or group that received the message.
Declaration
[JsonProperty("recipient")]
[JsonConverter(typeof(EntityIdConverter))]
uint RecipientID { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
SenderID
User that sent the message.
Declaration
[JsonProperty("originator", NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(EntityIdConverter))]
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
[JsonProperty("timestamp", NullValueHandling = NullValueHandling.Ignore)]
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.