Ajout des syncshell perma
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MareSynchronos.API.Data;
|
||||
using System;
|
||||
using MareSynchronos.API.Data;
|
||||
using MareSynchronos.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
@@ -13,4 +14,7 @@ public record GroupInfoDto(GroupData Group, UserData Owner, GroupPermissions Gro
|
||||
public string OwnerUID => Owner.UID;
|
||||
public string? OwnerAlias => Owner.Alias;
|
||||
public string OwnerAliasOrUID => Owner.AliasOrUID;
|
||||
|
||||
public bool IsTemporary { get; set; }
|
||||
public DateTime? ExpiresAt { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
using MareSynchronos.API.Data;
|
||||
using System;
|
||||
using MareSynchronos.API.Data;
|
||||
using MessagePack;
|
||||
|
||||
namespace MareSynchronos.API.Dto.Group;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record GroupPasswordDto(GroupData Group, string Password) : GroupDto(Group);
|
||||
public record GroupPasswordDto(GroupData Group, string Password) : GroupDto(Group)
|
||||
{
|
||||
public bool IsTemporary { get; set; }
|
||||
public DateTime? ExpiresAt { get; set; }
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace MareSynchronos.API.SignalR;
|
||||
|
||||
public interface IMareHub
|
||||
{
|
||||
const int ApiVersion = 1027;
|
||||
const int ApiVersion = 1028;
|
||||
const string Path = "/mare";
|
||||
|
||||
Task<bool> CheckClientHealth();
|
||||
@@ -83,6 +83,8 @@ public interface IMareHub
|
||||
|
||||
Task<GroupPasswordDto> GroupCreate(string? alias);
|
||||
|
||||
Task<GroupPasswordDto> GroupCreateTemporary(DateTime expiresAtUtc);
|
||||
|
||||
Task<List<string>> GroupCreateTempInvite(GroupDto group, int amount);
|
||||
|
||||
Task GroupDelete(GroupDto group);
|
||||
|
||||
Reference in New Issue
Block a user