update api for groups

This commit is contained in:
Stanley Dimant
2022-09-29 15:33:46 +02:00
parent 9dc1e901aa
commit 57a7ab8262
4 changed files with 47 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
{ {
public class Api public class Api
{ {
public const int Version = 14; public const int Version = 15;
public const string Path = "/mare"; public const string Path = "/mare";
public const string SendFileAbortUpload = "AbortUpload"; public const string SendFileAbortUpload = "AbortUpload";
@@ -42,5 +42,20 @@
public const string OnUserReceiveCharacterData = "ReceiveCharacterData"; public const string OnUserReceiveCharacterData = "ReceiveCharacterData";
public const string OnUserRemoveOnlinePairedPlayer = "RemoveOnlinePairedPlayer"; public const string OnUserRemoveOnlinePairedPlayer = "RemoveOnlinePairedPlayer";
public const string OnUserAddOnlinePairedPlayer = "AddOnlinePairedPlayer"; public const string OnUserAddOnlinePairedPlayer = "AddOnlinePairedPlayer";
public const string InvokeGroupChangePassword = "GroupChangePassword";
public const string InvokeGroupCreate = "CreateGroup";
public const string InvokeGroupGetGroups = "GetGroups";
public const string InvokeGroupGetUsersInGroup = "GetUsersInGroup";
public const string SendGroupChangeInviteState = "GroupChangeInviteState";
public const string SendGroupDelete = "DeleteGroup";
public const string SendGroupJoin = "JoinGroup";
public const string SendGroupLeave = "LeaveGroup";
public const string SendGroupPause = "PauseGroup";
public const string SendGroupRemoveUser = "RemoveUserFromGroup";
public const string SendGroupChangeOwner = "ChangeOwnerOfGroup";
public const string OnGroupChange = "OnGroupPushChange";
public const string OnGroupUserChange = "OnGroupUserChange";
} }
} }

View File

@@ -0,0 +1,8 @@
namespace MareSynchronos.API
{
public record GroupCreatedDto
{
public string GID { get; set; }
public string Password { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace MareSynchronos.API
{
public record GroupDto
{
public string GID { get; set; }
public string OwnedBy { get; set; }
public bool InvitesEnabled { get; set; }
public bool IsPaused { get; set; }
public bool IsDeleted { get; set; }
public string Alias { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace MareSynchronos.API
{
public record GroupPairDto
{
public string GroupGID { get; set; }
public string UserUID { get; set; }
public string UserAlias { get; set; }
public bool IsPaused { get; set; }
public bool IsRemoved { get; set; }
}
}