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

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

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

IsInactive()

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

public bool IsInactive()

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.