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

    Class GroupChatHistoryMessage

    A message for requesting group chat history.

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

    Uses ChatHistoryResponse as response type.

    Constructors

    | Improve this Doc View Source

    GroupChatHistoryMessage()

    Creates a message instance.

    Declaration
    [JsonConstructor]
    protected GroupChatHistoryMessage()
    | Improve this Doc View Source

    GroupChatHistoryMessage(UInt32, Nullable<WolfTimestamp>, Nullable<WolfTimestamp>, Boolean)

    Creates a message instance.

    Declaration
    public GroupChatHistoryMessage(uint groupId, WolfTimestamp? before, WolfTimestamp? after, bool chronological = false)
    Parameters
    Type Name Description
    System.UInt32 groupId

    ID of the group.

    System.Nullable<WolfTimestamp> before

    Timestamp of the oldest already received message.

    System.Nullable<WolfTimestamp> after

    Timestamp of the youngest already received message.

    System.Boolean chronological

    Should history be ordered chronologically?

    Properties

    | Improve this Doc View Source

    AfterTime

    Timestamp of the oldest message to retrieve.

    Declaration
    [JsonProperty("timestampBegin")]
    public WolfTimestamp AfterTime { get; }
    Property Value
    Type Description
    WolfTimestamp
    | Improve this Doc View Source

    BeforeTime

    Timestamp of the oldest already received message.

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

    EventName

    Message event name.

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

    Equals to MessageGroupHistoryList.

    | Improve this Doc View Source

    GroupID

    ID of the group.

    Declaration
    [JsonProperty("id")]
    public uint GroupID { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Headers

    Message payload headers.

    Declaration
    [JsonIgnore]
    public IDictionary<string, object> Headers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>
    | Improve this Doc View Source

    RequestChronologicalOrder

    Should history be ordered chronologically?

    Declaration
    [JsonProperty("chronological")]
    public bool RequestChronologicalOrder { get; }
    Property Value
    Type Description
    System.Boolean

    Implements

    IHeadersWolfMessage
    IWolfMessage

    Extension Methods

    SerializationHelper.SerializeJsonPayload<T>(T, JsonSerializer)