Class GroupProfileMessage
A message for requesting group profile.
Namespace: TehGM.Wolfringo.Messages
Assembly: Wolfringo.Core.dll
Syntax
[ResponseType(typeof(GroupProfileResponse))]
public class GroupProfileMessage : IHeadersWolfMessage, IWolfMessage
Remarks
Uses GroupProfileResponse as response type.
Constructors
| Improve this Doc View SourceGroupProfileMessage()
Creates a message instance.
Declaration
[JsonConstructor]
protected GroupProfileMessage()
GroupProfileMessage(IEnumerable<UInt32>, Boolean)
Creates a message instance.
Declaration
public GroupProfileMessage(IEnumerable<uint> groupIDs, bool subscribe = true)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<UInt32> | groupIDs | IDs of the groups to request. |
Boolean | subscribe | Subscribe to groups' profile updates? |
GroupProfileMessage(IEnumerable<UInt32>, IEnumerable<String>, Boolean)
Creates a message instance.
Declaration
public GroupProfileMessage(IEnumerable<uint> groupIDs, IEnumerable<string> requestEntities, bool subscribe = true)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<UInt32> | groupIDs | IDs of the groups to request. |
IEnumerable<String> | requestEntities | Names of entities to request. |
Boolean | subscribe | Subscribe to groups' profile updates? |
GroupProfileMessage(String, Boolean)
Creates a message instance.
Declaration
public GroupProfileMessage(string groupName, bool subscribe = true)
Parameters
Type | Name | Description |
---|---|---|
String | groupName | Name of the group to request. |
Boolean | subscribe | Subscribe to groups' profile updates? |
GroupProfileMessage(String, IEnumerable<String>, Boolean)
Creates a message instance.
Declaration
public GroupProfileMessage(string groupName, IEnumerable<string> requestEntities, bool subscribe = true)
Parameters
Type | Name | Description |
---|---|---|
String | groupName | Name of the group to request. |
IEnumerable<String> | requestEntities | Names of entities to request. |
Boolean | subscribe | Subscribe to groups' profile updates? |
Fields
| Improve this Doc View SourceDefaultRequestEntities
Default group entities to request.
Declaration
[JsonIgnore]
public static readonly IEnumerable<string> DefaultRequestEntities
Field Value
Type | Description |
---|---|
IEnumerable<String> |
Properties
| Improve this Doc View SourceEventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Equals to GroupProfile.
Headers
Message payload headers.
Declaration
[JsonIgnore]
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, Object> |
RequestEntities
Requested entities.
Declaration
[JsonProperty("entities")]
public IEnumerable<string> RequestEntities { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
RequestGroupIDs
IDs of requested groups. Mutually exclusive with RequestGroupName
Declaration
[JsonProperty("idList", NullValueHandling = NullValueHandling.Ignore)]
public IEnumerable<uint> RequestGroupIDs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<UInt32> |
RequestGroupName
Name of the requested group. Mutually exclusive with RequestGroupIDs.
Declaration
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string RequestGroupName { get; }
Property Value
Type | Description |
---|---|
String |
SubscribeToUpdates
Subscribe to groups' profile updates?
Declaration
[JsonProperty("subscribe")]
public bool SubscribeToUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |