Class GroupActionChatEvent
A group action embedded in chat.
Inheritance
Namespace: TehGM.Wolfringo.Messages
Assembly: Wolfringo.Core.dll
Syntax
public class GroupActionChatEvent : IChatMessage, IRawDataMessage, IWolfMessage
Constructors
| Improve this Doc View SourceGroupActionChatEvent()
Creates a message instance.
Declaration
[JsonConstructor]
protected GroupActionChatEvent()
Properties
| Improve this Doc View SourceActionInvokerID
ID of the user that invoked the group action.
Declaration
[JsonIgnore]
public uint? ActionInvokerID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt32> |
ActionType
Type of group action.
Declaration
[JsonIgnore]
public GroupActionType ActionType { get; }
Property Value
| Type | Description |
|---|---|
| GroupActionType |
EventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Remarks
Equals to MessageSend.
FlightID
WOLF protocol internal flight ID.
Declaration
public string FlightID { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ID
Unique ID of the message.
Declaration
public Guid? ID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Guid> |
IsGroupMessage
Is it a group message?
Declaration
public bool IsGroupMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsPrivateMessage
Declaration
[JsonIgnore]
public bool IsPrivateMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MimeType
Type of the message.
Declaration
public string MimeType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RawData
Message's raw binary data.
Declaration
[JsonIgnore]
public IReadOnlyCollection<byte> RawData { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyCollection<System.Byte> |
RecipientID
User or group that received the message.
Declaration
public uint RecipientID { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
SenderID
User that sent the message.
Declaration
public 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
public 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.
Methods
| Improve this Doc View SourceParseRawData()
Parses invoker ID and action type from raw data.
Declaration
protected void ParseRawData()