Skip to content

Reading API types: narrow IWordCountService, seal records, separate API DTOs #1611

Open

Description

@BenjaminMichaelis

IWordCountService is wide (GetPageWordCount is just GetPageStats(...)?.PageWords ?? 0). ChapterWordCount/ReadingContextViewModel are unsealed records. ReadingProfileSummary is serialized as the public API contract, ChapterStatsResponse duplicates ChapterWordCount, and BookStatsResponse.cs holds two types. RecordSessionResult can represent both-null/both-set states.

Found during review of #1267; intentionally kept out of that PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions