structs

package
v0.0.0-...-0c99b0e Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	AdBlocker              bool     `json:"adBlocker"`
	DrmSupported           bool     `json:"drmSupported"`
	HdrCapabilities        []string `json:"hdrCapabilities"`
	HwDecodingCapabilities []string `json:"hwDecodingCapabilities"`
	SoundCapabilities      []string `json:"soundCapabilities"`
}

type Episode

type Episode struct {
	Attributes struct {
		AlternateId string `json:"alternateId"`
		AirDate     string `json:"airDate"`
		Name        string `json:"name"`
		Description string `json:"description"`
		Episode     int    `json:"episodeNumber"`
		Season      int    `json:"seasonNumber"`
		HasDrm      bool   `json:"drmEnabled"`
	} `json:"attributes"`
	Id string `json:"id"`
}

func (*Episode) String

func (e *Episode) String() string

type Flags

type Flags struct {
	ShowId  *int
	Realm   *string
	Episode *int
	Season  *int
}

type GetAuthorizationTokenResponse

type GetAuthorizationTokenResponse struct {
	Data struct {
		Attributes struct {
			Token string `json:"token"`
		} `json:"attributes"`
	} `json:"data"`
}

type GetShowResponse

type GetShowResponse struct {
	Data     []Episode `json:"data"`
	Included []struct {
		Attributes Show   `json:"attributes"`
		Type       string `json:"type"`
	} `json:"included"`
	Meta struct {
		TotalPages int `json:"totalPages"`
	} `json:"meta"`
	Errors struct {
	} `json:"errors"`
}

type GetVideoUrlRequest

type GetVideoUrlRequest struct {
	DeviceInfo         DeviceInfo `json:"deviceInfo"`
	WisteriaProperties struct {
	} `json:"wisteriaProperties"`
	VideoId string `json:"videoId"`
}

type GetVideoUrlResponse

type GetVideoUrlResponse struct {
	Data struct {
		Attributes struct {
			Streaming []struct {
				Url string `json:"url"`
			} `json:"streaming"`
		} `json:"attributes"`
	} `json:"data"`
}

type RateLimitError

type RateLimitError struct {
}

func (*RateLimitError) Error

func (e *RateLimitError) Error() string

type Show

type Show struct {
	AlternateId string `json:"alternateId"`
	Name        string `json:"name"`
	Episodes    int    `json:"episodeCount"`
	Seasons     int    `json:"seasonNumber"`
}

Jump to

Keyboard shortcuts

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