Files
Nexus.Reader/src/.documentation/cache/summaries/NexusReader.Application__Commands__Sync__UpdateReadingProgressCommand.cs.json
T
2026-05-25 14:02:56 +02:00

1 line
2.7 KiB
JSON

{"path":"NexusReader.Application/Commands/Sync/UpdateReadingProgressCommand.cs","purpose":"Defines a MediatR command record that carries data for updating a user's reading progress for an ebook (used in sync operations).","classification":{"role":"handler","layer":"application","confidence":0.9,"evidence":["Command pattern","namespace NexusReader.Application.Commands.Sync","record UpdateReadingProgressCommand ... : IRequest<Result> (MediatR command)"]},"className":"UpdateReadingProgressCommand","methods":[],"types":[{"name":"UpdateReadingProgressCommand","kind":"command","line":6,"purpose":"Carries parameters required to update a user's reading progress for an ebook in synchronization workflows.","fields":[{"name":"PageId","type":"string","required":true,"line":6,"description":"Identifier of the current page or location."},{"name":"UserId","type":"string","required":true,"line":7,"description":"Identifier of the user whose progress is being updated."},{"name":"EbookId","type":"Guid","required":true,"line":9,"description":"GUID of the ebook being read."},{"name":"Progress","type":"double","required":true,"line":10,"description":"Numeric progress value (likely 0.0-1.0 or percent)."},{"name":"ChapterTitle","type":"string?","required":false,"line":11,"description":"Optional title of the current chapter."},{"name":"ChapterIndex","type":"int","required":true,"line":12,"description":"Index of the current chapter."},{"name":"ExcludedConnectionId","type":"string?","required":false,"line":13,"description":"Optional connection id to exclude from notifications/sync (default null)."}]}],"serviceRegistrations":[],"startupActions":[],"dependencies":[],"patterns":["CQRS","MediatR Command"],"domainConcepts":["ReadingProgress","Ebook","User"],"keyDetails":"Simple immutable record used as a MediatR IRequest<Result> to trigger update logic elsewhere; contains nullable fields for optional metadata and an excluded connection id to avoid echoing updates.","orchestrationMethods":[],"typedContracts":[{"name":"UpdateReadingProgressCommand","kind":"command","line":6,"fieldCount":7,"evidencePaths":["NexusReader.Application/Commands/Sync/UpdateReadingProgressCommand.cs"]}],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[{"kind":"typed-contract","label":"UpdateReadingProgressCommand","line":6,"summary":"command with 7 fields.","confidence":0.8,"evidencePaths":["NexusReader.Application/Commands/Sync/UpdateReadingProgressCommand.cs"]}],"cacheMetadata":{"schemaVersion":2,"analysisVersion":"2026-05-23.cache-v1","contentChecksum":"ca97d53952b614e0bca15aa50fda28c29b032b77398d390225b05ddb0749bc7b","sourceByteSize":334,"analyzedAt":"2026-05-23T16:16:53.338Z","technology":"dotnet"}}