Class GroupChatHistoryMessage
A message for requesting group chat history.
Inheritance
System.Object
GroupChatHistoryMessage
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 SourceGroupChatHistoryMessage()
Creates a message instance.
Declaration
[JsonConstructor]
protected GroupChatHistoryMessage()
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 SourceAfterTime
Timestamp of the oldest message to retrieve.
Declaration
[JsonProperty("timestampBegin")]
public WolfTimestamp AfterTime { get; }
Property Value
Type | Description |
---|---|
WolfTimestamp |
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> |
EventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Equals to MessageGroupHistoryList.
GroupID
ID of the group.
Declaration
[JsonProperty("id")]
public uint GroupID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Headers
Message payload headers.
Declaration
[JsonIgnore]
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
RequestChronologicalOrder
Should history be ordered chronologically?
Declaration
[JsonProperty("chronological")]
public bool RequestChronologicalOrder { get; }
Property Value
Type | Description |
---|---|
System.Boolean |