mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
new app server and database + added hub and controller of user profile
This commit is contained in:
@@ -10,4 +10,15 @@ public class MediaFile
|
||||
public MediaType MediaType { get; set; }
|
||||
public string MineType { get; set; }
|
||||
public DateTime DateCreated { get; set; }
|
||||
|
||||
public MediaOwnerType OwnerType { get; set; } = MediaOwnerType.Message;
|
||||
public Guid? OwnerId { get; set; }
|
||||
}
|
||||
|
||||
public enum MediaOwnerType
|
||||
{
|
||||
Message = 0,
|
||||
Avatar = 1,
|
||||
GroupAvatar = 2,
|
||||
System = 3 // (Emoge, icons è e.t.c)
|
||||
}
|
||||
@@ -11,7 +11,8 @@ public class UserSession
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime ExpiresAt { get; set; }
|
||||
public bool IsRevoked { get; set; } = false;
|
||||
|
||||
// public DateTime? RevokedAt { get; set; } TODO: Clear old UserSessions
|
||||
|
||||
public UserCryptoSession CryptoSession { get; set; }
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
|
||||
Reference in New Issue
Block a user