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

    Class ChatUpdateMessage

    A message indicating chat message update.

    Inheritance
    System.Object
    ChatUpdateMessage
    Implements
    IWolfMessage
    IRawDataMessage
    Namespace: TehGM.Wolfringo.Messages
    Assembly: Wolfringo.Core.dll
    Syntax
    [ResponseType(typeof(ChatUpdateResponse))]
    public class ChatUpdateMessage : IWolfMessage, IRawDataMessage
    Remarks

    Uses ChatUpdateResponse as response type.

    Constructors

    | Improve this Doc View Source

    ChatUpdateMessage()

    Creates a message instance.

    Declaration
    [JsonConstructor]
    protected ChatUpdateMessage()

    Properties

    | Improve this Doc View Source

    EditInfo

    Information about message's latest edit.

    Declaration
    [JsonProperty("edited", NullValueHandling = NullValueHandling.Ignore)]
    public ChatMessage.EditMetadata? EditInfo { get; protected set; }
    Property Value
    Type Description
    System.Nullable<ChatMessage.EditMetadata>
    | Improve this Doc View Source

    EventName

    Message event name.

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

    Equals to MessageUpdate.

    | Improve this Doc View Source

    HasTips

    Is this message tipped?

    Declaration
    [JsonProperty("isTipped", NullValueHandling = NullValueHandling.Ignore)]
    public bool? HasTips { get; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    IsDeleted

    Is this message soft-deleted by group admin?

    Declaration
    [JsonProperty("isDeleted", NullValueHandling = NullValueHandling.Ignore)]
    public bool? IsDeleted { get; protected set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    IsGroupMessage

    Is it a group message?

    Declaration
    [JsonProperty("isGroup")]
    public bool IsGroupMessage { get; protected set; }
    Property Value
    Type Description
    System.Boolean
    | 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
    [JsonProperty("recipient")]
    [JsonConverter(typeof(EntityIdConverter))]
    public uint RecipientID { get; protected set; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    SenderID

    User that sent the message.

    Declaration
    [JsonProperty("originator", NullValueHandling = NullValueHandling.Ignore)]
    [JsonConverter(typeof(EntityIdConverter))]
    public uint? SenderID { get; protected set; }
    Property Value
    Type Description
    System.Nullable<System.UInt32>
    | Improve this Doc View Source

    Text

    Message's text.

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

    Timestamp

    Message's timestamp. Used by protocol as message ID.

    Declaration
    [JsonProperty("timestamp")]
    public WolfTimestamp Timestamp { get; protected set; }
    Property Value
    Type Description
    WolfTimestamp

    Implements

    IWolfMessage
    IRawDataMessage

    Extension Methods

    SerializationHelper.SerializeJsonPayload<T>(T, JsonSerializer)