Class User
Represents a user in the Vonage platform with their profile and communication channels.
public record User : IEquatable<User>
- Inheritance
-
User
- Implements
- Inherited Members
Constructors
User(string, string, string, Uri, Dictionary<string, object>, UserChannels, HalLinks)
Represents a user in the Vonage platform with their profile and communication channels.
public User(string Id, string Name, string DisplayName, Uri ImageUrl, Dictionary<string, object> Properties, UserChannels Channels, HalLinks Links)
Parameters
IdstringThe unique identifier for the user.
NamestringThe unique name for the user.
DisplayNamestringA display name for the user. Does not need to be unique.
ImageUrlUriAn image URL associated with the user's profile.
PropertiesDictionary<string, object>Custom properties associated with the user.
ChannelsUserChannelsThe communication channels configured for the user.
LinksHalLinksHAL links for related resources.
Properties
Channels
The communication channels configured for the user.
[JsonPropertyName("channels")]
[JsonPropertyOrder(5)]
public UserChannels Channels { get; init; }
Property Value
DisplayName
A display name for the user. Does not need to be unique.
[JsonPropertyName("display_name")]
[JsonPropertyOrder(2)]
public string DisplayName { get; init; }
Property Value
Id
The unique identifier for the user.
[JsonPropertyName("id")]
[JsonPropertyOrder(0)]
public string Id { get; init; }
Property Value
ImageUrl
An image URL associated with the user's profile.
[JsonPropertyName("image_url")]
[JsonPropertyOrder(3)]
public Uri ImageUrl { get; init; }
Property Value
Links
HAL links for related resources.
[JsonPropertyName("_links")]
[JsonPropertyOrder(6)]
public HalLinks Links { get; init; }
Property Value
Name
The unique name for the user.
[JsonPropertyName("name")]
[JsonPropertyOrder(1)]
public string Name { get; init; }
Property Value
Properties
Custom properties associated with the user.
[JsonPropertyName("properties")]
[JsonPropertyOrder(4)]
public Dictionary<string, object> Properties { get; init; }