Class UserInfo
public record UserInfo : IUserInfo, IEquatable<UserInfo>
- Inheritance
-
UserInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
UserInfo()
public UserInfo()
UserInfo(UserInfo)
[SetsRequiredMembers]
protected UserInfo(UserInfo original)
Parameters
originalUserInfo
Properties
DispatcherTag
Represents an abbreviation formed by the first two letters of the first name and the first two letters of the last name, which can be displayed publicly. This property is null if the user has not set a publicly used display name. It may differ from the user's actual last name for privacy purposes.
public string? DispatcherTag { get; set; }
Property Value
DisplayFirstName
Represents the first name of the user, which can be displayed publicly. This property is null if the user has not set a publicly used display name. It may differ from the user's actual first name for privacy purposes.
public string? DisplayFirstName { get; set; }
Property Value
DisplayLastName
Represents the last name of the user, which can be displayed publicly. This property is null if the user has not set a publicly used display name. It may differ from the user's actual last name for privacy purposes.
public string? DisplayLastName { get; set; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Id
public required long Id { get; init; }
Property Value
LastActivityOn
Represents the date and time of the user's last activity.
public DateTimeOffset? LastActivityOn { get; set; }
Property Value
Name
Represents the name (username) of the user. Unique but could change over time.
public required string Name { get; set; }
Property Value
Rank
Represents the rank of the user.
public int Rank { get; set; }
Property Value
Sub
public required Guid Sub { get; init; }
Property Value
SuspendedUntilUtc
public DateTimeOffset? SuspendedUntilUtc { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(UserInfo?)
public virtual bool Equals(UserInfo? other)
Parameters
otherUserInfo
Returns
GetHashCode()
public override int GetHashCode()
Returns
IsInactive()
Returns if user was active or is inactive (not logged in recently).
public bool IsInactive()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(UserInfo?, UserInfo?)
public static bool operator ==(UserInfo? left, UserInfo? right)
Parameters
Returns
operator !=(UserInfo?, UserInfo?)
public static bool operator !=(UserInfo? left, UserInfo? right)