mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
6d1c53beeb
Large refactor that renames/moves core types into a new Govor.Domain surface and reorganizes the Application layer. Models, configurations, migrations and many files moved from Govor.Core/Govor.Data to Govor.Domain; numerous Application services, interfaces and implementations were relocated or added (authentication, friends, messages, medias, push notifications, user sessions, storage, synching, private chats, etc.). Tests updated to use Govor.Domain namespaces and adjusted project references (removed Govor.Data reference from API tests). Also updated API, Hub and mapping code and project files to reflect the new structure and naming. This is primarily a codebase-wide namespace and module reorganization to establish a Domain project and restructure application services.
48 lines
737 B
C#
48 lines
737 B
C#
namespace Govor.Domain.Models.Users;
|
|
|
|
public class PrivacyUserSettings
|
|
{
|
|
public Guid UserId { get; set; }
|
|
|
|
public bool IsGlobalAccount { get; set; }
|
|
|
|
public DeletingMessagesVia DeletingVia { get; set; }
|
|
public int DeletingIn { get; set; }
|
|
|
|
public bool IsInvisibleMode { get; set; }
|
|
|
|
public List<PrivacyRuleEntity> Rules { get; set; } = new();
|
|
}
|
|
|
|
public enum WhoCan
|
|
{
|
|
None = 0,
|
|
OnlyFriends = 1,
|
|
Everyone = 2,
|
|
}
|
|
|
|
public enum DeletingMessagesVia
|
|
{
|
|
None = 0,
|
|
Hours = 1,
|
|
Days = 2,
|
|
Months = 3,
|
|
Years = 4
|
|
}
|
|
|
|
public enum PrivacyTargetArea
|
|
{
|
|
CanSend = 0,
|
|
CanSeeTimeWas = 1,
|
|
CanSeeImage = 2,
|
|
CanSendImage = 3,
|
|
}
|
|
|
|
public enum PrivacyRuleType
|
|
{
|
|
Allow = 0,
|
|
Deny = 1
|
|
}
|
|
|
|
|