Files
ClubPenguinApi/MareSynchronosAPI/Dto/ConnectionDto.cs
rootdarkarchon ecaadc8ead Mare 0.8 (#13)
* get rid of file handling through grpc and signalr

* make non empty uri for serialization

* adjust api DataHash calc into their respective classes

* Revert "adapt api extensions"

This reverts commit 5fb78ba367.

* Revert "adapt userpermissions"

This reverts commit 28dd123ca6.

* Revert "Revert "adapt api extensions""

This reverts commit 12c9bc3c53566532e2984ace0b3d2e0a8b7facc0.

* Revert "Revert "adapt userpermissions""

This reverts commit 4193ac008cccf2f5b42e9cdf50b2a084877cbf9a.

* update flags

* add upload status to server

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-03-14 19:49:44 +01:00

24 lines
792 B
C#

using MareSynchronos.API.Data;
using MessagePack;
namespace MareSynchronos.API.Dto;
[MessagePackObject(keyAsPropertyName: true)]
public record ConnectionDto(UserData User)
{
public Version CurrentClientVersion { get; set; } = new(0, 0, 0);
public int ServerVersion { get; set; }
public bool IsAdmin { get; set; }
public bool IsModerator { get; set; }
public ServerInfo ServerInfo { get; set; } = new();
}
[MessagePackObject(keyAsPropertyName: true)]
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; }
public Uri FileServerAddress { get; set; } = new Uri("http://nonemptyuri");
}