model

package
v0.0.0-...-4a248c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllGridSectionSize = []GridSectionSize{
	GridSectionSizeHalf,
}
View Source
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"`
}

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 AddToCollectionResult

type AddToCollectionResult struct {
	EntryID    string          `json:"entryId"`
	Collection *UserCollection `json:"collection"`
}

type Alternative

type Alternative struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	IsCorrect *bool  `json:"isCorrect,omitempty"`
	Selected  bool   `json:"selected"`
}

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"`
	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 Analytics

type Analytics struct {
	AnonymousID string `json:"anonymousId"`
}

type AnswerSurveyQuestionResult

type AnswerSurveyQuestionResult struct {
	ID string `json:"id"`
}

type Application

type Application struct {
	ID                string `json:"id"`
	Code              string `json:"code"`
	ClientVersion     string `json:"clientVersion"`
	Page              *Page  `json:"page,omitempty"`
	SearchPage        *Page  `json:"searchPage,omitempty"`
	GamesPage         *Page  `json:"gamesPage,omitempty"`
	LivestreamEnabled bool   `json:"livestreamEnabled"`
}

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 CalendarPeriod struct {
	ActiveDays []string `json:"activeDays"`
	Events     []*Event `json:"events"`
}

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"`
}

func (Chapter) IsContributionItem

func (Chapter) IsContributionItem()

type CollectionItem

type CollectionItem interface {
	IsCollectionItem()
	GetID() string
	GetTitle() string
	GetDescription() *string
}

type Config

type Config struct {
	Global *GlobalConfig `json:"global"`
}

type ConfirmAchievementResult

type ConfirmAchievementResult struct {
	Success bool `json:"success"`
}

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"`
	Item ContributionItem  `json:"item"`
}

type ContributionItem

type ContributionItem interface {
	IsContributionItem()
}

type ContributionType

type ContributionType struct {
	Code  string `json:"code"`
	Title string `json:"title"`
}

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 Device

type Device struct {
	Token     string `json:"token"`
	UpdatedAt string `json:"updatedAt"`
}

type EmailOptions

type EmailOptions struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

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"`
	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"`
	ShareRestriction      ShareRestriction       `json:"shareRestriction"`
	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

func EpisodeFrom(ctx context.Context, e *common.Episode) *Episode

EpisodeFrom coverts a common.Episode into an GQL episode type

func (Episode) GetDescription

func (this Episode) GetDescription() *string

func (Episode) GetFiles

func (this Episode) GetFiles() []*File

func (Episode) GetID

func (this Episode) GetID() string

func (Episode) GetImage

func (this Episode) GetImage() *string

func (Episode) GetOriginalTitle

func (this Episode) GetOriginalTitle() string

func (Episode) GetStreams

func (this Episode) GetStreams() []*Stream

func (Episode) GetTitle

func (this Episode) GetTitle() string

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 EpisodeContext struct {
	CollectionID *string `json:"collectionId,omitempty"`
	PlaylistID   *string `json:"playlistId,omitempty"`
	Shuffle      *bool   `json:"shuffle,omitempty"`
	Cursor       *string `json:"cursor,omitempty"`
}

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 Event struct {
	ID      string          `json:"id"`
	Title   string          `json:"title"`
	Start   string          `json:"start"`
	End     string          `json:"end"`
	Image   string          `json:"image"`
	Entries []CalendarEntry `json:"entries"`
}

func EventFrom

func EventFrom(ctx context.Context, i *common.Event) *Event

EventFrom returns a gql event from event

type Export

type Export struct {
	DbVersion string `json:"dbVersion"`
	URL       string `json:"url"`
}

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"`
}

func FileFrom

func FileFrom(_ context.Context, signer signatureProvider, cdnDomain string, file *common.File) *File

FileFrom converts AssetFile rows to the GQL equivalents

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 GameFrom

func GameFrom(ctx context.Context, game *common.Game) *Game

GameFrom returns a game from common

func (Game) GetDescription

func (this Game) GetDescription() *string

func (Game) GetID

func (this Game) GetID() string

func (Game) GetTitle

func (this Game) GetTitle() string

func (Game) IsCollectionItem

func (Game) IsCollectionItem()

func (Game) IsSectionItemType

func (Game) IsSectionItemType()

type Gender

type Gender string
const (
	GenderMale    Gender = "male"
	GenderFemale  Gender = "female"
	GenderUnknown Gender = "unknown"
)

func (Gender) IsValid

func (e Gender) IsValid() bool

func (Gender) MarshalGQL

func (e Gender) MarshalGQL(w io.Writer)

func (Gender) String

func (e Gender) String() string

func (*Gender) UnmarshalGQL

func (e *Gender) UnmarshalGQL(v interface{}) error

type GlobalConfig

type GlobalConfig struct {
	LiveOnline  bool `json:"liveOnline"`
	NpawEnabled bool `json:"npawEnabled"`
}

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 Image

type Image struct {
	Style string `json:"style"`
	URL   string `json:"url"`
}

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"`
}

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 LegacyIDLookupOptions struct {
	EpisodeID *int `json:"episodeID,omitempty"`
	ProgramID *int `json:"programID,omitempty"`
}

type Lesson

type Lesson struct {
	ID          string          `json:"id"`
	Title       string          `json:"title"`
	Description string          `json:"description"`
	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"`
}

func LessonFrom

func LessonFrom(ctx context.Context, lesson *common.Lesson) *Lesson

LessonFrom returns a lesson from studies.Lesson

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 LessonsProgress struct {
	Total     int `json:"total"`
	Completed int `json:"completed"`
}
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 LinkFrom

func LinkFrom(ctx context.Context, s *common.Link) *Link

LinkFrom returns link from common.Link

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

func (this LinkTask) GetCompleted() bool

func (LinkTask) GetID

func (this LinkTask) GetID() string

func (LinkTask) GetTitle

func (this LinkTask) GetTitle() string

func (LinkTask) IsTask

func (LinkTask) IsTask()

type LinkType

type LinkType string
const (
	LinkTypeText  LinkType = "text"
	LinkTypeAudio LinkType = "audio"
	LinkTypeVideo LinkType = "video"
	LinkTypeOther LinkType = "other"
)

func (LinkType) IsValid

func (e LinkType) IsValid() bool

func (LinkType) MarshalGQL

func (e LinkType) MarshalGQL(w io.Writer)

func (LinkType) String

func (e LinkType) String() string

func (*LinkType) UnmarshalGQL

func (e *LinkType) UnmarshalGQL(v interface{}) error

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 MediaItem

type MediaItem interface {
	IsMediaItem()
	GetID() string
	GetStreams() []*Stream
	GetFiles() []*File
	GetTitle() string
	GetOriginalTitle() string
	GetImage() *string
}

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 MessageStyle struct {
	Text       string `json:"text"`
	Background string `json:"background"`
	Border     string `json:"border"`
}

type NameOptions

type NameOptions struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

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 PageFrom

func PageFrom(ctx context.Context, p *common.Page) *Page

PageFrom converts common.Page to Page

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 Pagination interface {
	IsPagination()
	GetTotal() int
	GetFirst() int
	GetOffset() int
}

type Person

type Person struct {
	ID                string                   `json:"id"`
	Name              string                   `json:"name"`
	Image             *string                  `json:"image,omitempty"`
	ContributionTypes []*ContributionTypeCount `json:"contributionTypes"`
	Contributions     *ContributionsPagination `json:"contributions"`
}

func PersonFrom

func PersonFrom(ctx context.Context, item *common.Person) *Person

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

func PlaylistFrom(ctx context.Context, item *common.Playlist) *Playlist

PlaylistFrom returns a playlist from common

func (Playlist) GetDescription

func (this Playlist) GetDescription() *string

func (Playlist) GetID

func (this Playlist) GetID() string

func (Playlist) GetTitle

func (this Playlist) GetTitle() string

func (Playlist) IsCollectionItem

func (Playlist) IsCollectionItem()

func (Playlist) IsSectionItemType

func (Playlist) IsSectionItemType()

type PlaylistItem

type PlaylistItem interface {
	IsCollectionItem()
	IsPlaylistItem()
	GetID() string
	GetTitle() string
	GetDescription() *string
	GetImage() *string
}

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 Profile

type Profile struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Prompt

type Prompt interface {
	IsPrompt()
	GetID() string
	GetTitle() string
	GetSecondaryTitle() *string
	GetFrom() string
	GetTo() string
}

func PromptFrom

func PromptFrom(ctx context.Context, i *common.Prompt) Prompt

type Question

type Question struct {
	ID       string       `json:"id"`
	Category *FAQCategory `json:"category"`
	Question string       `json:"question"`
	Answer   string       `json:"answer"`
}

func QuestionFrom

func QuestionFrom(ctx context.Context, i *common.Question) *Question

QuestionFrom returns a gql question from question

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

func (this QuoteTask) GetCompleted() bool

func (QuoteTask) GetID

func (this QuoteTask) GetID() string

func (QuoteTask) GetTitle

func (this QuoteTask) GetTitle() string

func (QuoteTask) IsTask

func (QuoteTask) IsTask()
type RedirectLink struct {
	URL                    string `json:"url"`
	RequiresAuthentication bool   `json:"requiresAuthentication"`
}

type RedirectParam

type RedirectParam struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type SearchResult

type SearchResult struct {
	Hits   int                `json:"hits"`
	Page   int                `json:"page"`
	Result []SearchResultItem `json:"result"`
}

type SearchResultItem

type SearchResultItem interface {
	IsSearchResultItem()
	GetID() string
	GetLegacyID() *string
	GetCollection() string
	GetTitle() string
	GetHeader() *string
	GetDescription() *string
	GetHighlight() *string
	GetImage() *string
	GetURL() string
}

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

func SeasonFrom(ctx context.Context, s *common.Season) *Season

SeasonFrom coverts a common.Season into an GQL episode type

func (Season) GetDescription

func (this Season) GetDescription() *string

func (Season) GetID

func (this Season) GetID() string

func (Season) GetTitle

func (this Season) GetTitle() string

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 Section

type Section interface {
	IsSection()
	GetID() string
	GetTitle() *string
	GetDescription() *string
}

func SectionFrom

func SectionFrom(ctx context.Context, s *common.Section) Section

SectionFrom converts common.Page to Section

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 (
	ShareRestrictionRegistered ShareRestriction = "registered"
	ShareRestrictionMembers    ShareRestriction = "members"
	ShareRestrictionPublic     ShareRestriction = "public"
)

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"`
	Image         *string        `json:"image,omitempty"`
	Streams       []*Stream      `json:"streams"`
	Files         []*File        `json:"files"`
	Source        *SubclipSource `json:"source,omitempty"`
	InMyList      bool           `json:"inMyList"`
}

func ShortFrom

func ShortFrom(ctx context.Context, item *common.Short) *Short

ShortFrom returns a short from common

func (Short) GetDescription

func (this Short) GetDescription() *string

func (Short) GetFiles

func (this Short) GetFiles() []*File

func (Short) GetID

func (this Short) GetID() string

func (Short) GetImage

func (this Short) GetImage() *string

func (Short) GetOriginalTitle

func (this Short) GetOriginalTitle() string

func (Short) GetStreams

func (this Short) GetStreams() []*Stream

func (Short) GetTitle

func (this Short) GetTitle() string

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 ShortsPagination struct {
	Cursor     string   `json:"cursor"`
	NextCursor string   `json:"nextCursor"`
	Shorts     []*Short `json:"shorts"`
}

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 ShowFrom

func ShowFrom(ctx context.Context, s *common.Show) *Show

ShowFrom coverts a common.Show into an GQL episode type

func (Show) GetDescription

func (this Show) GetDescription() *string

func (Show) GetID

func (this Show) GetID() string

func (Show) GetTitle

func (this Show) GetTitle() string

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 ShowType

type ShowType string
const (
	ShowTypeEvent  ShowType = "event"
	ShowTypeSeries ShowType = "series"
)

func (ShowType) IsValid

func (e ShowType) IsValid() bool

func (ShowType) MarshalGQL

func (e ShowType) MarshalGQL(w io.Writer)

func (ShowType) String

func (e ShowType) String() string

func (*ShowType) UnmarshalGQL

func (e *ShowType) UnmarshalGQL(v interface{}) error

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 Status

type Status string
const (
	StatusPublished Status = "published"
	StatusUnlisted  Status = "unlisted"
)

func (Status) IsValid

func (e Status) IsValid() bool

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

func (Status) String

func (e Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(v interface{}) error

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"`
}

func StreamFrom

func StreamFrom(_ context.Context, signer signatureProvider, cdn cdnConfig, stream *common.Stream) (*Stream, error)

StreamFrom converts AssetFile rows to the GQL equivalents

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"`
}

func SurveyFrom

func SurveyFrom(ctx context.Context, i *common.Survey) *Survey

SurveyFrom returns a gql survey from a survey

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 Task

type Task interface {
	IsTask()
	GetID() string
	GetTitle() string
	GetCompleted() bool
}

func TaskFrom

func TaskFrom(ctx context.Context, task *common.Task) Task

TaskFrom returns a task from studies.Task

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 TasksProgress struct {
	Total     int `json:"total"`
	Completed int `json:"completed"`
}

type TextTask

type TextTask struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	Completed bool   `json:"completed"`
}

func (TextTask) GetCompleted

func (this TextTask) GetCompleted() bool

func (TextTask) GetID

func (this TextTask) GetID() string

func (TextTask) GetTitle

func (this TextTask) GetTitle() string

func (TextTask) IsTask

func (TextTask) IsTask()

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

func (this VideoTask) GetCompleted() bool

func (VideoTask) GetID

func (this VideoTask) GetID() string

func (VideoTask) GetTitle

func (this VideoTask) GetTitle() string

func (VideoTask) IsTask

func (VideoTask) IsTask()

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL