net8, language features, bugfixes

This commit is contained in:
kkb 2023-12-18 16:31:00 +01:00
parent 1591618c2c
commit ce99053a10
353 changed files with 3245 additions and 3944 deletions

View file

@ -2,19 +2,14 @@
namespace Insight.Web.Models;
public class ChatUser
public class ChatUser(ObjectId uid)
{
public ObjectId Uid { get; set; }
public ObjectId Uid { get; set; } = uid;
public bool Online { get; set; }
public string? Username { get; set; }
public string? Email { get; set; }
public byte[]? Avatar { get; set; }
public ChatUser(ObjectId uid)
{
Uid = uid;
}
public override bool Equals(object? obj)
{
if (obj == null || GetType() != obj.GetType()) return false;