User
The User
class represents a user of the Melon Server.
Properties
Property | Type | Description |
---|---|---|
_id |
string |
Unique identifier for the user. |
Username |
string |
Username of the user. |
Password |
string |
Hashed password of the user. |
Bio |
string |
Biography or description provided by the user. |
Salt |
byte[] |
Salt used for password hashing. |
Type |
string |
User type or role (e.g., "Admin", "User"). |
FavTrack |
string |
ID of the user's favorite track. |
FavAlbum |
string |
ID of the user's favorite album. |
FavArtist |
string |
ID of the user's favorite artist. |
PublicStats |
bool |
Indicates if the user's stats are public. |
Friends |
List<string> |
List of user IDs who are friends with this user. |
LastLogin |
DateTime |
Timestamp of the user's last login. |
ResponseUser
The ResponseUser
class is used for HTTP responses, providing a trimmed version of the user data without sensitive information.
Properties
Property | Type | Description |
---|---|---|
_id |
string |
Unique identifier for the user. |
Username |
string |
Username of the user. |
Bio |
string |
User's biography. |
Type |
string |
User type or role. |
FavTrack |
string |
ID of the user's favorite track. |
FavAlbum |
string |
ID of the user's favorite album. |
FavArtist |
string |
ID of the user's favorite artist. |
PublicStats |
bool |
Indicates if the user's stats are public. |
Friends |
List<string> |
List of user IDs who are friends with this user. |
LastLogin |
DateTime |
Timestamp of the user's last login. |