Files
EchoHub/docs/auriondocs/Code/src/EchoHub.Client/Services/UserSession.cs.md
T
Hue 607217b314 docs: Update documentation for 145 files
Generated by AurionDocs
Job ID: 934f8c39-8082-4942-8d17-72ed8f5f8d50
Source commit: 40aea9a
2026-07-23 11:44:20 +02:00

965 B

UserSession

File: src/EchoHub.Client/Services/UserSession.cs
Kind: class

internal sealed class UserSession

Represents the current user's session state within the client, encapsulating the Username, the presence Status from UserStatus, and an optional StatusMessage. It is a lightweight in-memory container used by UI and networking layers to track who is logged in and how they present themselves. The Reset method reinitializes all fields to their defaults: Username to empty, Status to UserStatus.Online, and StatusMessage to null.

Remarks

This small class centralizes session-related data so multiple components can read and update the user's identity and presence from a single source of truth. By being internal and sealed, it communicates that this is an implementation detail of the client assembly and should not be extended or exposed publicly.