update dtos for moderator and banned users in groups

This commit is contained in:
Stanley Dimant
2022-10-06 15:35:14 +02:00
parent fc47c861b7
commit c2d740def2
3 changed files with 21 additions and 0 deletions

View File

@@ -57,6 +57,10 @@
public const string SendGroupChangeOwner = "ChangeOwnerOfGroup";
public const string SendGroupChangePinned = "ChangedPinnedUserInGroup";
public const string SendGroupClear = "ClearGroup";
public const string SendBanUserFromGroup = "BanUserFromGroup";
public const string InvokeGetBannedUsersForGroup = "GetBannedUsersForGroup";
public const string SendUnbanUserFromGroup = "UnbanUserFromGroup";
public const string SendGroupSetModerator = "InvokeGroupSetModerator";
public const string OnGroupChange = "OnGroupPushChange";
public const string OnGroupUserChange = "OnGroupUserChange";

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MareSynchronos.API
{
public record BannedGroupUserDto
{
public string UID { get; set; }
public string Reason { get; set; }
public DateTime BannedOn { get; set; }
public string BannedBy { get; set; }
}
}

View File

@@ -8,5 +8,6 @@
public bool? IsPaused { get; set; }
public bool? IsRemoved { get; set; }
public bool? IsPinned { get; set; }
public bool? IsModerator { get; set; }
}
}