Skip to content

DiGi.User.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.User.Classes Namespace

Classes

User Class

Represents a user within the system, providing properties for identity and contact information and supporting serialization.

public class User : DiGi.Core.Classes.SerializableObject

Inheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → User

Constructors

User(User) Constructor

Initializes a new instance of the User class by copying another User object.

public User(DiGi.User.Classes.User user);

Parameters

user User

The source User object to copy from.

User(string) Constructor

Initializes a new instance of the User class with a specified email.

public User(string? email);

Parameters

email System.String

The email address of the user.

User(JsonObject) Constructor

Initializes a new instance of the User class from a JsonObject.

public User(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing user data.

Properties

User.Email Property

Gets or sets the email address of the user.

public string? Email { get; set; }

Property Value

System.String

User.FirstName Property

Gets or sets the first name of the user.

public string? FirstName { get; set; }

Property Value

System.String

User.LastName Property

Gets or sets the last name of the user.

public string? LastName { get; set; }

Property Value

System.String

UserLogin Class

Represents the login credentials for a user, providing functionality for serialization and initialization from various sources.

public class UserLogin : DiGi.Core.Classes.SerializableObject

Inheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → UserLogin

Constructors

UserLogin(UserLogin) Constructor

Initializes a new instance of the UserLogin class by copying another UserLogin object.

public UserLogin(DiGi.User.Classes.UserLogin userLogin);

Parameters

userLogin UserLogin

The source UserLogin object to copy from.

UserLogin(string) Constructor

Initializes a new instance of the UserLogin class with the specified email.

public UserLogin(string? email);

Parameters

email System.String

The email address of the user.

UserLogin(JsonObject) Constructor

Initializes a new instance of the UserLogin class from a JsonObject.

public UserLogin(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing user login data.

Properties

UserLogin.Email Property

Gets the email address of the user.

public string? Email { get; private set; }

Property Value

System.String

UserLogin.Password Property

Gets the password of the user.

public string? Password { get; private set; }

Property Value

System.String