Mare 0.9 (#27)
* add jwt expiry * update api * merge * start rework permissions * ok so in theory this compiles * make it work I guess * reuse some permissions * fix intermediate connectivity issues * fixes * whatever * some fixes I guess * fix some stuff * idk some random fixes I guess * change some defaults * update nuget * adjust order of operations * adjust deletion of account * remove todo --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
namespace MareSynchronosShared.Models;
|
||||
|
||||
public class UserPermissionQuery
|
||||
{
|
||||
public string UserUID { get; set; }
|
||||
public string OtherUserUID { get; set; }
|
||||
public string Alias { get; set; }
|
||||
public string GID { get; set; }
|
||||
public bool Synced { get; set; }
|
||||
public bool OwnpermIsPaused { get; set; }
|
||||
public bool OwnpermSticky { get; set; }
|
||||
public bool OwnpermDisableAnimations { get; set; }
|
||||
public bool OwnpermDisableSounds { get; set; }
|
||||
public bool OwnpermDisableVFX { get; set; }
|
||||
public bool? OtherpermIsPaused { get; set; }
|
||||
public bool? OtherpermDisableAnimations { get; set; }
|
||||
public bool? OtherpermDisableSounds { get; set; }
|
||||
public bool? OtherpermDisableVFX { get; set; }
|
||||
|
||||
public UserPermissionSet OwnPermissions => new UserPermissionSet
|
||||
{
|
||||
UserUID = UserUID,
|
||||
OtherUserUID = OtherUserUID,
|
||||
IsPaused = OwnpermIsPaused,
|
||||
DisableAnimations = OwnpermDisableAnimations,
|
||||
DisableSounds = OwnpermDisableSounds,
|
||||
DisableVFX = OwnpermDisableVFX,
|
||||
Sticky = OwnpermSticky
|
||||
};
|
||||
|
||||
public UserPermissionSet? OtherPermissions => !Synced ? null : new UserPermissionSet
|
||||
{
|
||||
UserUID = OtherUserUID,
|
||||
OtherUserUID = UserUID,
|
||||
IsPaused = OtherpermIsPaused ?? false,
|
||||
DisableAnimations = OtherpermDisableAnimations ?? false,
|
||||
DisableSounds = OtherpermDisableSounds ?? false,
|
||||
DisableVFX = OtherpermDisableVFX ?? false,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user