Class UserProfileMessage
A message for requesting user profile.
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 |
---|---|---|
IEnumerable<UInt32> | userIDs | IDs of users to request. |
Boolean | requestExtended | Requesting extended user details? |
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 |
---|---|
String |
Remarks
Equals to SubscriberProfile.
Headers
Message payload headers.
Declaration
[JsonIgnore]
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, Object> |
RequestExtendedDetails
Requesting extended user details?
Declaration
[JsonProperty("extended")]
public bool RequestExtendedDetails { get; }
Property Value
Type | Description |
---|---|
Boolean |
RequestUserIDs
IDs of requested users.
Declaration
[JsonProperty("idList")]
public IEnumerable<uint> RequestUserIDs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<UInt32> |
SubscribeToUpdates
Subscribe to users' profile updates?
Declaration
[JsonProperty("subscribe")]
public bool SubscribeToUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |