Table of Contents

Class UserInfo

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
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

original UserInfo

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

string

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

string

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

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

public required long Id { get; init; }

Property Value

long

LastActivityOn

Represents the date and time of the user's last activity.

public DateTimeOffset? LastActivityOn { get; set; }

Property Value

DateTimeOffset?

Name

Represents the name (username) of the user. Unique but could change over time.

public required string Name { get; set; }

Property Value

string

Rank

Represents the rank of the user.

public int Rank { get; set; }

Property Value

int

Sub

public required Guid Sub { get; init; }

Property Value

Guid

SuspendedUntilUtc

public DateTimeOffset? SuspendedUntilUtc { get; set; }

Property Value

DateTimeOffset?

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(UserInfo?)

public virtual bool Equals(UserInfo? other)

Parameters

other UserInfo

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

IsInactive()

Returns if user was active or is inactive (not logged in recently).

public bool IsInactive()

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(UserInfo?, UserInfo?)

public static bool operator ==(UserInfo? left, UserInfo? right)

Parameters

left UserInfo
right UserInfo

Returns

bool

operator !=(UserInfo?, UserInfo?)

public static bool operator !=(UserInfo? left, UserInfo? right)

Parameters

left UserInfo
right UserInfo

Returns

bool