Package-level declarations

Types

Link copied to clipboard
data class Post(val id: String, val topic: String, val title: String, val summaryMarkdown: String, val sourceName: String, val sourceUrl: String, val imageUrl: String?, val digestDate: String?, val publishedAt: Instant, val isBookmarked: Boolean)
Link copied to clipboard
data class Profile(val userId: String, val avatarUrl: String?, val bannerUrl: String?, val email: String? = null, val displayName: String? = null, val handle: String? = null, val bio: String? = null, val isVerified: Boolean = false, val savedCount: Int? = null)

The logged-in user's profile. userId, avatarUrl and bannerUrl come from the live /me endpoint today; the identity fields (displayName, handle, bio, isVerified) and savedCount back the profile screen and are not all returned by the server yet - they stay null until it does, at which point they flow through toDomain unchanged.

Link copied to clipboard
data class SelectableTopic(val topic: Topic, val isSelected: Boolean)

A catalogue entry: a known topic plus whether the user currently follows it.

Link copied to clipboard
data class Topic(val id: String, val displayLabel: String, val apiValue: String?)

A feed topic. Previously a fixed enum; now a value type so the set of topics can be served by the backend (see TopicsRepository, which calls the now-live GET /v1/topics) instead of being hardcoded. All is a client-only pseudo-topic (no apiValue = "no filter"). The named constants and defaults are the seed set shown until that fetch completes, and also back previews and tests.

Functions

Link copied to clipboard