14 lines
693 B
C#

using PlotDirector.Companion.Protocol;
namespace PlotDirector.Companion.Client;
// Pinned before the upload confirmation dialog; never read a different target after consent.
public sealed class AiConsent
{
public Guid SessionId {get;set;}
public Guid SnapshotId {get;set;}
public Guid AuthenticationContext {get;set;}
public int BookId {get;set;}
public StructureSuggestion[] Chapters {get;set;}=Array.Empty<StructureSuggestion>();
public bool Matches(Guid session,Guid snapshot,Guid authentication) => SessionId!=Guid.Empty&&SnapshotId!=Guid.Empty&&AuthenticationContext!=Guid.Empty&&SessionId==session&&SnapshotId==snapshot&&AuthenticationContext==authentication;
}