* start with group permissions implementation * refactor group dto stuff * adjustments to api as necessary from client * more api refactor for UserData * use implicit usings and file scoped namespaces * fix userpermissionsextensions * fix extenions * add more comparers * adjust comparers * remove admin stuff (tbd migration to discord bot) * adjust extensions * code style for api --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
19 lines
533 B
C#
19 lines
533 B
C#
using MareSynchronos.API.Data;
|
|
|
|
namespace MareSynchronos.API.Dto;
|
|
|
|
public record ConnectionDto(UserData User)
|
|
{
|
|
public int ServerVersion { get; set; }
|
|
public bool IsAdmin { get; set; }
|
|
public bool IsModerator { get; set; }
|
|
public ServerInfo ServerInfo { get; set; } = new();
|
|
}
|
|
|
|
public record ServerInfo
|
|
{
|
|
public string ShardName { get; set; } = string.Empty;
|
|
public int MaxGroupUserCount { get; set; }
|
|
public int MaxGroupsCreatedByUser { get; set; }
|
|
public int MaxGroupsJoinedByUser { get; set; }
|
|
} |