Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class GroupActionChatEvent

    A group action embedded in chat.

    Inheritance
    System.Object
    GroupActionChatEvent
    Implements
    IChatMessage
    IRawDataMessage
    IWolfMessage
    Namespace: TehGM.Wolfringo.Messages
    Assembly: Wolfringo.Core.dll
    Syntax
    public class GroupActionChatEvent : IChatMessage, IRawDataMessage, IWolfMessage

    Constructors

    | Improve this Doc View Source

    GroupActionChatEvent()

    Creates a message instance.

    Declaration
    [JsonConstructor]
    protected GroupActionChatEvent()

    Properties

    | Improve this Doc View Source

    ActionInvokerID

    ID of the user that invoked the group action.

    Declaration
    [JsonIgnore]
    public uint? ActionInvokerID { get; }
    Property Value
    Type Description
    System.Nullable<System.UInt32>
    | Improve this Doc View Source

    ActionType

    Type of group action.

    Declaration
    [JsonIgnore]
    public GroupActionType ActionType { get; }
    Property Value
    Type Description
    GroupActionType
    | Improve this Doc View Source

    EventName

    Message event name.

    Declaration
    [JsonIgnore]
    public string EventName { get; }
    Property Value
    Type Description
    System.String
    Remarks

    Equals to MessageSend.

    | Improve this Doc View Source

    FlightID

    WOLF protocol internal flight ID.

    Declaration
    public string FlightID { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ID

    Unique ID of the message.

    Declaration
    public Guid? ID { get; }
    Property Value
    Type Description
    System.Nullable<System.Guid>
    | Improve this Doc View Source

    IsGroupMessage

    Is it a group message?

    Declaration
    public bool IsGroupMessage { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsPrivateMessage

    Declaration
    [JsonIgnore]
    public bool IsPrivateMessage { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MimeType

    Type of the message.

    Declaration
    public string MimeType { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RawData

    Message's raw binary data.

    Declaration
    [JsonIgnore]
    public IReadOnlyCollection<byte> RawData { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<System.Byte>
    | Improve this Doc View Source

    RecipientID

    User or group that received the message.

    Declaration
    public uint RecipientID { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    ParseRawData()

    Parses invoker ID and action type from raw data.

    Declaration
    protected void ParseRawData()

    Implements

    IChatMessage
    IRawDataMessage
    IWolfMessage

    Extension Methods

    SerializationHelper.SerializeJsonPayload<T>(T, JsonSerializer)

    See Also

    ChatMessage
    GroupAdminMessage