API TypingState et mise à jour des éléments associés.
This commit is contained in:
9
MareSynchronosAPI/Data/Enum/TypingScope.cs
Normal file
9
MareSynchronosAPI/Data/Enum/TypingScope.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MareSynchronos.API.Data.Enum;
|
||||
|
||||
public enum TypingScope
|
||||
{
|
||||
Unknown = 0,
|
||||
Proximity = 1, // Parler/Crier/Hurler
|
||||
Party = 2,
|
||||
CrossParty = 3
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
using MareSynchronos.API.Data;
|
||||
using MareSynchronos.API.Data.Enum;
|
||||
using MessagePack;
|
||||
|
||||
namespace MareSynchronos.API.Dto.User;
|
||||
|
||||
[MessagePackObject(keyAsPropertyName: true)]
|
||||
public record TypingStateDto(UserData User, bool IsTyping)
|
||||
public record TypingStateDto(UserData User, bool IsTyping, TypingScope Scope)
|
||||
{
|
||||
public UserData User { get; set; } = User;
|
||||
public bool IsTyping { get; set; } = IsTyping;
|
||||
public TypingScope Scope { get; set; } = Scope;
|
||||
}
|
||||
|
||||
@@ -131,6 +131,7 @@ public interface IMareHub
|
||||
Task UserSetProfile(UserProfileDto userDescription);
|
||||
|
||||
Task UserSetTypingState(bool isTyping);
|
||||
Task UserSetTypingState(bool isTyping, TypingScope scope);
|
||||
Task<CharaDataFullDto?> CharaDataCreate();
|
||||
Task<CharaDataFullDto?> CharaDataUpdate(CharaDataUpdateDto updateDto);
|
||||
Task<bool> CharaDataDelete(string id);
|
||||
|
||||
Reference in New Issue
Block a user