Publication

constructor(id: PublicationId, title: String, releaseFrequencyId: ReleaseFrequencyId, mediaId: MediaId?, topicIds: List<TopicId>, type: ContentType, source: ContentSource, lastIssue: IssueShort? = null, langIds: List<LanguageId>, availableYears: List<Int> = emptyList(), multiEdition: MultiEdition? = null)

Parameters

id

unique identifier of the publication

title

display title of the publication

releaseFrequencyId

how often the publication comes out, as an opaque identifier

mediaId

optional identifier of the parent media (if any)

topicIds

list of topics attached to this publication

type

type of the published content (article PDF, video)

source

origin category from which this publication is sourced (magazine, newsPaper, book, comic, feed, sponsored, corporate)

lastIssue

optional, short-form last issue belonging to the publication containing core information about the issue

langIds

language ids for the publication

availableYears

the years this publication has archived issues for, deduplicated — empty when it has none. Turn one into a DateRange with DateRange.ofYear and pass it to Issues.all's dates filter to browse a year at a time, instead of paging through the whole archive.

multiEdition

the editions of the multi-edition group this publication belongs to — principal publication and sub-editions, this one included — or null for a publication that belongs to no group. See MultiEdition.