Synchronise les parties entre les deux devices

This commit is contained in:
2026-04-15 23:40:18 +02:00
parent 3b88b9abe6
commit e0c3a41ccd
11 changed files with 527 additions and 18 deletions

View File

@@ -1,3 +1,5 @@
using ChessCubing.App.Models;
namespace ChessCubing.App.Models.Social;
public sealed class SocialOverviewResponse
@@ -133,3 +135,33 @@ public sealed class PlaySessionResponse
public DateTime ConfirmedUtc { get; init; }
}
public sealed class CollaborativeMatchStateMessage
{
public string SessionId { get; init; } = string.Empty;
public string? MatchJson { get; init; }
public string Route { get; init; } = "/application.html";
public string SenderSubject { get; init; } = string.Empty;
public long Revision { get; init; }
public DateTime UpdatedUtc { get; init; }
}
public sealed class CollaborativeMatchSnapshot
{
public string SessionId { get; init; } = string.Empty;
public MatchState? Match { get; init; }
public string Route { get; init; } = "/application.html";
public string SenderSubject { get; init; } = string.Empty;
public long Revision { get; init; }
public DateTime UpdatedUtc { get; init; }
}