Class GroupChatHistoryMessage
A message for requesting group chat history.
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 |
---|---|---|
UInt32 | groupId | ID of the group. |
Nullable<WolfTimestamp> | before | Timestamp of the oldest already received message. |
Nullable<WolfTimestamp> | after | Timestamp of the youngest already received message. |
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 |
---|---|
Nullable<WolfTimestamp> |
EventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Equals to MessageGroupHistoryList.
GroupID
ID of the group.
Declaration
[JsonProperty("id")]
public uint GroupID { get; }
Property Value
Type | Description |
---|---|
UInt32 |
Headers
Message payload headers.
Declaration
[JsonIgnore]
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, Object> |
RequestChronologicalOrder
Should history be ordered chronologically?
Declaration
[JsonProperty("chronological")]
public bool RequestChronologicalOrder { get; }
Property Value
Type | Description |
---|---|
Boolean |