Class User
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
[JsonConverter(typeof(LdJsonConverters.UserConverter))]
public class User : IEquatable<User>, IJsonSerializable
Constructors
User(string, string, string, string, string, string, string, string, string, bool?, ImmutableDictionary<string, LdValue>, ImmutableHashSet<string>)
Declaration
public User(string key, string secondary, string ip, string country, string firstName, string lastName, string name, string avatar, string email, bool? anonymous, ImmutableDictionary<string, LdValue> custom, ImmutableHashSet<string> privateAttributeNames)
Parameters
Properties
Anonymous
Declaration
public bool Anonymous { get; }
Property Value
Avatar
Declaration
public string Avatar { get; }
Property Value
Country
Declaration
public string Country { get; }
Property Value
Custom
Declaration
public IImmutableDictionary<string, LdValue> Custom { get; }
Property Value
Email
Declaration
public string Email { get; }
Property Value
FirstName
Declaration
public string FirstName { get; }
Property Value
IPAddress
Declaration
public string IPAddress { get; }
Property Value
Key
Declaration
public string Key { get; }
Property Value
LastName
Declaration
public string LastName { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
PrivateAttributeNames
Declaration
public IImmutableSet<string> PrivateAttributeNames { get; }
Property Value
Methods
Builder(User)
Declaration
public static IUserBuilder Builder(User fromUser)
Parameters
Type |
Name |
Description |
User |
fromUser |
|
Returns
Builder(string)
Declaration
public static IUserBuilder Builder(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Equals(User)
Declaration
public bool Equals(User u)
Parameters
Type |
Name |
Description |
User |
u |
|
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetAttribute(UserAttribute)
Declaration
public LdValue GetAttribute(UserAttribute attribute)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
WithKey(string)
Declaration
public static User WithKey(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Implements