Class UserProfileMessage
A message for requesting user profile.
Inheritance
System.Object
UserProfileMessage
Namespace: TehGM.Wolfringo.Messages
Assembly: Wolfringo.Core.dll
Syntax
[ResponseType(typeof(UserProfileResponse))]
public class UserProfileMessage : IHeadersWolfMessage, IWolfMessage
Remarks
Uses UserProfileResponse as response type.
Constructors
| Improve this Doc View SourceUserProfileMessage()
Creates a message instance.
Declaration
[JsonConstructor]
protected UserProfileMessage()
UserProfileMessage(IEnumerable<UInt32>, Boolean, Boolean)
Creates a message instance.
Declaration
public UserProfileMessage(IEnumerable<uint> userIDs, bool requestExtended = true, bool subscribe = true)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.UInt32> | userIDs | IDs of users to request. |
System.Boolean | requestExtended | Requesting extended user details? |
System.Boolean | subscribe | Subscribe to users' profile updates? |
Properties
| Improve this Doc View SourceEventName
Message event name.
Declaration
[JsonIgnore]
public string EventName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Equals to SubscriberProfile.
Headers
Message payload headers.
Declaration
[JsonIgnore]
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
RequestExtendedDetails
Requesting extended user details?
Declaration
[JsonProperty("extended")]
public bool RequestExtendedDetails { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RequestUserIDs
IDs of requested users.
Declaration
[JsonProperty("idList")]
public IEnumerable<uint> RequestUserIDs { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt32> |
SubscribeToUpdates
Subscribe to users' profile updates?
Declaration
[JsonProperty("subscribe")]
public bool SubscribeToUpdates { get; }
Property Value
Type | Description |
---|---|
System.Boolean |