update api for groups
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public class Api
|
||||
{
|
||||
public const int Version = 14;
|
||||
public const int Version = 15;
|
||||
public const string Path = "/mare";
|
||||
|
||||
public const string SendFileAbortUpload = "AbortUpload";
|
||||
@@ -42,5 +42,20 @@
|
||||
public const string OnUserReceiveCharacterData = "ReceiveCharacterData";
|
||||
public const string OnUserRemoveOnlinePairedPlayer = "RemoveOnlinePairedPlayer";
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
||||
8
MareSynchronosAPI/GroupCreatedDto.cs
Normal file
8
MareSynchronosAPI/GroupCreatedDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MareSynchronos.API
|
||||
{
|
||||
public record GroupCreatedDto
|
||||
{
|
||||
public string GID { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
12
MareSynchronosAPI/GroupDto.cs
Normal file
12
MareSynchronosAPI/GroupDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
11
MareSynchronosAPI/GroupPairDto.cs
Normal file
11
MareSynchronosAPI/GroupPairDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user