Documentation
¶
Index ¶
- Variables
- type Achievement
- type AchievementGroup
- type AchievementGroupPagination
- type AchievementPagination
- type AchievementSection
- type AchievementsSource
- type AddToCollectionResult
- type Alternative
- type AlternativesTask
- type Analytics
- type AnswerSurveyQuestionResult
- type Application
- type AvatarSection
- func (this AvatarSection) GetDescription() *string
- func (this AvatarSection) GetID() string
- func (this AvatarSection) GetItems() *SectionItemPagination
- func (this AvatarSection) GetMetadata() *ItemSectionMetadata
- func (this AvatarSection) GetTitle() *string
- func (AvatarSection) IsItemSection()
- func (AvatarSection) IsSection()
- type BirthOptions
- type Calendar
- type CalendarDay
- type CalendarEntry
- type CalendarPeriod
- type CardListSection
- func (this CardListSection) GetDescription() *string
- func (this CardListSection) GetID() string
- func (this CardListSection) GetItems() *SectionItemPagination
- func (this CardListSection) GetMetadata() *ItemSectionMetadata
- func (this CardListSection) GetTitle() *string
- func (CardListSection) IsItemSection()
- func (CardListSection) IsSection()
- type CardSection
- func (this CardSection) GetDescription() *string
- func (this CardSection) GetID() string
- func (this CardSection) GetItems() *SectionItemPagination
- func (this CardSection) GetMetadata() *ItemSectionMetadata
- func (this CardSection) GetTitle() *string
- func (CardSection) IsItemSection()
- func (CardSection) IsSection()
- type CardSectionSize
- type Chapter
- type CollectionItem
- type Config
- type ConfirmAchievementResult
- type ContentType
- type ContentTypeCount
- type ContextCollection
- type Contribution
- type ContributionItem
- type ContributionType
- type ContributionTypeCount
- type ContributionsPagination
- type DefaultGridSection
- func (this DefaultGridSection) GetDescription() *string
- func (this DefaultGridSection) GetID() string
- func (this DefaultGridSection) GetItems() *SectionItemPagination
- func (this DefaultGridSection) GetMetadata() *ItemSectionMetadata
- func (this DefaultGridSection) GetSize() GridSectionSize
- func (this DefaultGridSection) GetTitle() *string
- func (DefaultGridSection) IsGridSection()
- func (DefaultGridSection) IsItemSection()
- func (DefaultGridSection) IsSection()
- type DefaultSection
- func (this DefaultSection) GetDescription() *string
- func (this DefaultSection) GetID() string
- func (this DefaultSection) GetItems() *SectionItemPagination
- func (this DefaultSection) GetMetadata() *ItemSectionMetadata
- func (this DefaultSection) GetTitle() *string
- func (DefaultSection) IsItemSection()
- func (DefaultSection) IsSection()
- type Device
- type EmailOptions
- type Episode
- func (this Episode) GetDescription() *string
- func (this Episode) GetFiles() []*File
- func (this Episode) GetID() string
- func (this Episode) GetImage() *string
- func (this Episode) GetOriginalTitle() string
- func (this Episode) GetStreams() []*Stream
- func (this Episode) GetTitle() string
- func (Episode) IsCollectionItem()
- func (Episode) IsContributionItem()
- func (Episode) IsMediaItem()
- func (Episode) IsPlaylistItem()
- func (Episode) IsSectionItemType()
- func (Episode) IsSubclipSourceItem()
- func (Episode) IsUserCollectionEntryItem()
- type EpisodeCalendarEntry
- func (this EpisodeCalendarEntry) GetDescription() string
- func (this EpisodeCalendarEntry) GetEnd() string
- func (this EpisodeCalendarEntry) GetEvent() *Event
- func (this EpisodeCalendarEntry) GetID() string
- func (this EpisodeCalendarEntry) GetStart() string
- func (this EpisodeCalendarEntry) GetTitle() string
- func (EpisodeCalendarEntry) IsCalendarEntry()
- type EpisodeContext
- type EpisodeContextUnion
- type EpisodePagination
- type EpisodeSearchItem
- func (this EpisodeSearchItem) GetCollection() string
- func (this EpisodeSearchItem) GetDescription() *string
- func (this EpisodeSearchItem) GetHeader() *string
- func (this EpisodeSearchItem) GetHighlight() *string
- func (this EpisodeSearchItem) GetID() string
- func (this EpisodeSearchItem) GetImage() *string
- func (this EpisodeSearchItem) GetLegacyID() *string
- func (this EpisodeSearchItem) GetTitle() string
- func (this EpisodeSearchItem) GetURL() string
- func (EpisodeSearchItem) IsSearchResultItem()
- type EpisodeType
- type Event
- type Export
- type FAQCategory
- type FAQCategoryPagination
- type Faq
- type FeaturedSection
- func (this FeaturedSection) GetDescription() *string
- func (this FeaturedSection) GetID() string
- func (this FeaturedSection) GetItems() *SectionItemPagination
- func (this FeaturedSection) GetMetadata() *ItemSectionMetadata
- func (this FeaturedSection) GetTitle() *string
- func (FeaturedSection) IsItemSection()
- func (FeaturedSection) IsSection()
- type File
- type Game
- type Gender
- type GlobalConfig
- type GridSection
- type GridSectionSize
- type IconGridSection
- func (this IconGridSection) GetDescription() *string
- func (this IconGridSection) GetID() string
- func (this IconGridSection) GetItems() *SectionItemPagination
- func (this IconGridSection) GetMetadata() *ItemSectionMetadata
- func (this IconGridSection) GetSize() GridSectionSize
- func (this IconGridSection) GetTitle() *string
- func (IconGridSection) IsGridSection()
- func (IconGridSection) IsItemSection()
- func (IconGridSection) IsSection()
- type IconSection
- func (this IconSection) GetDescription() *string
- func (this IconSection) GetID() string
- func (this IconSection) GetItems() *SectionItemPagination
- func (this IconSection) GetMetadata() *ItemSectionMetadata
- func (this IconSection) GetTitle() *string
- func (IconSection) IsItemSection()
- func (IconSection) IsSection()
- type Image
- type ImageStyle
- type ItemSection
- type ItemSectionMetadata
- type LabelSection
- func (this LabelSection) GetDescription() *string
- func (this LabelSection) GetID() string
- func (this LabelSection) GetItems() *SectionItemPagination
- func (this LabelSection) GetMetadata() *ItemSectionMetadata
- func (this LabelSection) GetTitle() *string
- func (LabelSection) IsItemSection()
- func (LabelSection) IsSection()
- type LegacyIDLookup
- type LegacyIDLookupOptions
- type Lesson
- type LessonPagination
- type LessonsProgress
- type Link
- type LinkPagination
- type LinkTask
- type LinkType
- type ListSection
- func (this ListSection) GetDescription() *string
- func (this ListSection) GetID() string
- func (this ListSection) GetItems() *SectionItemPagination
- func (this ListSection) GetMetadata() *ItemSectionMetadata
- func (this ListSection) GetTitle() *string
- func (ListSection) IsItemSection()
- func (ListSection) IsSection()
- type MediaItem
- type Message
- type MessageSection
- type MessageStyle
- type MutationRoot
- type NameOptions
- type Page
- type PageDetailsSection
- type Pagination
- type Person
- type Playlist
- type PlaylistItem
- type PlaylistItemPagination
- type PosterGridSection
- func (this PosterGridSection) GetDescription() *string
- func (this PosterGridSection) GetID() string
- func (this PosterGridSection) GetItems() *SectionItemPagination
- func (this PosterGridSection) GetMetadata() *ItemSectionMetadata
- func (this PosterGridSection) GetSize() GridSectionSize
- func (this PosterGridSection) GetTitle() *string
- func (PosterGridSection) IsGridSection()
- func (PosterGridSection) IsItemSection()
- func (PosterGridSection) IsSection()
- type PosterSection
- func (this PosterSection) GetDescription() *string
- func (this PosterSection) GetID() string
- func (this PosterSection) GetItems() *SectionItemPagination
- func (this PosterSection) GetMetadata() *ItemSectionMetadata
- func (this PosterSection) GetTitle() *string
- func (PosterSection) IsItemSection()
- func (PosterSection) IsSection()
- type PosterTask
- type Profile
- type Prompt
- type QueryRoot
- type Question
- type QuestionPagination
- type QuoteTask
- type RedirectLink
- type RedirectParam
- type SearchResult
- type SearchResultItem
- type Season
- type SeasonCalendarEntry
- func (this SeasonCalendarEntry) GetDescription() string
- func (this SeasonCalendarEntry) GetEnd() string
- func (this SeasonCalendarEntry) GetEvent() *Event
- func (this SeasonCalendarEntry) GetID() string
- func (this SeasonCalendarEntry) GetStart() string
- func (this SeasonCalendarEntry) GetTitle() string
- func (SeasonCalendarEntry) IsCalendarEntry()
- type SeasonPagination
- type SeasonSearchItem
- func (this SeasonSearchItem) GetCollection() string
- func (this SeasonSearchItem) GetDescription() *string
- func (this SeasonSearchItem) GetHeader() *string
- func (this SeasonSearchItem) GetHighlight() *string
- func (this SeasonSearchItem) GetID() string
- func (this SeasonSearchItem) GetImage() *string
- func (this SeasonSearchItem) GetLegacyID() *string
- func (this SeasonSearchItem) GetTitle() string
- func (this SeasonSearchItem) GetURL() string
- func (SeasonSearchItem) IsSearchResultItem()
- type Section
- type SectionItem
- func EpisodeSectionItemFrom(ctx context.Context, s *common.Episode, sort int, sectionStyle string, ...) *SectionItem
- func GameSectionItemFrom(ctx context.Context, game *common.Game, sort int, style common.ImageStyle) *SectionItem
- func LinkSectionItemFrom(ctx context.Context, s *common.Link, sort int, sectionStyle string) *SectionItem
- func PageSectionItemFrom(ctx context.Context, p *common.Page, sort int, sectionStyle string) *SectionItem
- func PersonSectionItemFrom(ctx context.Context, item *common.Person, sort int, style common.ImageStyle) *SectionItem
- func PlaylistSectionItemFrom(ctx context.Context, item *common.Playlist, sort int, style common.ImageStyle) *SectionItem
- func SeasonSectionItemFrom(ctx context.Context, s *common.Season, sort int, sectionStyle string) *SectionItem
- func ShortSectionItemFrom(ctx context.Context, item *common.Short, sort int, style common.ImageStyle) *SectionItem
- func ShowSectionItemFrom(ctx context.Context, s *common.Show, sort int, sectionStyle string) *SectionItem
- func StudyTopicSectionItemFrom(ctx context.Context, topic *common.StudyTopic, sort int, ...) *SectionItem
- type SectionItemPagination
- type SectionItemType
- type SectionPagination
- type SectionSize
- type ShareRestriction
- type Short
- func (this Short) GetDescription() *string
- func (this Short) GetFiles() []*File
- func (this Short) GetID() string
- func (this Short) GetImage() *string
- func (this Short) GetOriginalTitle() string
- func (this Short) GetStreams() []*Stream
- func (this Short) GetTitle() string
- func (Short) IsCollectionItem()
- func (Short) IsMediaItem()
- func (Short) IsPlaylistItem()
- func (Short) IsSectionItemType()
- func (Short) IsUserCollectionEntryItem()
- type ShortsPagination
- type Show
- type ShowCalendarEntry
- func (this ShowCalendarEntry) GetDescription() string
- func (this ShowCalendarEntry) GetEnd() string
- func (this ShowCalendarEntry) GetEvent() *Event
- func (this ShowCalendarEntry) GetID() string
- func (this ShowCalendarEntry) GetStart() string
- func (this ShowCalendarEntry) GetTitle() string
- func (ShowCalendarEntry) IsCalendarEntry()
- type ShowSearchItem
- func (this ShowSearchItem) GetCollection() string
- func (this ShowSearchItem) GetDescription() *string
- func (this ShowSearchItem) GetHeader() *string
- func (this ShowSearchItem) GetHighlight() *string
- func (this ShowSearchItem) GetID() string
- func (this ShowSearchItem) GetImage() *string
- func (this ShowSearchItem) GetLegacyID() *string
- func (this ShowSearchItem) GetTitle() string
- func (this ShowSearchItem) GetURL() string
- func (ShowSearchItem) IsSearchResultItem()
- type ShowType
- type SimpleCalendarEntry
- func (this SimpleCalendarEntry) GetDescription() string
- func (this SimpleCalendarEntry) GetEnd() string
- func (this SimpleCalendarEntry) GetEvent() *Event
- func (this SimpleCalendarEntry) GetID() string
- func (this SimpleCalendarEntry) GetStart() string
- func (this SimpleCalendarEntry) GetTitle() string
- func (SimpleCalendarEntry) IsCalendarEntry()
- type Status
- type Stream
- type StreamType
- type StudyTopic
- type SubclipSource
- type SubclipSourceItem
- type SubscriptionTopic
- type Survey
- type SurveyLinkQuestion
- type SurveyPrompt
- type SurveyQuestion
- type SurveyQuestionPagination
- type SurveyRatingQuestion
- type SurveyTextQuestion
- type Task
- type TaskPagination
- type TasksProgress
- type TextTask
- type User
- type UserCollection
- type UserCollectionEntry
- type UserCollectionEntryItem
- type UserCollectionEntryPagination
- type VideoTask
- type WebSection
Constants ¶
This section is empty.
Variables ¶
var AllAchievementsSource = []AchievementsSource{ AchievementsSourceInternal, AchievementsSourceBmm, }
var AllCardSectionSize = []CardSectionSize{ CardSectionSizeLarge, CardSectionSizeMini, }
var AllEpisodeType = []EpisodeType{ EpisodeTypeEpisode, EpisodeTypeStandalone, }
var AllGender = []Gender{ GenderMale, GenderFemale, GenderUnknown, }
var AllGridSectionSize = []GridSectionSize{ GridSectionSizeHalf, }
var AllImageStyle = []ImageStyle{ ImageStylePoster, ImageStyleFeatured, ImageStyleDefault, }
var AllLinkType = []LinkType{ LinkTypeText, LinkTypeAudio, LinkTypeVideo, LinkTypeOther, }
var AllSectionSize = []SectionSize{ SectionSizeSmall, SectionSizeMedium, }
var AllShowType = []ShowType{ ShowTypeEvent, ShowTypeSeries, }
var AllStatus = []Status{ StatusPublished, StatusUnlisted, }
var AllStreamType = []StreamType{ StreamTypeHlsTs, StreamTypeHlsCmaf, StreamTypeDash, }
var AllSubscriptionTopic = []SubscriptionTopic{ SubscriptionTopicComics, }
Functions ¶
This section is empty.
Types ¶
type Achievement ¶
type Achievement struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` Image *string `json:"image,omitempty"` Achieved bool `json:"achieved"` AchievedAt *string `json:"achievedAt,omitempty"` Group *AchievementGroup `json:"group,omitempty"` }
func AchievementFrom ¶
func AchievementFrom(ctx context.Context, i *common.Achievement) *Achievement
AchievementFrom returns an Achievement from common.Achievement
type AchievementGroup ¶
type AchievementGroup struct { ID string `json:"id"` Title string `json:"title"` Achievements *AchievementPagination `json:"achievements"` }
func AchievementGroupFrom ¶
func AchievementGroupFrom(ctx context.Context, i *common.AchievementGroup) *AchievementGroup
AchievementGroupFrom returns an Achievement from common.Achievement
type AchievementGroupPagination ¶
type AchievementGroupPagination struct { Offset int `json:"offset"` First int `json:"first"` Total int `json:"total"` Items []*AchievementGroup `json:"items"` }
func (AchievementGroupPagination) GetFirst ¶
func (this AchievementGroupPagination) GetFirst() int
func (AchievementGroupPagination) GetOffset ¶
func (this AchievementGroupPagination) GetOffset() int
func (AchievementGroupPagination) GetTotal ¶
func (this AchievementGroupPagination) GetTotal() int
func (AchievementGroupPagination) IsPagination ¶
func (AchievementGroupPagination) IsPagination()
type AchievementPagination ¶
type AchievementPagination struct { Offset int `json:"offset"` First int `json:"first"` Total int `json:"total"` Items []*Achievement `json:"items"` }
func (AchievementPagination) GetFirst ¶
func (this AchievementPagination) GetFirst() int
func (AchievementPagination) GetOffset ¶
func (this AchievementPagination) GetOffset() int
func (AchievementPagination) GetTotal ¶
func (this AchievementPagination) GetTotal() int
func (AchievementPagination) IsPagination ¶
func (AchievementPagination) IsPagination()
type AchievementSection ¶
type AchievementSection struct { ID string `json:"id"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Source AchievementsSource `json:"source"` }
func (AchievementSection) GetDescription ¶
func (this AchievementSection) GetDescription() *string
func (AchievementSection) GetID ¶
func (this AchievementSection) GetID() string
func (AchievementSection) GetTitle ¶
func (this AchievementSection) GetTitle() *string
func (AchievementSection) IsSection ¶
func (AchievementSection) IsSection()
type AchievementsSource ¶
type AchievementsSource string
const ( AchievementsSourceInternal AchievementsSource = "internal" AchievementsSourceBmm AchievementsSource = "bmm" )
func (AchievementsSource) IsValid ¶
func (e AchievementsSource) IsValid() bool
func (AchievementsSource) MarshalGQL ¶
func (e AchievementsSource) MarshalGQL(w io.Writer)
func (AchievementsSource) String ¶
func (e AchievementsSource) String() string
func (*AchievementsSource) UnmarshalGQL ¶
func (e *AchievementsSource) UnmarshalGQL(v interface{}) error
type AddToCollectionResult ¶
type AddToCollectionResult struct { EntryID string `json:"entryId"` Collection *UserCollection `json:"collection"` }
type Alternative ¶
type AlternativesTask ¶
type AlternativesTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` Alternatives []*Alternative `json:"alternatives"` CompetitionMode bool `json:"competitionMode"` ShowAnswer bool `json:"showAnswer"` LockAnswer bool `json:"lockAnswer"` Locked bool `json:"locked"` }
func (AlternativesTask) GetCompleted ¶
func (this AlternativesTask) GetCompleted() bool
func (AlternativesTask) GetID ¶
func (this AlternativesTask) GetID() string
func (AlternativesTask) GetTitle ¶
func (this AlternativesTask) GetTitle() string
func (AlternativesTask) IsTask ¶
func (AlternativesTask) IsTask()
type AnswerSurveyQuestionResult ¶
type AnswerSurveyQuestionResult struct {
ID string `json:"id"`
}
type Application ¶
type AvatarSection ¶
type AvatarSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size SectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (AvatarSection) GetDescription ¶
func (this AvatarSection) GetDescription() *string
func (AvatarSection) GetID ¶
func (this AvatarSection) GetID() string
func (AvatarSection) GetItems ¶
func (this AvatarSection) GetItems() *SectionItemPagination
func (AvatarSection) GetMetadata ¶
func (this AvatarSection) GetMetadata() *ItemSectionMetadata
func (AvatarSection) GetTitle ¶
func (this AvatarSection) GetTitle() *string
func (AvatarSection) IsItemSection ¶
func (AvatarSection) IsItemSection()
func (AvatarSection) IsSection ¶
func (AvatarSection) IsSection()
type BirthOptions ¶
type BirthOptions struct {
Year int `json:"year"`
}
type Calendar ¶
type Calendar struct { Events []*Event `json:"events"` Period *CalendarPeriod `json:"period"` Day *CalendarDay `json:"day"` }
type CalendarDay ¶
type CalendarDay struct { Events []*Event `json:"events"` Entries []CalendarEntry `json:"entries"` }
type CalendarEntry ¶
type CalendarEntry interface { IsCalendarEntry() GetID() string GetEvent() *Event GetTitle() string GetDescription() string GetStart() string GetEnd() string }
func CalendarEntryFrom ¶
func CalendarEntryFrom(ctx context.Context, i *common.CalendarEntry) CalendarEntry
CalendarEntryFrom returns a gql entry from entry
type CalendarPeriod ¶
type CardListSection ¶
type CardListSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size CardSectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (CardListSection) GetDescription ¶
func (this CardListSection) GetDescription() *string
func (CardListSection) GetID ¶
func (this CardListSection) GetID() string
func (CardListSection) GetItems ¶
func (this CardListSection) GetItems() *SectionItemPagination
func (CardListSection) GetMetadata ¶
func (this CardListSection) GetMetadata() *ItemSectionMetadata
func (CardListSection) GetTitle ¶
func (this CardListSection) GetTitle() *string
func (CardListSection) IsItemSection ¶
func (CardListSection) IsItemSection()
func (CardListSection) IsSection ¶
func (CardListSection) IsSection()
type CardSection ¶
type CardSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size CardSectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (CardSection) GetDescription ¶
func (this CardSection) GetDescription() *string
func (CardSection) GetID ¶
func (this CardSection) GetID() string
func (CardSection) GetItems ¶
func (this CardSection) GetItems() *SectionItemPagination
func (CardSection) GetMetadata ¶
func (this CardSection) GetMetadata() *ItemSectionMetadata
func (CardSection) GetTitle ¶
func (this CardSection) GetTitle() *string
func (CardSection) IsItemSection ¶
func (CardSection) IsItemSection()
func (CardSection) IsSection ¶
func (CardSection) IsSection()
type CardSectionSize ¶
type CardSectionSize string
const ( CardSectionSizeLarge CardSectionSize = "large" CardSectionSizeMini CardSectionSize = "mini" )
func (CardSectionSize) IsValid ¶
func (e CardSectionSize) IsValid() bool
func (CardSectionSize) MarshalGQL ¶
func (e CardSectionSize) MarshalGQL(w io.Writer)
func (CardSectionSize) String ¶
func (e CardSectionSize) String() string
func (*CardSectionSize) UnmarshalGQL ¶
func (e *CardSectionSize) UnmarshalGQL(v interface{}) error
type Chapter ¶
type Chapter struct { ID string `json:"id"` Start int `json:"start"` Title string `json:"title"` Image *string `json:"image,omitempty"` Description *string `json:"description,omitempty"` Duration int `json:"duration"` Episode *Episode `json:"episode,omitempty"` ContentType *ContentType `json:"contentType"` }
func (Chapter) GetDescription ¶
func (Chapter) IsCollectionItem ¶
func (Chapter) IsCollectionItem()
func (Chapter) IsContributionItem ¶
func (Chapter) IsContributionItem()
type CollectionItem ¶
type Config ¶
type Config struct {
Global *GlobalConfig `json:"global"`
}
type ConfirmAchievementResult ¶
type ConfirmAchievementResult struct {
Success bool `json:"success"`
}
type ContentType ¶
type ContentTypeCount ¶
type ContentTypeCount struct { Type *ContentType `json:"type"` Count int `json:"count"` }
type ContextCollection ¶
type ContextCollection struct { ID string `json:"id"` Slug *string `json:"slug,omitempty"` Items *SectionItemPagination `json:"items,omitempty"` }
func (ContextCollection) IsEpisodeContextUnion ¶
func (ContextCollection) IsEpisodeContextUnion()
type Contribution ¶
type Contribution struct { Type *ContributionType `json:"type"` ContentType *ContentType `json:"contentType"` Item ContributionItem `json:"item"` }
type ContributionItem ¶
type ContributionItem interface {
IsContributionItem()
}
type ContributionType ¶
type ContributionTypeCount ¶
type ContributionTypeCount struct { Type *ContributionType `json:"type"` Count int `json:"count"` }
type ContributionsPagination ¶
type ContributionsPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*Contribution `json:"items"` }
func (ContributionsPagination) GetFirst ¶
func (this ContributionsPagination) GetFirst() int
func (ContributionsPagination) GetOffset ¶
func (this ContributionsPagination) GetOffset() int
func (ContributionsPagination) GetTotal ¶
func (this ContributionsPagination) GetTotal() int
func (ContributionsPagination) IsPagination ¶
func (ContributionsPagination) IsPagination()
type DefaultGridSection ¶
type DefaultGridSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size GridSectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (DefaultGridSection) GetDescription ¶
func (this DefaultGridSection) GetDescription() *string
func (DefaultGridSection) GetID ¶
func (this DefaultGridSection) GetID() string
func (DefaultGridSection) GetItems ¶
func (this DefaultGridSection) GetItems() *SectionItemPagination
func (DefaultGridSection) GetMetadata ¶
func (this DefaultGridSection) GetMetadata() *ItemSectionMetadata
func (DefaultGridSection) GetSize ¶
func (this DefaultGridSection) GetSize() GridSectionSize
func (DefaultGridSection) GetTitle ¶
func (this DefaultGridSection) GetTitle() *string
func (DefaultGridSection) IsGridSection ¶
func (DefaultGridSection) IsGridSection()
func (DefaultGridSection) IsItemSection ¶
func (DefaultGridSection) IsItemSection()
func (DefaultGridSection) IsSection ¶
func (DefaultGridSection) IsSection()
type DefaultSection ¶
type DefaultSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size SectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (DefaultSection) GetDescription ¶
func (this DefaultSection) GetDescription() *string
func (DefaultSection) GetID ¶
func (this DefaultSection) GetID() string
func (DefaultSection) GetItems ¶
func (this DefaultSection) GetItems() *SectionItemPagination
func (DefaultSection) GetMetadata ¶
func (this DefaultSection) GetMetadata() *ItemSectionMetadata
func (DefaultSection) GetTitle ¶
func (this DefaultSection) GetTitle() *string
func (DefaultSection) IsItemSection ¶
func (DefaultSection) IsItemSection()
func (DefaultSection) IsSection ¶
func (DefaultSection) IsSection()
type EmailOptions ¶
type Episode ¶
type Episode struct { ID string `json:"id"` UUID string `json:"uuid"` Status Status `json:"status"` Type EpisodeType `json:"type"` LegacyID *string `json:"legacyID,omitempty"` LegacyProgramID *string `json:"legacyProgramID,omitempty"` Locked bool `json:"locked"` PublishDate string `json:"publishDate"` ProductionDate string `json:"productionDate"` ProductionDateInTitle bool `json:"productionDateInTitle"` AvailableFrom string `json:"availableFrom"` AvailableTo string `json:"availableTo"` AgeRating string `json:"ageRating"` OriginalTitle string `json:"originalTitle"` Title string `json:"title"` Description string `json:"description"` ExtraDescription string `json:"extraDescription"` Image *string `json:"image,omitempty"` ImageURL *string `json:"imageUrl,omitempty"` Streams []*Stream `json:"streams"` Files []*File `json:"files"` Chapters []*Chapter `json:"chapters"` SkipToChapter *Chapter `json:"skipToChapter,omitempty"` AssetVersion string `json:"assetVersion"` Season *Season `json:"season,omitempty"` Duration int `json:"duration"` Progress *int `json:"progress,omitempty"` Watched bool `json:"watched"` AudioLanguages []string `json:"audioLanguages"` SubtitleLanguages []string `json:"subtitleLanguages"` Context EpisodeContextUnion `json:"context,omitempty"` RelatedItems *SectionItemPagination `json:"relatedItems,omitempty"` Images []*Image `json:"images"` Number *int `json:"number,omitempty"` Lessons *LessonPagination `json:"lessons"` InMyList bool `json:"inMyList"` // Should probably be used asynchronously, and retrieved separately from the episode, as it can be slow in some cases (a few db requests can occur) Next []*Episode `json:"next"` Cursor string `json:"cursor"` }
func EpisodeFrom ¶
EpisodeFrom coverts a common.Episode into an GQL episode type
func (Episode) GetDescription ¶
func (Episode) GetOriginalTitle ¶
func (Episode) GetStreams ¶
func (Episode) IsCollectionItem ¶
func (Episode) IsCollectionItem()
func (Episode) IsContributionItem ¶
func (Episode) IsContributionItem()
func (Episode) IsMediaItem ¶
func (Episode) IsMediaItem()
func (Episode) IsPlaylistItem ¶
func (Episode) IsPlaylistItem()
func (Episode) IsSectionItemType ¶
func (Episode) IsSectionItemType()
func (Episode) IsSubclipSourceItem ¶
func (Episode) IsSubclipSourceItem()
func (Episode) IsUserCollectionEntryItem ¶
func (Episode) IsUserCollectionEntryItem()
type EpisodeCalendarEntry ¶
type EpisodeCalendarEntry struct { ID string `json:"id"` Event *Event `json:"event,omitempty"` Title string `json:"title"` Description string `json:"description"` Start string `json:"start"` End string `json:"end"` IsReplay bool `json:"isReplay"` Episode *Episode `json:"episode,omitempty"` }
func (EpisodeCalendarEntry) GetDescription ¶
func (this EpisodeCalendarEntry) GetDescription() string
func (EpisodeCalendarEntry) GetEnd ¶
func (this EpisodeCalendarEntry) GetEnd() string
func (EpisodeCalendarEntry) GetEvent ¶
func (this EpisodeCalendarEntry) GetEvent() *Event
func (EpisodeCalendarEntry) GetID ¶
func (this EpisodeCalendarEntry) GetID() string
func (EpisodeCalendarEntry) GetStart ¶
func (this EpisodeCalendarEntry) GetStart() string
func (EpisodeCalendarEntry) GetTitle ¶
func (this EpisodeCalendarEntry) GetTitle() string
func (EpisodeCalendarEntry) IsCalendarEntry ¶
func (EpisodeCalendarEntry) IsCalendarEntry()
type EpisodeContext ¶
type EpisodeContextUnion ¶
type EpisodeContextUnion interface {
IsEpisodeContextUnion()
}
type EpisodePagination ¶
type EpisodePagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*Episode `json:"items"` }
func (EpisodePagination) GetFirst ¶
func (this EpisodePagination) GetFirst() int
func (EpisodePagination) GetOffset ¶
func (this EpisodePagination) GetOffset() int
func (EpisodePagination) GetTotal ¶
func (this EpisodePagination) GetTotal() int
func (EpisodePagination) IsPagination ¶
func (EpisodePagination) IsPagination()
type EpisodeSearchItem ¶
type EpisodeSearchItem struct { ID string `json:"id"` LegacyID *string `json:"legacyID,omitempty"` LegacyProgramID *string `json:"legacyProgramID,omitempty"` Duration int `json:"duration"` AgeRating string `json:"ageRating"` Collection string `json:"collection"` Title string `json:"title"` Header *string `json:"header,omitempty"` Description *string `json:"description,omitempty"` Highlight *string `json:"highlight,omitempty"` Image *string `json:"image,omitempty"` URL string `json:"url"` ShowID *string `json:"showId,omitempty"` ShowTitle *string `json:"showTitle,omitempty"` Show *Show `json:"show,omitempty"` SeasonID *string `json:"seasonId,omitempty"` SeasonTitle *string `json:"seasonTitle,omitempty"` Season *Season `json:"season,omitempty"` }
func (EpisodeSearchItem) GetCollection ¶
func (this EpisodeSearchItem) GetCollection() string
func (EpisodeSearchItem) GetDescription ¶
func (this EpisodeSearchItem) GetDescription() *string
func (EpisodeSearchItem) GetHeader ¶
func (this EpisodeSearchItem) GetHeader() *string
func (EpisodeSearchItem) GetHighlight ¶
func (this EpisodeSearchItem) GetHighlight() *string
func (EpisodeSearchItem) GetID ¶
func (this EpisodeSearchItem) GetID() string
func (EpisodeSearchItem) GetImage ¶
func (this EpisodeSearchItem) GetImage() *string
func (EpisodeSearchItem) GetLegacyID ¶
func (this EpisodeSearchItem) GetLegacyID() *string
func (EpisodeSearchItem) GetTitle ¶
func (this EpisodeSearchItem) GetTitle() string
func (EpisodeSearchItem) GetURL ¶
func (this EpisodeSearchItem) GetURL() string
func (EpisodeSearchItem) IsSearchResultItem ¶
func (EpisodeSearchItem) IsSearchResultItem()
type EpisodeType ¶
type EpisodeType string
const ( EpisodeTypeEpisode EpisodeType = "episode" EpisodeTypeStandalone EpisodeType = "standalone" )
func (EpisodeType) IsValid ¶
func (e EpisodeType) IsValid() bool
func (EpisodeType) MarshalGQL ¶
func (e EpisodeType) MarshalGQL(w io.Writer)
func (EpisodeType) String ¶
func (e EpisodeType) String() string
func (*EpisodeType) UnmarshalGQL ¶
func (e *EpisodeType) UnmarshalGQL(v interface{}) error
type Event ¶
type FAQCategory ¶
type FAQCategory struct { ID string `json:"id"` Title string `json:"title"` Questions *QuestionPagination `json:"questions,omitempty"` }
func FAQCategoryFrom ¶
func FAQCategoryFrom(ctx context.Context, i *common.FAQCategory) *FAQCategory
FAQCategoryFrom returns a gql category from category
type FAQCategoryPagination ¶
type FAQCategoryPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*FAQCategory `json:"items"` }
func (FAQCategoryPagination) GetFirst ¶
func (this FAQCategoryPagination) GetFirst() int
func (FAQCategoryPagination) GetOffset ¶
func (this FAQCategoryPagination) GetOffset() int
func (FAQCategoryPagination) GetTotal ¶
func (this FAQCategoryPagination) GetTotal() int
func (FAQCategoryPagination) IsPagination ¶
func (FAQCategoryPagination) IsPagination()
type Faq ¶
type Faq struct { Categories *FAQCategoryPagination `json:"categories,omitempty"` Category *FAQCategory `json:"category"` Question *Question `json:"question"` }
type FeaturedSection ¶
type FeaturedSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size SectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (FeaturedSection) GetDescription ¶
func (this FeaturedSection) GetDescription() *string
func (FeaturedSection) GetID ¶
func (this FeaturedSection) GetID() string
func (FeaturedSection) GetItems ¶
func (this FeaturedSection) GetItems() *SectionItemPagination
func (FeaturedSection) GetMetadata ¶
func (this FeaturedSection) GetMetadata() *ItemSectionMetadata
func (FeaturedSection) GetTitle ¶
func (this FeaturedSection) GetTitle() *string
func (FeaturedSection) IsItemSection ¶
func (FeaturedSection) IsItemSection()
func (FeaturedSection) IsSection ¶
func (FeaturedSection) IsSection()
type File ¶
type File struct { ID string `json:"id"` URL string `json:"url"` VideoLanguage *string `json:"videoLanguage,omitempty"` AudioLanguage string `json:"audioLanguage"` SubtitleLanguage *string `json:"subtitleLanguage,omitempty"` Size int `json:"size"` FileName string `json:"fileName"` MimeType string `json:"mimeType"` Resolution *string `json:"resolution,omitempty"` }
type Game ¶
type Game struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` URL string `json:"url"` Image *string `json:"image,omitempty"` }
func (Game) GetDescription ¶
func (Game) IsCollectionItem ¶
func (Game) IsCollectionItem()
func (Game) IsSectionItemType ¶
func (Game) IsSectionItemType()
type GlobalConfig ¶
type GridSection ¶
type GridSection interface { IsSection() IsItemSection() IsGridSection() GetID() string GetMetadata() *ItemSectionMetadata GetTitle() *string GetDescription() *string GetSize() GridSectionSize GetItems() *SectionItemPagination }
type GridSectionSize ¶
type GridSectionSize string
const (
GridSectionSizeHalf GridSectionSize = "half"
)
func (GridSectionSize) IsValid ¶
func (e GridSectionSize) IsValid() bool
func (GridSectionSize) MarshalGQL ¶
func (e GridSectionSize) MarshalGQL(w io.Writer)
func (GridSectionSize) String ¶
func (e GridSectionSize) String() string
func (*GridSectionSize) UnmarshalGQL ¶
func (e *GridSectionSize) UnmarshalGQL(v interface{}) error
type IconGridSection ¶
type IconGridSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size GridSectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (IconGridSection) GetDescription ¶
func (this IconGridSection) GetDescription() *string
func (IconGridSection) GetID ¶
func (this IconGridSection) GetID() string
func (IconGridSection) GetItems ¶
func (this IconGridSection) GetItems() *SectionItemPagination
func (IconGridSection) GetMetadata ¶
func (this IconGridSection) GetMetadata() *ItemSectionMetadata
func (IconGridSection) GetSize ¶
func (this IconGridSection) GetSize() GridSectionSize
func (IconGridSection) GetTitle ¶
func (this IconGridSection) GetTitle() *string
func (IconGridSection) IsGridSection ¶
func (IconGridSection) IsGridSection()
func (IconGridSection) IsItemSection ¶
func (IconGridSection) IsItemSection()
func (IconGridSection) IsSection ¶
func (IconGridSection) IsSection()
type IconSection ¶
type IconSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Items *SectionItemPagination `json:"items"` }
func (IconSection) GetDescription ¶
func (this IconSection) GetDescription() *string
func (IconSection) GetID ¶
func (this IconSection) GetID() string
func (IconSection) GetItems ¶
func (this IconSection) GetItems() *SectionItemPagination
func (IconSection) GetMetadata ¶
func (this IconSection) GetMetadata() *ItemSectionMetadata
func (IconSection) GetTitle ¶
func (this IconSection) GetTitle() *string
func (IconSection) IsItemSection ¶
func (IconSection) IsItemSection()
func (IconSection) IsSection ¶
func (IconSection) IsSection()
type ImageStyle ¶
type ImageStyle string
const ( ImageStylePoster ImageStyle = "poster" ImageStyleFeatured ImageStyle = "featured" ImageStyleDefault ImageStyle = "default" )
func (ImageStyle) IsValid ¶
func (e ImageStyle) IsValid() bool
func (ImageStyle) MarshalGQL ¶
func (e ImageStyle) MarshalGQL(w io.Writer)
func (ImageStyle) String ¶
func (e ImageStyle) String() string
func (*ImageStyle) UnmarshalGQL ¶
func (e *ImageStyle) UnmarshalGQL(v interface{}) error
type ItemSection ¶
type ItemSection interface { IsSection() IsItemSection() GetID() string GetMetadata() *ItemSectionMetadata GetTitle() *string GetDescription() *string GetItems() *SectionItemPagination }
type ItemSectionMetadata ¶
type ItemSectionMetadata struct { ContinueWatching bool `json:"continueWatching"` MyList bool `json:"myList"` SecondaryTitles bool `json:"secondaryTitles"` CollectionID string `json:"collectionId"` UseContext bool `json:"useContext"` PrependLiveElement bool `json:"prependLiveElement"` Page *Page `json:"page,omitempty"` Limit *int `json:"limit,omitempty"` }
type LabelSection ¶
type LabelSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Items *SectionItemPagination `json:"items"` }
func (LabelSection) GetDescription ¶
func (this LabelSection) GetDescription() *string
func (LabelSection) GetID ¶
func (this LabelSection) GetID() string
func (LabelSection) GetItems ¶
func (this LabelSection) GetItems() *SectionItemPagination
func (LabelSection) GetMetadata ¶
func (this LabelSection) GetMetadata() *ItemSectionMetadata
func (LabelSection) GetTitle ¶
func (this LabelSection) GetTitle() *string
func (LabelSection) IsItemSection ¶
func (LabelSection) IsItemSection()
func (LabelSection) IsSection ¶
func (LabelSection) IsSection()
type LegacyIDLookup ¶
type LegacyIDLookup struct {
ID string `json:"id"`
}
type LegacyIDLookupOptions ¶
type Lesson ¶
type Lesson struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` IntroScreenCode *string `json:"introScreenCode,omitempty"` ShowDiscoverPage bool `json:"showDiscoverPage"` Image *string `json:"image,omitempty"` Tasks *TaskPagination `json:"tasks"` Topic *StudyTopic `json:"topic"` // The default episode. // Should not be used actively in lists, as it could affect query speeds. DefaultEpisode *Episode `json:"defaultEpisode,omitempty"` Episodes *EpisodePagination `json:"episodes"` Links *LinkPagination `json:"links"` Progress *TasksProgress `json:"progress"` Completed bool `json:"completed"` Locked bool `json:"locked"` Previous *Lesson `json:"previous,omitempty"` Next *Lesson `json:"next,omitempty"` }
type LessonPagination ¶
type LessonPagination struct { Offset int `json:"offset"` First int `json:"first"` Total int `json:"total"` Items []*Lesson `json:"items"` }
func (LessonPagination) GetFirst ¶
func (this LessonPagination) GetFirst() int
func (LessonPagination) GetOffset ¶
func (this LessonPagination) GetOffset() int
func (LessonPagination) GetTotal ¶
func (this LessonPagination) GetTotal() int
func (LessonPagination) IsPagination ¶
func (LessonPagination) IsPagination()
type LessonsProgress ¶
type Link ¶
type Link struct { ID string `json:"id"` URL string `json:"url"` Title string `json:"title"` Description *string `json:"description,omitempty"` Type LinkType `json:"type"` Image *string `json:"image,omitempty"` }
func (Link) IsSectionItemType ¶
func (Link) IsSectionItemType()
type LinkPagination ¶
type LinkPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*Link `json:"items"` }
func (LinkPagination) GetFirst ¶
func (this LinkPagination) GetFirst() int
func (LinkPagination) GetOffset ¶
func (this LinkPagination) GetOffset() int
func (LinkPagination) GetTotal ¶
func (this LinkPagination) GetTotal() int
func (LinkPagination) IsPagination ¶
func (LinkPagination) IsPagination()
type LinkTask ¶
type LinkTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` Link *Link `json:"link"` SecondaryTitle *string `json:"secondaryTitle,omitempty"` Description *string `json:"description,omitempty"` }
func (LinkTask) GetCompleted ¶
type ListSection ¶
type ListSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size SectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (ListSection) GetDescription ¶
func (this ListSection) GetDescription() *string
func (ListSection) GetID ¶
func (this ListSection) GetID() string
func (ListSection) GetItems ¶
func (this ListSection) GetItems() *SectionItemPagination
func (ListSection) GetMetadata ¶
func (this ListSection) GetMetadata() *ItemSectionMetadata
func (ListSection) GetTitle ¶
func (this ListSection) GetTitle() *string
func (ListSection) IsItemSection ¶
func (ListSection) IsItemSection()
func (ListSection) IsSection ¶
func (ListSection) IsSection()
type Message ¶
type Message struct { Title string `json:"title"` Content string `json:"content"` Style *MessageStyle `json:"style"` }
type MessageSection ¶
type MessageSection struct { ID string `json:"id"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Messages []*Message `json:"messages,omitempty"` }
func (MessageSection) GetDescription ¶
func (this MessageSection) GetDescription() *string
func (MessageSection) GetID ¶
func (this MessageSection) GetID() string
func (MessageSection) GetTitle ¶
func (this MessageSection) GetTitle() *string
func (MessageSection) IsSection ¶
func (MessageSection) IsSection()
type MessageStyle ¶
type MutationRoot ¶
type MutationRoot struct { }
type NameOptions ¶
type Page ¶
type Page struct { ID string `json:"id"` Code string `json:"code"` Title string `json:"title"` Description *string `json:"description,omitempty"` Image *string `json:"image,omitempty"` Images []*Image `json:"images"` Sections *SectionPagination `json:"sections"` }
func (Page) IsSectionItemType ¶
func (Page) IsSectionItemType()
type PageDetailsSection ¶
type PageDetailsSection struct { ID string `json:"id"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` }
func (PageDetailsSection) GetDescription ¶
func (this PageDetailsSection) GetDescription() *string
func (PageDetailsSection) GetID ¶
func (this PageDetailsSection) GetID() string
func (PageDetailsSection) GetTitle ¶
func (this PageDetailsSection) GetTitle() *string
func (PageDetailsSection) IsSection ¶
func (PageDetailsSection) IsSection()
type Pagination ¶
type Person ¶
type Person struct { ID string `json:"id"` Name string `json:"name"` Image *string `json:"image,omitempty"` ContributionTypes []*ContributionTypeCount `json:"contributionTypes"` ContributionContentTypes []*ContentTypeCount `json:"contributionContentTypes"` Contributions *ContributionsPagination `json:"contributions"` }
func (Person) IsSectionItemType ¶
func (Person) IsSectionItemType()
type Playlist ¶
type Playlist struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` Image *string `json:"image,omitempty"` Items *PlaylistItemPagination `json:"items"` }
func PlaylistFrom ¶
PlaylistFrom returns a playlist from common
func (Playlist) GetDescription ¶
func (Playlist) IsCollectionItem ¶
func (Playlist) IsCollectionItem()
func (Playlist) IsSectionItemType ¶
func (Playlist) IsSectionItemType()
type PlaylistItem ¶
type PlaylistItemPagination ¶
type PlaylistItemPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []PlaylistItem `json:"items"` }
func (PlaylistItemPagination) GetFirst ¶
func (this PlaylistItemPagination) GetFirst() int
func (PlaylistItemPagination) GetOffset ¶
func (this PlaylistItemPagination) GetOffset() int
func (PlaylistItemPagination) GetTotal ¶
func (this PlaylistItemPagination) GetTotal() int
func (PlaylistItemPagination) IsPagination ¶
func (PlaylistItemPagination) IsPagination()
type PosterGridSection ¶
type PosterGridSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size GridSectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (PosterGridSection) GetDescription ¶
func (this PosterGridSection) GetDescription() *string
func (PosterGridSection) GetID ¶
func (this PosterGridSection) GetID() string
func (PosterGridSection) GetItems ¶
func (this PosterGridSection) GetItems() *SectionItemPagination
func (PosterGridSection) GetMetadata ¶
func (this PosterGridSection) GetMetadata() *ItemSectionMetadata
func (PosterGridSection) GetSize ¶
func (this PosterGridSection) GetSize() GridSectionSize
func (PosterGridSection) GetTitle ¶
func (this PosterGridSection) GetTitle() *string
func (PosterGridSection) IsGridSection ¶
func (PosterGridSection) IsGridSection()
func (PosterGridSection) IsItemSection ¶
func (PosterGridSection) IsItemSection()
func (PosterGridSection) IsSection ¶
func (PosterGridSection) IsSection()
type PosterSection ¶
type PosterSection struct { ID string `json:"id"` Metadata *ItemSectionMetadata `json:"metadata,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Size SectionSize `json:"size"` Items *SectionItemPagination `json:"items"` }
func (PosterSection) GetDescription ¶
func (this PosterSection) GetDescription() *string
func (PosterSection) GetID ¶
func (this PosterSection) GetID() string
func (PosterSection) GetItems ¶
func (this PosterSection) GetItems() *SectionItemPagination
func (PosterSection) GetMetadata ¶
func (this PosterSection) GetMetadata() *ItemSectionMetadata
func (PosterSection) GetTitle ¶
func (this PosterSection) GetTitle() *string
func (PosterSection) IsItemSection ¶
func (PosterSection) IsItemSection()
func (PosterSection) IsSection ¶
func (PosterSection) IsSection()
type PosterTask ¶
type PosterTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` Image string `json:"image"` }
func (PosterTask) GetCompleted ¶
func (this PosterTask) GetCompleted() bool
func (PosterTask) GetID ¶
func (this PosterTask) GetID() string
func (PosterTask) GetTitle ¶
func (this PosterTask) GetTitle() string
func (PosterTask) IsTask ¶
func (PosterTask) IsTask()
type Prompt ¶
type Question ¶
type Question struct { ID string `json:"id"` Category *FAQCategory `json:"category"` Question string `json:"question"` Answer string `json:"answer"` }
type QuestionPagination ¶
type QuestionPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*Question `json:"items"` }
func (QuestionPagination) GetFirst ¶
func (this QuestionPagination) GetFirst() int
func (QuestionPagination) GetOffset ¶
func (this QuestionPagination) GetOffset() int
func (QuestionPagination) GetTotal ¶
func (this QuestionPagination) GetTotal() int
func (QuestionPagination) IsPagination ¶
func (QuestionPagination) IsPagination()
type QuoteTask ¶
type QuoteTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` Image string `json:"image"` }
func (QuoteTask) GetCompleted ¶
type RedirectLink ¶
type RedirectParam ¶
type SearchResult ¶
type SearchResult struct { Hits int `json:"hits"` Page int `json:"page"` Result []SearchResultItem `json:"result"` SearchProvider string `json:"searchProvider"` }
type SearchResultItem ¶
type Season ¶
type Season struct { ID string `json:"id"` LegacyID *string `json:"legacyID,omitempty"` Status Status `json:"status"` AgeRating string `json:"ageRating"` Title string `json:"title"` Description string `json:"description"` Image *string `json:"image,omitempty"` ImageURL *string `json:"imageUrl,omitempty"` Images []*Image `json:"images"` Number int `json:"number"` Show *Show `json:"show"` // The default episode. // Should not be used actively in lists, as it could affect query speeds. DefaultEpisode *Episode `json:"defaultEpisode"` Episodes *EpisodePagination `json:"episodes"` }
func SeasonFrom ¶
SeasonFrom coverts a common.Season into an GQL episode type
func (Season) GetDescription ¶
func (Season) IsCollectionItem ¶
func (Season) IsCollectionItem()
func (Season) IsEpisodeContextUnion ¶
func (Season) IsEpisodeContextUnion()
func (Season) IsSectionItemType ¶
func (Season) IsSectionItemType()
type SeasonCalendarEntry ¶
type SeasonCalendarEntry struct { ID string `json:"id"` Event *Event `json:"event,omitempty"` Title string `json:"title"` Description string `json:"description"` Start string `json:"start"` End string `json:"end"` Season *Season `json:"season,omitempty"` }
func (SeasonCalendarEntry) GetDescription ¶
func (this SeasonCalendarEntry) GetDescription() string
func (SeasonCalendarEntry) GetEnd ¶
func (this SeasonCalendarEntry) GetEnd() string
func (SeasonCalendarEntry) GetEvent ¶
func (this SeasonCalendarEntry) GetEvent() *Event
func (SeasonCalendarEntry) GetID ¶
func (this SeasonCalendarEntry) GetID() string
func (SeasonCalendarEntry) GetStart ¶
func (this SeasonCalendarEntry) GetStart() string
func (SeasonCalendarEntry) GetTitle ¶
func (this SeasonCalendarEntry) GetTitle() string
func (SeasonCalendarEntry) IsCalendarEntry ¶
func (SeasonCalendarEntry) IsCalendarEntry()
type SeasonPagination ¶
type SeasonPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []*Season `json:"items"` }
func (SeasonPagination) GetFirst ¶
func (this SeasonPagination) GetFirst() int
func (SeasonPagination) GetOffset ¶
func (this SeasonPagination) GetOffset() int
func (SeasonPagination) GetTotal ¶
func (this SeasonPagination) GetTotal() int
func (SeasonPagination) IsPagination ¶
func (SeasonPagination) IsPagination()
type SeasonSearchItem ¶
type SeasonSearchItem struct { ID string `json:"id"` LegacyID *string `json:"legacyID,omitempty"` AgeRating string `json:"ageRating"` Collection string `json:"collection"` Title string `json:"title"` Header *string `json:"header,omitempty"` Description *string `json:"description,omitempty"` Highlight *string `json:"highlight,omitempty"` Image *string `json:"image,omitempty"` URL string `json:"url"` ShowID string `json:"showId"` ShowTitle string `json:"showTitle"` Show *Show `json:"show"` }
func (SeasonSearchItem) GetCollection ¶
func (this SeasonSearchItem) GetCollection() string
func (SeasonSearchItem) GetDescription ¶
func (this SeasonSearchItem) GetDescription() *string
func (SeasonSearchItem) GetHeader ¶
func (this SeasonSearchItem) GetHeader() *string
func (SeasonSearchItem) GetHighlight ¶
func (this SeasonSearchItem) GetHighlight() *string
func (SeasonSearchItem) GetID ¶
func (this SeasonSearchItem) GetID() string
func (SeasonSearchItem) GetImage ¶
func (this SeasonSearchItem) GetImage() *string
func (SeasonSearchItem) GetLegacyID ¶
func (this SeasonSearchItem) GetLegacyID() *string
func (SeasonSearchItem) GetTitle ¶
func (this SeasonSearchItem) GetTitle() string
func (SeasonSearchItem) GetURL ¶
func (this SeasonSearchItem) GetURL() string
func (SeasonSearchItem) IsSearchResultItem ¶
func (SeasonSearchItem) IsSearchResultItem()
type SectionItem ¶
type SectionItem struct { ID string `json:"id"` Sort int `json:"sort"` Title string `json:"title"` Description string `json:"description"` Image *string `json:"image,omitempty"` Item SectionItemType `json:"item"` }
func EpisodeSectionItemFrom ¶
func EpisodeSectionItemFrom(ctx context.Context, s *common.Episode, sort int, sectionStyle string, numberInTitle bool) *SectionItem
EpisodeSectionItemFrom returns a SectionItem
func GameSectionItemFrom ¶
func GameSectionItemFrom(ctx context.Context, game *common.Game, sort int, style common.ImageStyle) *SectionItem
GameSectionItemFrom returns a section item for a game
func LinkSectionItemFrom ¶
func LinkSectionItemFrom(ctx context.Context, s *common.Link, sort int, sectionStyle string) *SectionItem
LinkSectionItemFrom creates a sectionitem from a link
func PageSectionItemFrom ¶
func PageSectionItemFrom(ctx context.Context, p *common.Page, sort int, sectionStyle string) *SectionItem
PageSectionItemFrom returns a SectionItem from common.Page
func PersonSectionItemFrom ¶
func PersonSectionItemFrom(ctx context.Context, item *common.Person, sort int, style common.ImageStyle) *SectionItem
func PlaylistSectionItemFrom ¶
func PlaylistSectionItemFrom(ctx context.Context, item *common.Playlist, sort int, style common.ImageStyle) *SectionItem
PlaylistSectionItemFrom returns a section item for a playlist
func SeasonSectionItemFrom ¶
func SeasonSectionItemFrom(ctx context.Context, s *common.Season, sort int, sectionStyle string) *SectionItem
SeasonSectionItemFrom returns a SeasonItem from a common.Season
func ShortSectionItemFrom ¶
func ShortSectionItemFrom(ctx context.Context, item *common.Short, sort int, style common.ImageStyle) *SectionItem
ShortSectionItemFrom returns a section item for a short
func ShowSectionItemFrom ¶
func ShowSectionItemFrom(ctx context.Context, s *common.Show, sort int, sectionStyle string) *SectionItem
ShowSectionItemFrom returns a SectionItem from a sql row
func StudyTopicSectionItemFrom ¶
func StudyTopicSectionItemFrom(ctx context.Context, topic *common.StudyTopic, sort int, imageStyle common.ImageStyle) *SectionItem
StudyTopicSectionItemFrom a studytopic
type SectionItemPagination ¶
type SectionItemPagination struct { First int `json:"first"` Offset int `json:"offset"` Total int `json:"total"` Items []*SectionItem `json:"items"` }
func (SectionItemPagination) GetFirst ¶
func (this SectionItemPagination) GetFirst() int
func (SectionItemPagination) GetOffset ¶
func (this SectionItemPagination) GetOffset() int
func (SectionItemPagination) GetTotal ¶
func (this SectionItemPagination) GetTotal() int
func (SectionItemPagination) IsPagination ¶
func (SectionItemPagination) IsPagination()
type SectionItemType ¶
type SectionItemType interface {
IsSectionItemType()
}
type SectionPagination ¶
type SectionPagination struct { Total int `json:"total"` First int `json:"first"` Offset int `json:"offset"` Items []Section `json:"items"` }
func (SectionPagination) GetFirst ¶
func (this SectionPagination) GetFirst() int
func (SectionPagination) GetOffset ¶
func (this SectionPagination) GetOffset() int
func (SectionPagination) GetTotal ¶
func (this SectionPagination) GetTotal() int
func (SectionPagination) IsPagination ¶
func (SectionPagination) IsPagination()
type SectionSize ¶
type SectionSize string
const ( SectionSizeSmall SectionSize = "small" SectionSizeMedium SectionSize = "medium" )
func (SectionSize) IsValid ¶
func (e SectionSize) IsValid() bool
func (SectionSize) MarshalGQL ¶
func (e SectionSize) MarshalGQL(w io.Writer)
func (SectionSize) String ¶
func (e SectionSize) String() string
func (*SectionSize) UnmarshalGQL ¶
func (e *SectionSize) UnmarshalGQL(v interface{}) error
type ShareRestriction ¶
type ShareRestriction string
const ()
func (ShareRestriction) IsValid ¶
func (e ShareRestriction) IsValid() bool
func (ShareRestriction) MarshalGQL ¶
func (e ShareRestriction) MarshalGQL(w io.Writer)
func (ShareRestriction) String ¶
func (e ShareRestriction) String() string
func (*ShareRestriction) UnmarshalGQL ¶
func (e *ShareRestriction) UnmarshalGQL(v interface{}) error
type Short ¶
type Short struct { ID string `json:"id"` Title string `json:"title"` OriginalTitle string `json:"originalTitle"` Description *string `json:"description,omitempty"` Score float64 `json:"score"` Image *string `json:"image,omitempty"` Streams []*Stream `json:"streams"` Files []*File `json:"files"` Source *SubclipSource `json:"source,omitempty"` InMyList bool `json:"inMyList"` }
func (Short) GetDescription ¶
func (Short) GetOriginalTitle ¶
func (Short) GetStreams ¶
func (Short) IsCollectionItem ¶
func (Short) IsCollectionItem()
func (Short) IsMediaItem ¶
func (Short) IsMediaItem()
func (Short) IsPlaylistItem ¶
func (Short) IsPlaylistItem()
func (Short) IsSectionItemType ¶
func (Short) IsSectionItemType()
func (Short) IsUserCollectionEntryItem ¶
func (Short) IsUserCollectionEntryItem()
type ShortsPagination ¶
type Show ¶
type Show struct { ID string `json:"id"` LegacyID *string `json:"legacyID,omitempty"` Status Status `json:"status"` Type ShowType `json:"type"` Title string `json:"title"` Description string `json:"description"` Image *string `json:"image,omitempty"` ImageURL *string `json:"imageUrl,omitempty"` Images []*Image `json:"images"` EpisodeCount int `json:"episodeCount"` SeasonCount int `json:"seasonCount"` Seasons *SeasonPagination `json:"seasons"` // The default episode. // Should not be used actively in lists, as it could affect query speeds. DefaultEpisode *Episode `json:"defaultEpisode"` }
func (Show) GetDescription ¶
func (Show) IsCollectionItem ¶
func (Show) IsCollectionItem()
func (Show) IsSectionItemType ¶
func (Show) IsSectionItemType()
func (Show) IsUserCollectionEntryItem ¶
func (Show) IsUserCollectionEntryItem()
type ShowCalendarEntry ¶
type ShowCalendarEntry struct { ID string `json:"id"` Event *Event `json:"event,omitempty"` Title string `json:"title"` Description string `json:"description"` Start string `json:"start"` End string `json:"end"` Show *Show `json:"show,omitempty"` }
func (ShowCalendarEntry) GetDescription ¶
func (this ShowCalendarEntry) GetDescription() string
func (ShowCalendarEntry) GetEnd ¶
func (this ShowCalendarEntry) GetEnd() string
func (ShowCalendarEntry) GetEvent ¶
func (this ShowCalendarEntry) GetEvent() *Event
func (ShowCalendarEntry) GetID ¶
func (this ShowCalendarEntry) GetID() string
func (ShowCalendarEntry) GetStart ¶
func (this ShowCalendarEntry) GetStart() string
func (ShowCalendarEntry) GetTitle ¶
func (this ShowCalendarEntry) GetTitle() string
func (ShowCalendarEntry) IsCalendarEntry ¶
func (ShowCalendarEntry) IsCalendarEntry()
type ShowSearchItem ¶
type ShowSearchItem struct { ID string `json:"id"` LegacyID *string `json:"legacyID,omitempty"` Collection string `json:"collection"` Title string `json:"title"` Header *string `json:"header,omitempty"` Description *string `json:"description,omitempty"` Highlight *string `json:"highlight,omitempty"` Image *string `json:"image,omitempty"` URL string `json:"url"` Show *Show `json:"show"` }
func (ShowSearchItem) GetCollection ¶
func (this ShowSearchItem) GetCollection() string
func (ShowSearchItem) GetDescription ¶
func (this ShowSearchItem) GetDescription() *string
func (ShowSearchItem) GetHeader ¶
func (this ShowSearchItem) GetHeader() *string
func (ShowSearchItem) GetHighlight ¶
func (this ShowSearchItem) GetHighlight() *string
func (ShowSearchItem) GetID ¶
func (this ShowSearchItem) GetID() string
func (ShowSearchItem) GetImage ¶
func (this ShowSearchItem) GetImage() *string
func (ShowSearchItem) GetLegacyID ¶
func (this ShowSearchItem) GetLegacyID() *string
func (ShowSearchItem) GetTitle ¶
func (this ShowSearchItem) GetTitle() string
func (ShowSearchItem) GetURL ¶
func (this ShowSearchItem) GetURL() string
func (ShowSearchItem) IsSearchResultItem ¶
func (ShowSearchItem) IsSearchResultItem()
type SimpleCalendarEntry ¶
type SimpleCalendarEntry struct { ID string `json:"id"` Event *Event `json:"event,omitempty"` Title string `json:"title"` Description string `json:"description"` Start string `json:"start"` End string `json:"end"` }
func (SimpleCalendarEntry) GetDescription ¶
func (this SimpleCalendarEntry) GetDescription() string
func (SimpleCalendarEntry) GetEnd ¶
func (this SimpleCalendarEntry) GetEnd() string
func (SimpleCalendarEntry) GetEvent ¶
func (this SimpleCalendarEntry) GetEvent() *Event
func (SimpleCalendarEntry) GetID ¶
func (this SimpleCalendarEntry) GetID() string
func (SimpleCalendarEntry) GetStart ¶
func (this SimpleCalendarEntry) GetStart() string
func (SimpleCalendarEntry) GetTitle ¶
func (this SimpleCalendarEntry) GetTitle() string
func (SimpleCalendarEntry) IsCalendarEntry ¶
func (SimpleCalendarEntry) IsCalendarEntry()
type Stream ¶
type Stream struct { ID string `json:"id"` URL string `json:"url"` ExpiresAt string `json:"expiresAt"` VideoLanguage *string `json:"videoLanguage,omitempty"` AudioLanguages []string `json:"audioLanguages"` SubtitleLanguages []string `json:"subtitleLanguages"` Type StreamType `json:"type"` Downloadable bool `json:"downloadable"` }
type StreamType ¶
type StreamType string
const ( StreamTypeHlsTs StreamType = "hls_ts" StreamTypeHlsCmaf StreamType = "hls_cmaf" StreamTypeDash StreamType = "dash" )
func (StreamType) IsValid ¶
func (e StreamType) IsValid() bool
func (StreamType) MarshalGQL ¶
func (e StreamType) MarshalGQL(w io.Writer)
func (StreamType) String ¶
func (e StreamType) String() string
func (*StreamType) UnmarshalGQL ¶
func (e *StreamType) UnmarshalGQL(v interface{}) error
type StudyTopic ¶
type StudyTopic struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Image *string `json:"image,omitempty"` Images []*Image `json:"images"` // The default lesson. // Should not be used actively in lists, as it could affect query speeds. DefaultLesson *Lesson `json:"defaultLesson"` Lessons *LessonPagination `json:"lessons"` Progress *LessonsProgress `json:"progress"` }
func StudyTopicFrom ¶
func StudyTopicFrom(ctx context.Context, topic *common.StudyTopic) *StudyTopic
StudyTopicFrom a studytopic
func (StudyTopic) GetDescription ¶
func (this StudyTopic) GetDescription() *string
func (StudyTopic) GetID ¶
func (this StudyTopic) GetID() string
func (StudyTopic) GetTitle ¶
func (this StudyTopic) GetTitle() string
func (StudyTopic) IsCollectionItem ¶
func (StudyTopic) IsCollectionItem()
func (StudyTopic) IsSectionItemType ¶
func (StudyTopic) IsSectionItemType()
type SubclipSource ¶
type SubclipSource struct { Item SubclipSourceItem `json:"item"` Start *float64 `json:"start,omitempty"` End *float64 `json:"end,omitempty"` }
type SubclipSourceItem ¶
type SubclipSourceItem interface {
IsSubclipSourceItem()
}
type SubscriptionTopic ¶
type SubscriptionTopic string
const (
SubscriptionTopicComics SubscriptionTopic = "comics"
)
func (SubscriptionTopic) IsValid ¶
func (e SubscriptionTopic) IsValid() bool
func (SubscriptionTopic) MarshalGQL ¶
func (e SubscriptionTopic) MarshalGQL(w io.Writer)
func (SubscriptionTopic) String ¶
func (e SubscriptionTopic) String() string
func (*SubscriptionTopic) UnmarshalGQL ¶
func (e *SubscriptionTopic) UnmarshalGQL(v interface{}) error
type Survey ¶
type Survey struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` Questions *SurveyQuestionPagination `json:"questions"` }
type SurveyLinkQuestion ¶
type SurveyLinkQuestion struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` URL string `json:"url"` ActionButtonText string `json:"actionButtonText"` CancelButtonText *string `json:"cancelButtonText,omitempty"` }
func (SurveyLinkQuestion) GetDescription ¶
func (this SurveyLinkQuestion) GetDescription() *string
func (SurveyLinkQuestion) GetID ¶
func (this SurveyLinkQuestion) GetID() string
func (SurveyLinkQuestion) GetTitle ¶
func (this SurveyLinkQuestion) GetTitle() string
func (SurveyLinkQuestion) IsSurveyQuestion ¶
func (SurveyLinkQuestion) IsSurveyQuestion()
type SurveyPrompt ¶
type SurveyPrompt struct { ID string `json:"id"` Title string `json:"title"` SecondaryTitle *string `json:"secondaryTitle,omitempty"` From string `json:"from"` To string `json:"to"` Survey *Survey `json:"survey"` }
func (SurveyPrompt) GetFrom ¶
func (this SurveyPrompt) GetFrom() string
func (SurveyPrompt) GetID ¶
func (this SurveyPrompt) GetID() string
func (SurveyPrompt) GetSecondaryTitle ¶
func (this SurveyPrompt) GetSecondaryTitle() *string
func (SurveyPrompt) GetTitle ¶
func (this SurveyPrompt) GetTitle() string
func (SurveyPrompt) GetTo ¶
func (this SurveyPrompt) GetTo() string
func (SurveyPrompt) IsPrompt ¶
func (SurveyPrompt) IsPrompt()
type SurveyQuestion ¶
type SurveyQuestion interface { IsSurveyQuestion() GetID() string GetTitle() string GetDescription() *string }
func SurveyQuestionFrom ¶
func SurveyQuestionFrom(ctx context.Context, i *common.SurveyQuestion) SurveyQuestion
SurveyQuestionFrom returns a gql question from a question
type SurveyQuestionPagination ¶
type SurveyQuestionPagination struct { First int `json:"first"` Offset int `json:"offset"` Total int `json:"total"` Items []SurveyQuestion `json:"items"` }
func (SurveyQuestionPagination) GetFirst ¶
func (this SurveyQuestionPagination) GetFirst() int
func (SurveyQuestionPagination) GetOffset ¶
func (this SurveyQuestionPagination) GetOffset() int
func (SurveyQuestionPagination) GetTotal ¶
func (this SurveyQuestionPagination) GetTotal() int
func (SurveyQuestionPagination) IsPagination ¶
func (SurveyQuestionPagination) IsPagination()
type SurveyRatingQuestion ¶
type SurveyRatingQuestion struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` }
func (SurveyRatingQuestion) GetDescription ¶
func (this SurveyRatingQuestion) GetDescription() *string
func (SurveyRatingQuestion) GetID ¶
func (this SurveyRatingQuestion) GetID() string
func (SurveyRatingQuestion) GetTitle ¶
func (this SurveyRatingQuestion) GetTitle() string
func (SurveyRatingQuestion) IsSurveyQuestion ¶
func (SurveyRatingQuestion) IsSurveyQuestion()
type SurveyTextQuestion ¶
type SurveyTextQuestion struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description,omitempty"` }
func (SurveyTextQuestion) GetDescription ¶
func (this SurveyTextQuestion) GetDescription() *string
func (SurveyTextQuestion) GetID ¶
func (this SurveyTextQuestion) GetID() string
func (SurveyTextQuestion) GetTitle ¶
func (this SurveyTextQuestion) GetTitle() string
func (SurveyTextQuestion) IsSurveyQuestion ¶
func (SurveyTextQuestion) IsSurveyQuestion()
type TaskPagination ¶
type TaskPagination struct { Offset int `json:"offset"` First int `json:"first"` Total int `json:"total"` Items []Task `json:"items"` }
func (TaskPagination) GetFirst ¶
func (this TaskPagination) GetFirst() int
func (TaskPagination) GetOffset ¶
func (this TaskPagination) GetOffset() int
func (TaskPagination) GetTotal ¶
func (this TaskPagination) GetTotal() int
func (TaskPagination) IsPagination ¶
func (TaskPagination) IsPagination()
type TasksProgress ¶
type TextTask ¶
type TextTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` }
func (TextTask) GetCompleted ¶
type User ¶
type User struct { ID *string `json:"id,omitempty"` Anonymous bool `json:"anonymous"` BccMember bool `json:"bccMember"` Audience *string `json:"audience,omitempty"` Email *string `json:"email,omitempty"` EmailVerified bool `json:"emailVerified"` Roles []string `json:"roles"` Analytics *Analytics `json:"analytics"` Gender Gender `json:"gender"` FirstName string `json:"firstName"` DisplayName string `json:"displayName"` CompletedRegistration bool `json:"completedRegistration"` }
type UserCollection ¶
type UserCollection struct { ID string `json:"id"` Title string `json:"title"` Entries *UserCollectionEntryPagination `json:"entries"` }
type UserCollectionEntry ¶
type UserCollectionEntry struct { ID string `json:"id"` Item UserCollectionEntryItem `json:"item,omitempty"` }
type UserCollectionEntryItem ¶
type UserCollectionEntryItem interface {
IsUserCollectionEntryItem()
}
type UserCollectionEntryPagination ¶
type UserCollectionEntryPagination struct { Total int `json:"total"` Offset int `json:"offset"` First int `json:"first"` Items []*UserCollectionEntry `json:"items"` }
func (UserCollectionEntryPagination) GetFirst ¶
func (this UserCollectionEntryPagination) GetFirst() int
func (UserCollectionEntryPagination) GetOffset ¶
func (this UserCollectionEntryPagination) GetOffset() int
func (UserCollectionEntryPagination) GetTotal ¶
func (this UserCollectionEntryPagination) GetTotal() int
func (UserCollectionEntryPagination) IsPagination ¶
func (UserCollectionEntryPagination) IsPagination()
type VideoTask ¶
type VideoTask struct { ID string `json:"id"` Title string `json:"title"` Completed bool `json:"completed"` Episode *Episode `json:"episode"` SecondaryTitle *string `json:"secondaryTitle,omitempty"` Description *string `json:"description,omitempty"` }
func (VideoTask) GetCompleted ¶
type WebSection ¶
type WebSection struct { ID string `json:"id"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` URL string `json:"url"` WidthRatio float64 `json:"widthRatio"` AspectRatio *float64 `json:"aspectRatio,omitempty"` Height *int `json:"height,omitempty"` Authentication bool `json:"authentication"` }
func (WebSection) GetDescription ¶
func (this WebSection) GetDescription() *string
func (WebSection) GetID ¶
func (this WebSection) GetID() string
func (WebSection) GetTitle ¶
func (this WebSection) GetTitle() *string
func (WebSection) IsSection ¶
func (WebSection) IsSection()