mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
add group moderation and banning functionality to api (#13)
* add group moderation and banning functionality to api * set moderator to false on group migration * send IsModerator in addition on group join Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
parent
6ffad7f723
commit
a45a923260
12 changed files with 1297 additions and 42 deletions
19
MareSynchronosServer/MareSynchronosShared/Models/GroupBan.cs
Normal file
19
MareSynchronosServer/MareSynchronosShared/Models/GroupBan.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MareSynchronosShared.Models;
|
||||
|
||||
public class GroupBan
|
||||
{
|
||||
public Group Group { get; set; }
|
||||
public string GroupGID { get; set; }
|
||||
public User BannedUser { get; set; }
|
||||
public string BannedUserUID { get; set; }
|
||||
public User BannedBy { get; set; }
|
||||
public string BannedByUID { get; set; }
|
||||
public DateTime BannedOn { get; set; }
|
||||
public string BannedReason { get; set; }
|
||||
}
|
||||
|
|
@ -8,4 +8,5 @@ public class GroupPair
|
|||
public User GroupUser { get; set; }
|
||||
public bool IsPaused { get; set; }
|
||||
public bool IsPinned { get; set; }
|
||||
public bool IsModerator { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue