str

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Package str used for structs

Index

Constants

View Source
const (
	Empty = 0
)

consts

Variables

View Source
var Headers = map[string]any{
	"Accept":            "application/json",
	"Content-Type":      "application/json",
	"User-Agent":        "Trakt exporter",
	"Connection":        "Keep-Alive",
	"trakt-api-version": "2",
	"trakt-api-key":     "",
	"Authorization":     "",
}

Headers map with headers

Functions

func Bool

func Bool(v bool) *bool

Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.

func ContainInt

func ContainInt(key int, s []int) bool

ContainInt check if int exists in slice

func ContainString

func ContainString(key string, s []string) bool

ContainString check if string exists in slice

func Format

func Format(pattern string, args ...any) string

Format helper function for Fomat in stringFormatter

func Formatc

func Formatc(pattern string, data map[string]any) string

Formatc helper function for FormatComplex in stringFormatter

func Int

func Int(v int) *int

Int is a helper routine that allocates a new int value to store v and returns a pointer to it.

func Int64

func Int64(v int64) *int64

Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it.

func String

func String(v string) *string

String is a helper routine that allocates a new string value to store v and returns a pointer to it.

func Stringify

func Stringify(message any) string

Stringify attempts to create a reasonable string representation of types in the Trakt library. It does things like resolve pointers to their values and omits struct fields with nil values. inspired by the go-github library.

Types

type Account added in v1.14.0

type Account struct {
	SettingsAt  *Timestamp `json:"settings_at,omitempty"`
	FollowedAt  *Timestamp `json:"followed_at,omitempty"`
	FollowingAt *Timestamp `json:"following_at,omitempty"`
	PenndingAt  *Timestamp `json:"pending_at,omitempty"`
	RequestedAt *Timestamp `json:"requested_at,omitempty"`
}

Account represents JSON account object

func (Account) String added in v1.14.0

func (f Account) String() string

type AddResult added in v1.14.0

type AddResult struct {
	Added    *ResultCounters `json:"added,omitempty"`
	Updated  *ResultCounters `json:"updated,omitempty"`
	Existing *ResultCounters `json:"existing,omitempty"`
	NotFound *ResultNotFound `json:"not_found,omitempty"`
	List     *PersonalList   `json:"list,omitempty"`
}

AddResult represents JSON history add result object

func (AddResult) String added in v1.14.0

func (a AddResult) String() string

type Air

type Air struct {
	Day      *string `json:"day,omitempty"`
	Time     *string `json:"time,omitempty"`
	TimeZone *string `json:"timezone,omitempty"`
}

Air represents JSON response for media object

func (Air) String

func (a Air) String() string

type Alias added in v1.8.0

type Alias struct {
	Title   *string `json:"title,omitempty"`
	Country *string `json:"country,omitempty"`
}

Alias represents JSON alias object

func (Alias) String added in v1.8.0

func (a Alias) String() string

type AttachedTo added in v1.9.0

type AttachedTo struct {
	ID   *int    `json:"id,omitempty"`
	Type *string `json:"type,omitempty"`
}

AttachedTo represents JSON notes object

func (AttachedTo) String added in v1.9.0

func (a AttachedTo) String() string

type Avatar

type Avatar struct {
	Full *string `json:"full,omitempty"`
}

Avatar represents JSON avatar object

type CalendarList

type CalendarList struct {
	Released   *string    `json:"released,omitempty"`
	FirstAired *Timestamp `json:"first_aired,omitempty"`
	Episode    *Episode   `json:"episode,omitempty"`
	Show       *Show      `json:"show,omitempty"`
	Movie      *Movie     `json:"movie,omitempty"`
}

CalendarList represents JSON calendar list item

func (CalendarList) String

func (c CalendarList) String() string

type Certification added in v1.6.0

type Certification struct {
	Country       *string `json:"country,omitempty"`
	Certification *string `json:"certification,omitempty"`
	Name          *string `json:"name,omitempty"`
	Slug          *string `json:"slug,omitempty"`
	Description   *string `json:"description,omitempty"`
}

Certification represents JSON certification object

func (Certification) String added in v1.6.0

func (c Certification) String() string

type Certifications added in v1.6.0

type Certifications struct {
	Us []*Certification `json:"us,omitempty"`
}

Certifications represents JSON certifications object

func (Certifications) String added in v1.6.0

func (c Certifications) String() string

type Character

type Character struct {
	Character     *string   `json:"character,omitempty"`
	Characters    *[]string `json:"characters,omitempty"`
	Person        *Person   `json:"person,omitempty"`
	EpisodeCount  *int      `json:"episode_count,omitempty"`
	SeriesRegular *bool     `json:"series_regular,omitempty"`
	Movie         *Movie    `json:"movie,omitempty"`
	Show          *Show     `json:"show,omitempty"`
}

Character represents JSON character object

func (Character) String

func (c Character) String() string

type Checkin added in v1.9.1

type Checkin struct {
	ID      *int64     `json:"id,omitempty"`
	Watched *Timestamp `json:"watched,omitempty"`
	Expires *Timestamp `json:"expires_at,omitempty"`
	Movie   *Movie     `json:"movie,omitempty"`
	Show    *Show      `json:"show,omitempty"`
	Episode *Episode   `json:"episode,omitempty"`
	Sharing *Sharing   `json:"sharing,omitempty"`
	Message *string    `json:"message,omitempty"`
}

Checkin represents JSON checkin object

func (Checkin) String added in v1.9.1

func (c Checkin) String() string

type Collection added in v1.5.0

type Collection struct {
	ItemCount *int `json:"item_count,omitempty"`
}

Collection represents JSON collection object

func (Collection) String added in v1.5.0

func (c Collection) String() string

type CollectionAddResult added in v1.14.0

type CollectionAddResult struct {
	Added    *CollectionResultCounters `json:"added,omitempty"`
	Updated  *CollectionResultCounters `json:"updated,omitempty"`
	Existing *CollectionResultCounters `json:"existing,omitempty"`
	NotFound *CollectionResultNotFound `json:"not_found,omitempty"`
}

CollectionAddResult represents JSON collection add result object

func (CollectionAddResult) String added in v1.14.0

func (c CollectionAddResult) String() string

type CollectionProgress added in v1.10.0

type CollectionProgress struct {
	Aired           *int       `json:"aired,omitempty"`
	Completed       *int       `json:"completed,omitempty"`
	LastCollectedAt *Timestamp `json:"last_collected_at,omitempty"`
	Seasons         []*Season  `json:"seasons,omitempty"`
	HiddenSeasons   []*Season  `json:"hidden_seasons,omitempty"`
	NextEpisode     *Episode   `json:"next_episode,omitempty"`
	LastEpisode     *Episode   `json:"last_episode,omitempty"`
}

CollectionProgress represents JSON show_collection_progress object

func (CollectionProgress) String added in v1.10.0

func (s CollectionProgress) String() string

type CollectionRemoveResult added in v1.14.0

type CollectionRemoveResult struct {
	Deleted  *CollectionResultCounters `json:"deleted,omitempty"`
	NotFound *CollectionResultNotFound `json:"not_found,omitempty"`
}

CollectionRemoveResult represents JSON collection remove result object

func (CollectionRemoveResult) String added in v1.14.0

func (c CollectionRemoveResult) String() string

type CollectionResultCounters added in v1.14.0

type CollectionResultCounters struct {
	Movies   *int `json:"movies,omitempty"`
	Episodes *int `json:"episodes,omitempty"`
	Shows    *int `json:"shows,omitempty"`
	Seasons  *int `json:"seasons,omitempty"`
}

CollectionResultCounters represents JSON counters object

func (CollectionResultCounters) String added in v1.14.0

func (c CollectionResultCounters) String() string

type CollectionResultNotFound added in v1.14.0

type CollectionResultNotFound struct {
	Movies   *[]ExportlistItem `json:"movies,omitempty"`
	Shows    *[]Show           `json:"shows,omitempty"`
	Seasons  *[]Season         `json:"seasons,omitempty"`
	Episodes *[]Episodes       `json:"episodes,omitempty"`
}

CollectionResultNotFound represents JSON not found object

func (CollectionResultNotFound) String added in v1.14.0

func (c CollectionResultNotFound) String() string

type Comment added in v1.6.0

type Comment struct {
	ID        *int          `json:"id,omitempty"`
	ParentID  *int          `json:"parent_id,omitempty"`
	CreatedAt *Timestamp    `json:"created_at,omitempty"`
	UpdatedAt *Timestamp    `json:"updated_at,omitempty"`
	Comment   *string       `json:"comment,omitempty"`
	Spoiler   *bool         `json:"spoiler,omitempty"`
	Sharing   *Sharing      `json:"sharing,omitempty"`
	Review    *bool         `json:"review,omitempty"`
	Replies   *int          `json:"replies,omitempty"`
	Likes     *int          `json:"likes,omitempty"`
	UserStats *UserStats    `json:"user_stats,omitempty"`
	User      *UserProfile  `json:"user,omitempty"`
	Movie     *Movie        `json:"movie,omitempty"`
	Show      *Show         `json:"show,omitempty"`
	Season    *Season       `json:"season,omitempty"`
	Episode   *Episode      `json:"episode,omitempty"`
	List      *PersonalList `json:"list,omitempty"`
}

Comment represents JSON comment object

func (Comment) String added in v1.6.0

func (c Comment) String() string

type CommentItem added in v1.6.0

type CommentItem struct {
	Type    *string  `json:"type,omitempty"`
	Movie   *Movie   `json:"movie,omitempty"`
	Season  *Season  `json:"season,omitempty"`
	Episode *Episode `json:"episode,omitempty"`
	Show    *Show    `json:"show,omitempty"`
	List    *List    `json:"list,omitempty"`
	Comment *Comment `json:"comment,omitempty"`
}

CommentItem represents JSON comment item object

func (CommentItem) String added in v1.6.0

func (c CommentItem) String() string

type CommentMediaItem added in v1.6.0

type CommentMediaItem struct {
	Type    *string       `json:"type,omitempty"`
	Movie   *Movie        `json:"movie,omitempty"`
	Show    *Show         `json:"show,omitempty"`
	Season  *Season       `json:"season,omitempty"`
	Episode *Episode      `json:"episode,omitempty"`
	List    *PersonalList `json:"list,omitempty"`
}

CommentMediaItem represents JSON comment media item object

func (CommentMediaItem) String added in v1.6.0

func (c CommentMediaItem) String() string

type CommentUserLike added in v1.6.0

type CommentUserLike struct {
	LikedAt *Timestamp   `json:"liked_at,omitempty"`
	User    *UserProfile `json:"user,omitempty"`
}

CommentUserLike represents JSON user comment like object

func (CommentUserLike) String added in v1.6.0

func (c CommentUserLike) String() string

type Comments added in v1.14.0

type Comments struct {
	LikedAt   *Timestamp `json:"liked_at,omitempty"`
	BlockedAt *Timestamp `json:"blocked_at,omitempty"`
}

Comments represents JSON sesons object

func (Comments) String added in v1.14.0

func (c Comments) String() string

type Connections added in v1.5.0

type Connections struct {
	Facebook  *bool `json:"facebook,omitempty"`
	Twitter   *bool `json:"twitter,omitempty"`
	Mastodon  *bool `json:"mastodon,omitempty"`
	Google    *bool `json:"google,omitempty"`
	Tumblr    *bool `json:"tumblr,omitempty"`
	Medium    *bool `json:"medium,omitempty"`
	Slack     *bool `json:"slack,omitempty"`
	Apple     *bool `json:"apple,omitempty"`
	Dropbox   *bool `json:"dropbox,omitempty"`
	Microsoft *bool `json:"microsoft,omitempty"`
}

Connections represents JSON connections object

func (Connections) String added in v1.5.0

func (c Connections) String() string

type Country added in v1.7.0

type Country struct {
	Name *string `json:"name,omitempty"`
	Code *string `json:"code,omitempty"`
}

Country represents JSON country object

func (Country) String added in v1.7.0

func (c Country) String() string

type Crew

type Crew struct {
	Production       *[]Job `json:"production,omitempty"`
	Art              *[]Job `json:"art,omitempty"`
	Crew             *[]Job `json:"crew,omitempty"`
	Sound            *[]Job `json:"sound,omitempty"`
	CostumeAndMakeup *[]Job `json:"costume & make-up,omitempty"`
	Writing          *[]Job `json:"writing,omitempty"`
	Editing          *[]Job `json:"editing,omitempty"`
	VisualEffects    *[]Job `json:"visual effects,omitempty"`
	Camera           *[]Job `json:"camera,omitempty"`
	Directing        *[]Job `json:"directing,omitempty"`
	Lighting         *[]Job `json:"lighting,omitempty"`
}

Crew represents JSON crew object

func (Crew) String

func (c Crew) String() string

type CurrentDeviceToken

type CurrentDeviceToken struct {
	RefreshToken *string `json:"refresh_token"`
	ClientID     *string `json:"client_id"`
	ClientSecret *string `json:"client_secret"`
	RedirectURI  *string `json:"redirect_uri"`
	GrantType    *string `json:"grant_type"`
}

CurrentDeviceToken represents JSON current device token object

type DeviceCode

type DeviceCode struct {
	DeviceCode      string `json:"device_code"`
	UserCode        string `json:"user_code"`
	VerificationURL string `json:"verification_url"`
	ExpiresIn       int    `json:"expires_in"`
	Interval        int    `json:"interval"`
}

DeviceCode represents JSON response for /device/code

type DeviceToken

type DeviceToken struct {
	AccessToken  *string `json:"access_token"`
	TokenType    *string `json:"token_type"`
	ExpiresIn    *int64  `json:"expires_in"`
	RefreshToken *string `json:"refresh_token"`
	Scope        *string `json:"scope"`
	CreatedAt    *int64  `json:"created_at"`
}

DeviceToken represents JSON response for /device/token

func (*DeviceToken) ToToken added in v1.11.0

func (d *DeviceToken) ToToken() *Token

ToToken convert device_token to token

type Episode

type Episode struct {
	Season                *int       `json:"season,omitempty"`
	Number                *int       `json:"number,omitempty"`
	Plays                 *int       `json:"plays,omitempty"`
	Title                 *string    `json:"title,omitempty"`
	IDs                   *IDs       `json:"ids,omitempty"`
	Notes                 *string    `json:"notes,omitempty"`
	NumberAbs             *int       `json:"number_abs,omitempty"`
	Overview              *string    `json:"overview,omitempty"`
	Rating                *float32   `json:"rating,omitempty"`
	Votes                 *int       `json:"votes,omitempty"`
	CommentCount          *int       `json:"comment_count,omitempty"`
	FirstAired            *Timestamp `json:"first_aired,omitempty"`
	LastWatchedAt         *Timestamp `json:"last_watched_at,omitempty"`
	WatchedAt             *Timestamp `json:"watched_at,omitempty"`
	RatedAt               *Timestamp `json:"rated_at,omitempty"`
	UpdatedAt             *Timestamp `json:"updated_at,omitempty"`
	CompletedAt           *Timestamp `json:"completed_at,omitempty"`
	CollectedAt           *Timestamp `json:"collected_at,omitempty"`
	HiddenAt              *Timestamp `json:"hidden_at,omitempty"`
	Metadata              *Metadata  `json:"metadata,omitempty"`
	AvailableTranslations *[]string  `json:"available_translations,omitempty"`
	Runtime               *int       `json:"runtime,omitempty"`
	EpisodeType           *string    `json:"episode_type,omitempty"`
	Completed             *bool      `json:"completed,omitempty"`
	MediaType             *string    `json:"media_type,omitempty"`
	Resolution            *string    `json:"resolution,omitempty"`
	HDR                   *string    `json:"hdr,omitempty"`
	Audio                 *string    `json:"audio,omitempty"`
	AudioChannels         *string    `json:"audio_channels,omitempty"`
	ThreeD                *bool      `json:"3d,omitempty"`
}

Episode represents JSON response for media object

func (Episode) String

func (e Episode) String() string

func (*Episode) UpdateCollectedData added in v1.14.0

func (e *Episode) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type EpisodePeople added in v1.13.0

type EpisodePeople struct {
	Cast       *[]Character `json:"cast,omitempty"`
	GuestStars *[]Character `json:"guest_stars,omitempty"`
	Crew       *Crew        `json:"crew,omitempty"`
}

EpisodePeople represents JSON people connected with episode object

func (EpisodePeople) String added in v1.13.0

func (m EpisodePeople) String() string

type EpisodeRatings added in v1.13.0

type EpisodeRatings struct {
	Rating       *float32        `json:"rating,omitempty"`
	Votes        *int            `json:"votes,omitempty"`
	Distribution *map[string]int `json:"distribution,omitempty"`
}

EpisodeRatings represents JSON episode ratings object

func (EpisodeRatings) String added in v1.13.0

func (s EpisodeRatings) String() string

type EpisodeStats added in v1.13.0

type EpisodeStats struct {
	Watchers   *int `json:"watchers,omitempty"`
	Plays      *int `json:"plays,omitempty"`
	Collectors *int `json:"collectors,omitempty"`
	Comments   *int `json:"comments,omitempty"`
	Lists      *int `json:"lists,omitempty"`
	Votes      *int `json:"votes,omitempty"`
	Favorited  *int `json:"favorited,omitempty"`
}

EpisodeStats represents JSON episode stats object

func (EpisodeStats) String added in v1.13.0

func (s EpisodeStats) String() string

type Episodes added in v1.2.0

type Episodes struct {
	Plays         *int       `json:"plays,omitempty"`
	Watched       *int       `json:"watched,omitempty"`
	Minutes       *int       `json:"minutes,omitempty"`
	Collected     *int       `json:"collected,omitempty"`
	Ratings       *int       `json:"ratings,omitempty"`
	Comments      *int       `json:"comments,omitempty"`
	WatchedAt     *Timestamp `json:"watched_at,omitempty"`
	CollectedAt   *Timestamp `json:"collected_at,omitempty"`
	RatedAt       *Timestamp `json:"rated_at,omitempty"`
	WatchlistedAt *Timestamp `json:"watchlisted_at,omitempty"`
	FavoritedAt   *Timestamp `json:"favorited_at,omitempty"`
	CommentedAt   *Timestamp `json:"commented_at,omitempty"`
	PausedAt      *Timestamp `json:"paused_at,omitempty"`
}

Episodes represents JSON episodes object

func (Episodes) String added in v1.2.0

func (e Episodes) String() string

type ErrorResponse

type ErrorResponse struct {
	Response *http.Response `json:"-"`                 // HTTP response that caused this error
	Message  string         `json:"message,omitempty"` // error message
	Errors   *Errors        `json:"errors,omitempty"`  // errors object

}

ErrorResponse represents reponse with message

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

func (ErrorResponse) String added in v1.6.0

func (r ErrorResponse) String() string

type Errors added in v1.6.0

type Errors struct {
	Comment *[]string `json:"comment,omitempty"`
}

Errors represents JSON response for errors object

func (*Errors) GetComments added in v1.6.0

func (e *Errors) GetComments() error

GetComments returns a joined string of errors for the Comment field or nil if empty

func (Errors) String added in v1.6.0

func (e Errors) String() string

type ExportlistItem

type ExportlistItem struct {
	Title           *string      `json:"title,omitempty"`
	Year            *int         `json:"year,omitempty"`
	Rank            *int         `json:"rank,omitempty"`
	Rating          *int         `json:"rating,omitempty"`
	ID              *int64       `json:"id,omitempty"`
	IDs             *IDs         `json:"ids,omitempty"`
	WatchedAt       *Timestamp   `json:"watched_at,omitempty"`
	ListedAt        *Timestamp   `json:"listed_at,omitempty"`
	CollectedAt     *Timestamp   `json:"collected_at,omitempty"`
	LastCollectedAt *Timestamp   `json:"last_collected_at,omitempty"`
	UpdatedAt       *Timestamp   `json:"updated_at,omitempty"`
	LastUpdatedAt   *Timestamp   `json:"last_updated_at,omitempty"`
	RatedAt         *Timestamp   `json:"rated_at,omitempty"`
	HiddenAt        *Timestamp   `json:"hidden_at,omitempty"`
	Notes           *string      `json:"notes,omitempty"`
	Type            *string      `json:"type,omitempty"`
	Movie           *Movie       `json:"movie,omitempty"`
	Show            *Show        `json:"show,omitempty"`
	Season          *Season      `json:"season,omitempty"`
	Seasons         *[]Season    `json:"seasons,omitempty"`
	Episode         *Episode     `json:"episode,omitempty"`
	Person          *Person      `json:"person,omitempty"`
	User            *UserProfile `json:"user,omitempty"`
	Metadata        *Metadata    `json:"metadata,omitempty"`
	MediaType       *string      `json:"media_type,omitempty"`
	Resolution      *string      `json:"resolution,omitempty"`
	Hdr             *string      `json:"hdr,omitempty"`
	Audio           *string      `json:"audio,omitempty"`
	AudioChannels   *string      `json:"audio_channels,omitempty"`
	ThreeD          *bool        `json:"3d,omitempty"`
}

ExportlistItem represents JSON for list item

func (ExportlistItem) GetTime

func (i ExportlistItem) GetTime() *Timestamp

GetTime return Timestamp from item

func (ExportlistItem) String

func (i ExportlistItem) String() string

func (*ExportlistItem) UpdateCollectedData added in v1.14.0

func (i *ExportlistItem) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type ExportlistItemJSON

type ExportlistItemJSON struct {
	Title           *string    `json:"title,omitempty"`
	Trakt           *int64     `json:"trakt,omitempty"`
	Imdb            *string    `json:"imdb,omitempty"`
	Tmdb            *int       `json:"tmdb,omitempty"`
	Tvdb            *int       `json:"tvdb,omitempty"`
	WatchedAt       *Timestamp `json:"watched_at,omitempty"`
	ListedAt        *Timestamp `json:"listed_at,omitempty"`
	CollectedAt     *Timestamp `json:"collected_at,omitempty"`
	LastCollectedAt *Timestamp `json:"last_collected_at,omitempty"`
	UpdatedAt       *Timestamp `json:"updated_at,omitempty"`
	LastUpdatedAt   *Timestamp `json:"last_updated_at,omitempty"`
	Movie           *Movie     `json:"movie,omitempty"`
	Show            *Show      `json:"show,omitempty"`
	Season          *Season    `json:"season,omitempty"`
	Episode         *Episode   `json:"episode,omitempty"`
	Year            *int       `json:"year,omitempty"`
	Metadata        *Metadata  `json:"metadata,omitempty"`
}

ExportlistItemJSON represents JSON for list item

func (ExportlistItemJSON) String

func (i ExportlistItemJSON) String() string

func (*ExportlistItemJSON) Uptime added in v1.0.5

func (i *ExportlistItemJSON) Uptime(options *Options, data *ExportlistItem)

Uptime update item time fields

type FavoriteItem added in v1.14.0

type FavoriteItem struct {
	Notes *string `json:"notes,omitempty"`
}

FavoriteItem represents JSON favorite item object

func (FavoriteItem) String added in v1.14.0

func (f FavoriteItem) String() string

type FavoritedMovie added in v1.8.0

type FavoritedMovie struct {
	UserCount *int   `json:"user_count,omitempty"`
	Movie     *Movie `json:"movie,omitempty"`
}

FavoritedMovie represents JSON favorited movie object

func (FavoritedMovie) String added in v1.8.0

func (m FavoritedMovie) String() string

type Favorites added in v1.5.0

type Favorites struct {
	ItemCount *int       `json:"item_count,omitempty"`
	UpdatedAt *Timestamp `json:"updated_at,omitempty"`
}

Favorites represents JSON favorites object

func (Favorites) String added in v1.5.0

func (f Favorites) String() string

type FollowRequest added in v1.15.0

type FollowRequest struct {
	ID          *int64       `json:"id,omitempty"`
	RequestedAt *Timestamp   `json:"requested_at,omitempty"`
	FollowedAt  *Timestamp   `json:"followed_at,omitempty"`
	User        *UserProfile `json:"user,omitempty"`
}

FollowRequest represents JSON follow request object

func (FollowRequest) String added in v1.15.0

func (f FollowRequest) String() string

type FollowResult added in v1.15.0

type FollowResult struct {
	ApprovedAt *Timestamp   `json:"approved_at,omitempty"`
	User       *UserProfile `json:"user,omitempty"`
}

FollowResult represents JSON follow result object

func (FollowResult) String added in v1.15.0

func (f FollowResult) String() string

type Follower added in v1.15.0

type Follower struct {
	FollowedAt *Timestamp   `json:"followed_at,omitempty"`
	User       *UserProfile `json:"user,omitempty"`
}

Follower represents JSON follower object

func (Follower) String added in v1.15.0

func (f Follower) String() string

type Friend added in v1.15.0

type Friend struct {
	FriendsAt *Timestamp   `json:"friends_at,omitempty"`
	User      *UserProfile `json:"user,omitempty"`
}

Friend represents JSON friend object

func (Friend) String added in v1.15.0

func (f Friend) String() string

type Genre added in v1.7.0

type Genre struct {
	Name *string `json:"name,omitempty"`
	Slug *string `json:"slug,omitempty"`
}

Genre represents JSON slug object

func (Genre) String added in v1.7.0

func (g Genre) String() string

type HiddenItem added in v1.15.0

type HiddenItem struct {
	HiddenAt *Timestamp `json:"hidden_at,omitempty"`
	Type     *string    `json:"type,omitempty"`
	Movie    *Movie     `json:"movie,omitempty"`
	Season   *Season    `json:"season,omitempty"`
	Episode  *Episode   `json:"episode,omitempty"`
	Show     *Show      `json:"show,omitempty"`
	List     *List      `json:"list,omitempty"`
	Comment  *Comment   `json:"comment,omitempty"`
}

HiddenItem represents JSON hidden item object

func (HiddenItem) String added in v1.15.0

func (h HiddenItem) String() string

type HistoryItems added in v1.14.0

type HistoryItems struct {
	Movies   *[]Movie       `json:"movies,omitempty"`
	Shows    *[]Show        `json:"shows,omitempty"`
	Seasons  *[]Season      `json:"seasons,omitempty"`
	Episodes *[]Episode     `json:"episodes,omitempty"`
	Users    *[]UserProfile `json:"users,omitempty"`
	People   *[]Person      `json:"people,omitempty"`
}

HistoryItems represents JSON list object

func (HistoryItems) String added in v1.14.0

func (h HistoryItems) String() string

type HistoryListItem

type HistoryListItem struct {
	ID        *int64     `json:"id,omitempty"`
	WatchedAt *Timestamp `json:"watched_at,omitempty"`
	Action    *string    `json:"action,omitempty"`
	Type      *string    `json:"type,omitempty"`
	Movie     *Movie     `json:"movie,omitempty"`
	Episode   *Episode   `json:"episode,omitempty"`
	Show      *Show      `json:"show,omitempty"`
}

HistoryListItem represents JSON list object

func (HistoryListItem) String

func (h HistoryListItem) String() string

type IDs

type IDs struct {
	Trakt  *int64  `json:"trakt,omitempty"`
	Slug   *string `json:"slug,omitempty"`
	Imdb   *string `json:"imdb,omitempty"`
	Tmdb   *int    `json:"tmdb,omitempty"`
	Tvdb   *int    `json:"tvdb,omitempty"`
	Tvrage *string `json:"tvrage,omitempty"`
}

IDs represents JSON ids object with ids of object from other services

func (*IDs) HaveID

func (i *IDs) HaveID(key string) bool

HaveID checks if id for key exists in object

type Images

type Images struct {
	Avatar *Avatar `json:"avatar,omitempty"`
}

Images represents JSON images object

type ItemsList added in v1.14.0

type ItemsList struct {
	Movies   *[]ExportlistItem `json:"movies,omitempty"`
	Shows    *[]ExportlistItem `json:"shows,omitempty"`
	Seasons  *[]ExportlistItem `json:"seasons,omitempty"`
	Episodes *[]ExportlistItem `json:"episodes,omitempty"`
	Users    *[]ExportlistItem `json:"users,omitempty"`
	Lists    *[]PersonalList   `json:"lists,omitempty"`
	People   *[]ExportlistItem `json:"people,omitempty"`
	IDs      *[]int64          `json:"ids,omitempty"`
	List     *PersonalList     `json:"list,omitempty"`
}

ItemsList represents JSON items object

func (ItemsList) GetUniqIDs added in v1.14.0

func (ItemsList) GetUniqIDs(input *[]int64) *[]int64

GetUniqIDs returns a unique slice of ints.

func (ItemsList) GetUniqueOldest added in v1.14.0

func (ItemsList) GetUniqueOldest(items *[]ExportlistItem) *[]ExportlistItem

GetUniqueOldest returns a unique slice of Items, keeping the one with the oldest WatchedAt per ID.

func (ItemsList) String added in v1.14.0

func (i ItemsList) String() string

func (ItemsList) Uniq added in v1.14.0

func (i ItemsList) Uniq() *ItemsList

Uniq make lists unique with oldest elements

type ItemsToRemove added in v1.14.0

type ItemsToRemove struct {
	Movies   *[]Movie   `json:"movies,omitempty"`
	Shows    *[]Show    `json:"shows,omitempty"`
	Seasons  *[]Season  `json:"seasons,omitempty"`
	Episodes *[]Episode `json:"episodes,omitempty"`
	IDs      *[]int64   `json:"ids,omitempty"`
}

ItemsToRemove represents JSON items object

func (ItemsToRemove) String added in v1.14.0

func (i ItemsToRemove) String() string

type ItemsToReorder added in v1.14.0

type ItemsToReorder struct {
	Rank *[]int64 `json:"rank,omitempty"`
}

ItemsToReorder represents JSON items object

func (ItemsToReorder) String added in v1.14.0

func (i ItemsToReorder) String() string

type Job

type Job struct {
	Job          *string   `json:"job,omitempty"`
	Jobs         *[]string `json:"jobs,omitempty"`
	Person       *Person   `json:"person,omitempty"`
	EpisodeCount *int      `json:"episode_count,omitempty"`
	Show         *Show     `json:"show,omitempty"`
	Movie        *Movie    `json:"movie,omitempty"`
}

Job represents JSON crew member positions

func (Job) String

func (j Job) String() string

type Language added in v1.7.0

type Language struct {
	Name *string `json:"name,omitempty"`
	Code *string `json:"code,omitempty"`
}

Language represents JSON code object

func (Language) String added in v1.7.0

func (l Language) String() string

type Limits added in v1.5.0

type Limits struct {
	List       *List       `json:"list,omitempty"`
	Watchlist  *Watchlist  `json:"watchlist,omitempty"`
	Favorites  *Favorites  `json:"favorites,omitempty"`
	Search     *Search     `json:"search,omitempty"`
	Collection *Collection `json:"collection,omitempty"`
	Notes      *Notes      `json:"notes,omitempty"`
}

Limits represents JSON limits object

func (Limits) String added in v1.5.0

func (l Limits) String() string

type List added in v1.4.0

type List struct {
	Count        *int          `json:"count,omitempty"`
	ItemCount    *int          `json:"item_count,omitempty"`
	LikeCount    *int          `json:"like_count,omitempty"`
	CommentCount *int          `json:"comment_count,omitempty"`
	List         *PersonalList `json:"list,omitempty"`
}

List represents JSON list object

func (List) String added in v1.4.0

func (l List) String() string

type ListComment added in v1.4.0

type ListComment struct {
	ID        *int         `json:"id,omitempty"`
	ParentID  *int         `json:"parent_id,omitempty"`
	CreatedAt *Timestamp   `json:"created_at,omitempty"`
	UpdatedAt *Timestamp   `json:"updated_at,omitempty"`
	Comment   *string      `json:"comment,omitempty"`
	Spoiler   *bool        `json:"spoiler,omitempty"`
	Review    *bool        `json:"review,omitempty"`
	Replies   *int         `json:"replies,omitempty"`
	Likes     *int         `json:"likes,omitempty"`
	UserStats *UserStats   `json:"user_stats,omitempty"`
	User      *UserProfile `json:"user,omitempty"`
}

ListComment represents JSON list comment object

func (ListComment) String added in v1.4.0

func (l ListComment) String() string

type ListReport added in v1.15.0

type ListReport struct {
	Reason  *string `json:"reason,omitempty"`
	Message *string `json:"message,omitempty"`
}

ListReport represents JSON list report object

func (ListReport) String added in v1.15.0

func (l ListReport) String() string

type ListReportResult added in v1.15.0

type ListReportResult struct {
	Message *string `json:"message,omitempty"`
}

ListReportResult represents JSON list report result object

func (ListReportResult) String added in v1.15.0

func (l ListReportResult) String() string

type Lists added in v1.14.0

type Lists struct {
	LikedAt     *Timestamp `json:"liked_at,omitempty"`
	UpdatedAt   *Timestamp `json:"updated_at,omitempty"`
	CommentedAt *Timestamp `json:"commented_at,omitempty"`
}

Lists represents JSON lists object

func (Lists) String added in v1.14.0

func (l Lists) String() string

type Metadata

type Metadata struct {
	MediaType     *string `json:"media_type,omitempty"`
	Resolution    *string `json:"resolution,omitempty"`
	Hdr           *string `json:"hdr,omitempty"`
	Audio         *string `json:"audio,omitempty"`
	AudioChannels *string `json:"audio_channels,omitempty"`
	ThreeD        *bool   `json:"3d,omitempty"`
}

Metadata represents JSON media metadata object

func (Metadata) String

func (m Metadata) String() string

type Movie

type Movie struct {
	Title                 *string      `json:"title,omitempty"`
	Year                  *int         `json:"year,omitempty"`
	IDs                   *IDs         `json:"ids,omitempty"`
	Notes                 *string      `json:"note,omitempty"`
	Tagline               *string      `json:"tagline,omitempty"`
	Overview              *string      `json:"overview,omitempty"`
	Released              *string      `json:"released,omitempty"`
	Runtime               *int         `json:"runtime,omitempty"`
	Country               *string      `json:"country,omitempty"`
	Trailer               *string      `json:"trailer,omitempty"`
	Homepage              *string      `json:"homepage,omitempty"`
	Status                *string      `json:"status,omitempty"`
	Rating                *float32     `json:"rating,omitempty"`
	Votes                 *int         `json:"votes,omitempty"`
	CommentCount          *int         `json:"comment_count,omitempty"`
	UpdatedAt             *Timestamp   `json:"updated_at,omitempty"`
	CollectedAt           *Timestamp   `json:"collected_at,omitempty"`
	WatchedAt             *Timestamp   `json:"watched_at,omitempty"`
	RatedAt               *Timestamp   `json:"rated_at,omitempty"`
	HiddenAt              *Timestamp   `json:"hidden_at,omitempty"`
	Language              *string      `json:"language,omitempty"`
	Languages             *[]string    `json:"languages,omitempty"`
	AvailableTranslations *[]string    `json:"available_translations,omitempty"`
	Genres                *[]string    `json:"genres,omitempty"`
	Certification         *string      `json:"certification,omitempty"`
	User                  *UserProfile `json:"user,omitempty"`
	MediaType             *string      `json:"media_type,omitempty"`
	Resolution            *string      `json:"resolution,omitempty"`
	HDR                   *string      `json:"hdr,omitempty"`
	Audio                 *string      `json:"audio,omitempty"`
	AudioChannels         *string      `json:"audio_channels,omitempty"`
	ThreeD                *bool        `json:"3d,omitempty"`
}

Movie represents JSON movie object

func (Movie) String

func (m Movie) String() string

func (*Movie) UpdateCollectedData added in v1.14.0

func (m *Movie) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type MoviePeople added in v1.8.0

type MoviePeople struct {
	Cast *[]Character `json:"cast,omitempty"`
	Crew *Crew        `json:"crew,omitempty"`
}

MoviePeople represents JSON people connected with movie object

func (MoviePeople) String added in v1.8.0

func (m MoviePeople) String() string

type MovieRatings added in v1.8.0

type MovieRatings struct {
	Rating       *float32        `json:"rating,omitempty"`
	Votes        *int            `json:"votes,omitempty"`
	Distribution *map[string]int `json:"distribution,omitempty"`
}

MovieRatings represents JSON movie ratings object

func (MovieRatings) String added in v1.8.0

func (m MovieRatings) String() string

type MovieStats added in v1.8.0

type MovieStats struct {
	Watchers   *int `json:"watchers,omitempty"`
	Plays      *int `json:"plays,omitempty"`
	Collectors *int `json:"collectors,omitempty"`
	Comments   *int `json:"comments,omitempty"`
	Lists      *int `json:"lists,omitempty"`
	Votes      *int `json:"votes,omitempty"`
	Favorited  *int `json:"favorited,omitempty"`
}

MovieStats represents JSON movie stats object

func (MovieStats) String added in v1.8.0

func (m MovieStats) String() string

type Movies added in v1.2.0

type Movies struct {
	Watched       *int       `json:"watched,omitempty"`
	Collected     *int       `json:"collected,omitempty"`
	Plays         *int       `json:"plays,omitempty"`
	Minutes       *int       `json:"minutes,omitempty"`
	Ratings       *int       `json:"ratings,omitempty"`
	Comments      *int       `json:"comments,omitempty"`
	WatchedAt     *Timestamp `json:"watched_at,omitempty"`
	CollectedAt   *Timestamp `json:"collected_at,omitempty"`
	RatedAt       *Timestamp `json:"rated_at,omitempty"`
	WatchlistedAt *Timestamp `json:"watchlisted_at,omitempty"`
	FavoritedAt   *Timestamp `json:"favorited_at,omitempty"`
	CommentedAt   *Timestamp `json:"commented_at,omitempty"`
	PausedAt      *Timestamp `json:"paused_at,omitempty"`
	HiddenAt      *Timestamp `json:"hidden_at,omitempty"`
}

Movies represents JSON movies object

func (Movies) String added in v1.2.0

func (m Movies) String() string

type MoviesItem added in v1.8.0

type MoviesItem struct {
	UpdatedAt      *Timestamp `json:"updated_at,omitempty"`
	Revenue        *int       `json:"revenue,omitempty"`
	UserCount      *int       `json:"user_count,omitempty"`
	WatcherCount   *int       `json:"watcher_count,omitempty"`
	PlayCount      *int       `json:"play_count,omitempty"`
	CollectedCount *int       `json:"collected_count,omitempty"`
	ListCount      *int       `json:"list_count,omitempty"`
	Movie          *Movie     `json:"movie,omitempty"`
}

MoviesItem represents JSON movies item object

func (MoviesItem) String added in v1.8.0

func (m MoviesItem) String() string

type Network added in v1.2.0

type Network struct {
	Friends   *int `json:"friends,omitempty"`
	Followers *int `json:"followers,omitempty"`
	Following *int `json:"following,omitempty"`
}

Network represents JSON network object

func (Network) String added in v1.2.0

func (n Network) String() string

type NewDeviceCode

type NewDeviceCode struct {
	ClientID *string `json:"client_id"`
}

NewDeviceCode represents request new device code payload.

func (NewDeviceCode) String

func (d NewDeviceCode) String() string

type NewDeviceToken

type NewDeviceToken struct {
	Code         *string `json:"code"`
	ClientID     *string `json:"client_id"`
	ClientSecret *string `json:"client_secret"`
}

NewDeviceToken represents JSON when request for new token with code

type Notes added in v1.5.0

type Notes struct {
	ID         *int         `json:"id,omitempty"`
	Notes      *string      `json:"notes,omitempty"`
	Privacy    *string      `json:"privacy,omitempty"`
	ItemCount  *int         `json:"item_count,omitempty"`
	Spoiler    *bool        `json:"spoiler,omitempty"`
	CreatedAt  *Timestamp   `json:"created_at,omitempty"`
	UpdatedAt  *Timestamp   `json:"updated_at,omitempty"`
	User       *UserProfile `json:"user,omitempty"`
	Movie      *Movie       `json:"movie,omitempty"`
	Show       *Show        `json:"show,omitempty"`
	Season     *Season      `json:"season,omitempty"`
	Episode    *Episode     `json:"episode,omitempty"`
	Person     *Person      `json:"person,omitempty"`
	AttachedTo *AttachedTo  `json:"attached_to,omitempty"`
}

Notes represents JSON notes object

func (Notes) String added in v1.5.0

func (n Notes) String() string

type NotesItem added in v1.9.0

type NotesItem struct {
	AttachedTo *AttachedTo `json:"attached_to,omitempty"`
	Type       *string     `json:"type,omitempty"`
	Movie      *Movie      `json:"movie,omitempty"`
	Show       *Show       `json:"show,omitempty"`
	Season     *Season     `json:"season,omitempty"`
	Episode    *Episode    `json:"episode,omitempty"`
	Person     *Person     `json:"person,omitempty"`
	Note       *Notes      `json:"note,omitempty"`
}

NotesItem represents JSON notes attached item object

func (NotesItem) String added in v1.9.0

func (n NotesItem) String() string

type Options

type Options struct {
	Action            string
	Items             string
	Comment           string
	CommentID         int
	CommentType       string
	CommentsSort      string
	CountSpecials     string
	Country           string
	Days              int
	Delete            bool
	Deny              bool
	Description       string
	Episode           int
	EpisodeAbs        int
	EpisodeCode       string
	ExtendedInfo      string
	FullHour          bool
	FollowerRequest   int
	Format            string
	Headers           map[string]any
	Hidden            string
	Hide              bool
	ID                string
	IgnoreCollected   string
	IgnoreWatchlisted string
	IncludeReplies    string
	InternalID        string
	Item              string
	Language          string
	List              string
	ListItemID        int
	ItemID            int
	Module            string
	Msg               string
	Notes             string
	Output            string
	PagesLimit        int
	PerPage           int
	Period            string
	Privacy           string
	DisplayNumbers    bool
	AllowComments     bool
	Progress          float64
	Query             string
	Remove            bool
	Reply             string
	Reason            string
	ResetAt           string
	Rating            SliceInt
	SearchField       Slice
	SearchIDType      string
	SearchType        Slice
	Season            int
	Section           string
	Sort              string
	SortBy            string
	SortHow           string
	Specials          string
	Spoiler           bool
	StartDate         string
	EndDate           string
	Time              string
	Token             Token
	TraktID           int
	PlaybackID        int
	Translations      Slice
	Type              string
	Timezone          string
	UserName          string
	UserSettings      UserSettings
	Verbose           bool
	Version           bool
}

Options represents a app opions.

type OutputEpisode added in v1.14.0

type OutputEpisode struct {
	Title     *string    `json:"title,omitempty"`
	Rating    *int       `json:"rating,omitempty"`
	Year      *int       `json:"year,omitempty"`
	IDs       *IDs       `json:"ids,omitempty"`
	WatchedAt *Timestamp `json:"watched_at,omitempty"`
	RatedAt   *Timestamp `json:"rated_at,omitempty"`
}

OutputEpisode represents JSON episode object used in deduplication

func (OutputEpisode) String added in v1.14.0

func (o OutputEpisode) String() string

type OutputMovie added in v1.14.0

type OutputMovie struct {
	Title     *string    `json:"title,omitempty"`
	Rating    *int       `json:"rating,omitempty"`
	Year      *int       `json:"year,omitempty"`
	IDs       *IDs       `json:"ids,omitempty"`
	WatchedAt *Timestamp `json:"watched_at,omitempty"`
	RatedAt   *Timestamp `json:"rated_at,omitempty"`
}

OutputMovie represents JSON movie object used in deduplication

func (OutputMovie) String added in v1.14.0

func (o OutputMovie) String() string

type OutputSeason added in v1.14.0

type OutputSeason struct {
	Title     *string    `json:"title,omitempty"`
	Rating    *int       `json:"rating,omitempty"`
	Year      *int       `json:"year,omitempty"`
	IDs       *IDs       `json:"ids,omitempty"`
	WatchedAt *Timestamp `json:"watched_at,omitempty"`
	RatedAt   *Timestamp `json:"rated_at,omitempty"`
}

OutputSeason represents JSON season object used in deduplication

func (OutputSeason) String added in v1.14.0

func (o OutputSeason) String() string

type OutputShow added in v1.14.0

type OutputShow struct {
	Title     *string    `json:"title,omitempty"`
	Rating    *int       `json:"rating,omitempty"`
	Year      *int       `json:"year,omitempty"`
	IDs       *IDs       `json:"ids,omitempty"`
	Seasons   *[]Season  `json:"seasons,omitempty"`
	WatchedAt *Timestamp `json:"watched_at,omitempty"`
	RatedAt   *Timestamp `json:"rated_at,omitempty"`
}

OutputShow represents JSON show object used in deduplication

func (OutputShow) String added in v1.14.0

func (o OutputShow) String() string

type Person

type Person struct {
	Name               *string    `json:"name,omitempty"`
	IDs                *IDs       `json:"ids,omitempty"`
	SocialIDs          *SocialIDs `json:"social_ids,omitempty"`
	Biography          *string    `json:"biography,omitempty"`
	Birthday           *string    `json:"birthday,omitempty"`
	Death              *string    `json:"death,omitempty"`
	Birthplace         *string    `json:"birthplace,omitempty"`
	Homepage           *string    `json:"homepage,omitempty"`
	Gender             *string    `json:"gender,omitempty"`
	KnownForDepartment *string    `json:"known_for_department,omitempty"`
	UpdatedAt          *Timestamp `json:"updated_at,omitempty"`
	CollectedAt        *Timestamp `json:"collected_at,omitempty"`
	HiddenAt           *Timestamp `json:"hidden_at,omitempty"`
}

Person represents JSON person object

func (Person) String

func (p Person) String() string

func (*Person) UpdateCollectedData added in v1.15.0

func (p *Person) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type PersonItem

type PersonItem struct {
	UpdatedAt *Timestamp `json:"updated_at,omitempty"`
	Person    *Person    `json:"person,omitempty"`
}

PersonItem represents JSON person object

func (PersonItem) String

func (p PersonItem) String() string

type PersonMovies

type PersonMovies struct {
	Cast *[]Character `json:"cast,omitempty"`
	Crew *Crew        `json:"crew,omitempty"`
}

PersonMovies represents JSON person movies object

func (PersonMovies) String

func (p PersonMovies) String() string

type PersonShows

type PersonShows struct {
	Cast *[]Character `json:"cast,omitempty"`
	Crew *Crew        `json:"crew,omitempty"`
}

PersonShows represents JSON cast and crew object for person

func (PersonShows) String

func (p PersonShows) String() string

type PersonalList

type PersonalList struct {
	Name           *string      `json:"name,omitempty"`
	Description    *string      `json:"description,omitempty"`
	Privacy        *string      `json:"privacy,omitempty"`
	ShareLink      *string      `json:"share_link,omitempty"`
	Type           *string      `json:"type,omitempty"`
	DisplayNumbers *bool        `json:"display_strings,omitempty"`
	AllowComments  *bool        `json:"allow_comments,omitempty"`
	SortBy         *string      `json:"sort_by,omitempty"`
	SortHow        *string      `json:"sort_how,omitempty"`
	CreatedAt      *Timestamp   `json:"created_at,omitempty"`
	UpdatedAt      *Timestamp   `json:"updated_at,omitempty"`
	ItemCount      *int         `json:"item_count,omitempty"`
	CommentCount   *int         `json:"comment_count,omitempty"`
	Likes          *int         `json:"likes,omitempty"`
	IDs            *IDs         `json:"ids,omitempty"`
	User           *UserProfile `json:"user,omitempty"`
}

PersonalList represents JSON personal list object

func (PersonalList) String

func (p PersonalList) String() string

type PersonalListItem added in v1.15.0

type PersonalListItem struct {
	Notes *string `json:"notes,omitempty"`
}

PersonalListItem represents JSON list item object

func (PersonalListItem) String added in v1.15.0

func (p PersonalListItem) String() string

type PlaybackProgress added in v1.14.0

type PlaybackProgress struct {
	Progress *float32   `json:"aired,omitempty"`
	PausedAt *Timestamp `json:"paused_at,omitempty"`
	ID       *int64     `json:"id,omitempty"`
	Type     *string    `json:"type,omitempty"`
	Episode  *Episode   `json:"episode,omitempty"`
	Show     *Show      `json:"show,omitempty"`
	Movie    *Movie     `json:"movie,omitempty"`
}

PlaybackProgress represents JSON playback_progress object

func (PlaybackProgress) String added in v1.14.0

func (s PlaybackProgress) String() string

type Podcast

type Podcast struct {
	Title *string `json:"title,omitempty"`
	Year  *int    `json:"year,omitempty"`
	IDs   *IDs    `json:"ids,omitempty"`
}

Podcast represents JSON podcast object

func (Podcast) String

func (p Podcast) String() string

type PodcastEpisode

type PodcastEpisode struct {
	Season *int    `json:"season,omitempty"`
	Number *int    `json:"number,omitempty"`
	Title  *string `json:"title,omitempty"`
	IDs    *IDs    `json:"ids,omitempty"`
}

PodcastEpisode represents JSON podcast episode object

func (PodcastEpisode) String

func (p PodcastEpisode) String() string

type Rate

type Rate struct {
	// The time at which the current rate limit will reset.
	Reset Timestamp `json:"reset"`
	// The number of requests per hour the client is currently limited to.
	Limit int `json:"limit"`
	// The number of remaining requests the client can make this hour.
	Remaining int `json:"remaining"`
}

Rate represents the rate limit for the current client.

func (Rate) String

func (r Rate) String() string

type RatingItems added in v1.14.0

type RatingItems struct {
	Movies   *[]Movie   `json:"movies,omitempty"`
	Shows    *[]Show    `json:"shows,omitempty"`
	Seasons  *[]Season  `json:"seasons,omitempty"`
	Episodes *[]Episode `json:"episodes,omitempty"`
}

RatingItems represents JSON list object

func (RatingItems) String added in v1.14.0

func (r RatingItems) String() string

type RatingListItem added in v1.14.0

type RatingListItem struct {
	ID      *int64     `json:"id,omitempty"`
	RatedAt *Timestamp `json:"rated_at,omitempty"`
	Rating  *int       `json:"rating,omitempty"`
	Type    *string    `json:"type,omitempty"`
	Movie   *Movie     `json:"movie,omitempty"`
	Episode *Episode   `json:"episode,omitempty"`
	Show    *Show      `json:"show,omitempty"`
	Season  *Season    `json:"season,omitempty"`
}

RatingListItem represents JSON list object

func (RatingListItem) String added in v1.14.0

func (r RatingListItem) String() string

type Ratings added in v1.2.0

type Ratings struct {
	Total        *int            `json:"total,omitempty"`
	Distribution *map[string]int `json:"distribution,omitempty"`
}

Ratings represents JSON ratings object

func (Ratings) String added in v1.2.0

func (r Ratings) String() string

type Recommendation added in v1.9.0

type Recommendation struct {
	Title         *string      `json:"title,omitempty"`
	Year          *int         `json:"year,omitempty"`
	IDs           *IDs         `json:"ids,omitempty"`
	FavoritedBy   *[]UserNotes `json:"favorited_by,omitempty"`
	RecommendedBy *[]UserNotes `json:"recommended_by,omitempty"`
}

Recommendation represents JSON recommendation object

func (Recommendation) String added in v1.9.0

func (r Recommendation) String() string

type Release added in v1.8.0

type Release struct {
	Country       *string    `json:"country,omitempty"`
	Certification *string    `json:"certification,omitempty"`
	ReleaseDate   *Timestamp `json:"release_date,omitempty"`
	ReleaseType   *string    `json:"release_type,omitempty"`
	Note          *string    `json:"note,omitempty"`
}

Release represents JSON release object

func (Release) String added in v1.8.0

func (r Release) String() string

type RemoveResult added in v1.14.0

type RemoveResult struct {
	Deleted  *ResultCounters `json:"deleted,omitempty"`
	NotFound *ResultNotFound `json:"not_found,omitempty"`
	List     *PersonalList   `json:"list,omitempty"`
}

RemoveResult represents JSON history remove result object

func (RemoveResult) String added in v1.14.0

func (h RemoveResult) String() string

type ReorderResults added in v1.14.0

type ReorderResults struct {
	Updated    *int          `json:"updated,omitempty"`
	SkippedIDs *[]int64      `json:"skipped_ids,omitempty"`
	List       *PersonalList `json:"list,omitempty"`
}

ReorderResults represents JSON items object

func (ReorderResults) String added in v1.14.0

func (r ReorderResults) String() string

type Response

type Response struct {
	*http.Response
	// Explicitly specify the Rate type so Rate's String() receiver doesn't
	// propagate to Response.
	Rate   Rate
	Errors *Errors
}

Response http object

type ResultCounters added in v1.14.0

type ResultCounters struct {
	Movies   *int `json:"movies,omitempty"`
	Episodes *int `json:"episodes,omitempty"`
	Shows    *int `json:"shows,omitempty"`
	Seasons  *int `json:"seasons,omitempty"`
}

ResultCounters represents JSON counters object

func (ResultCounters) String added in v1.14.0

func (c ResultCounters) String() string

type ResultNotFound added in v1.14.0

type ResultNotFound struct {
	Movies   *[]ExportlistItem `json:"movies,omitempty"`
	Shows    *[]Show           `json:"shows,omitempty"`
	Seasons  *[]Season         `json:"seasons,omitempty"`
	Episodes *[]Episodes       `json:"episodes,omitempty"`
}

ResultNotFound represents JSON not found object

func (ResultNotFound) String added in v1.14.0

func (c ResultNotFound) String() string

type SavedFilter added in v1.1.0

type SavedFilter struct {
	Rank      *int       `json:"rank,omitempty"`
	ID        *int64     `json:"id,omitempty"`
	Section   *string    `json:"section,omitempty"`
	Name      *string    `json:"name,omitempty"`
	Path      *string    `json:"path,omitempty"`
	Query     *string    `json:"query,omitempty"`
	UpdatedAt *Timestamp `json:"updated_at,omitempty"`
}

SavedFilter represents JSON filter object

func (SavedFilter) String added in v1.1.0

func (i SavedFilter) String() string

type Scrobble added in v1.9.0

type Scrobble struct {
	ID       *int     `json:"id,omitempty"`
	Action   *string  `json:"action,omitempty"`
	Progress *float64 `json:"progress,omitempty"`
	Sharing  *Sharing `json:"sharing,omitempty"`
	Movie    *Movie   `json:"movie,omitempty"`
	Episode  *Episode `json:"episode,omitempty"`
	Show     *Show    `json:"show,omitempty"`
}

Scrobble represents JSON scrobble object

func (Scrobble) String added in v1.9.0

func (s Scrobble) String() string
type Search struct {
	RecentCount *int `json:"recent_count,omitempty"`
}

Search represents JSON search object

func (Search) String added in v1.5.0

func (s Search) String() string

type SearchListItem

type SearchListItem struct {
	Type           *string         `json:"type,omitempty"`
	Score          *float32        `json:"score,omitempty"`
	Movie          *Movie          `json:"movie,omitempty"`
	Show           *Show           `json:"show,omitempty"`
	Episode        *Episode        `json:"episode,omitempty"`
	Person         *Person         `json:"person,omitempty"`
	List           *PersonalList   `json:"list,omitempty"`
	PodcastEpisode *PodcastEpisode `json:"podcast_episode,omitempty"`
	Podcast        *Podcast        `json:"podcast,omitempty"`
}

SearchListItem represents JSON search response object

func (SearchListItem) String

func (i SearchListItem) String() string

type Season

type Season struct {
	Number        *int       `json:"number,omitempty"`
	Aired         *int       `json:"aired,omitempty"`
	Completed     *int       `json:"completed,omitempty"`
	Title         *string    `json:"title,omitempty"`
	OriginalTitle *string    `json:"original_title,omitempty"`
	IDs           *IDs       `json:"ids,omitempty"`
	Notes         *string    `json:"notes,omitempty"`
	Rating        *float32   `json:"rating,omitempty"`
	Votes         *int       `json:"votes,omitempty"`
	EpisodeCount  *int       `json:"episode_count,omitempty"`
	Episodes      *[]Episode `json:"episodes,omitempty"`
	AiredEpisodes *int       `json:"aired_episodes,omitempty"`
	Overview      *string    `json:"overview,omitempty"`
	FirstAired    *Timestamp `json:"first_aired,omitempty"`
	CollectedAt   *Timestamp `json:"collected_at,omitempty"`
	UpdatedAt     *Timestamp `json:"updated_at,omitempty"`
	WatchedAt     *Timestamp `json:"watched_at,omitempty"`
	RatedAt       *Timestamp `json:"rated_at,omitempty"`
	HiddenAt      *Timestamp `json:"hidden_at,omitempty"`
	Network       *string    `json:"network,omitempty"`
	MediaType     *string    `json:"media_type,omitempty"`
	Resolution    *string    `json:"resolution,omitempty"`
	HDR           *string    `json:"hdr,omitempty"`
	Audio         *string    `json:"audio,omitempty"`
	AudioChannels *string    `json:"audio_channels,omitempty"`
	ThreeD        *bool      `json:"3d,omitempty"`
}

Season represents JSON season object

func (Season) String

func (s Season) String() string

func (*Season) UpdateCollectedData added in v1.14.0

func (s *Season) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type SeasonPeople added in v1.12.0

type SeasonPeople struct {
	Cast       *[]Character `json:"cast,omitempty"`
	GuestStars *[]Character `json:"guest_stars,omitempty"`
	Crew       *Crew        `json:"crew,omitempty"`
}

SeasonPeople represents JSON people connected with season object

func (SeasonPeople) String added in v1.12.0

func (s SeasonPeople) String() string

type SeasonRatings added in v1.12.0

type SeasonRatings struct {
	Rating       *float32        `json:"rating,omitempty"`
	Votes        *int            `json:"votes,omitempty"`
	Distribution *map[string]int `json:"distribution,omitempty"`
}

SeasonRatings represents JSON season ratings object

func (SeasonRatings) String added in v1.12.0

func (s SeasonRatings) String() string

type SeasonStats added in v1.12.0

type SeasonStats struct {
	Watchers   *int `json:"watchers,omitempty"`
	Plays      *int `json:"plays,omitempty"`
	Collectors *int `json:"collectors,omitempty"`
	Comments   *int `json:"comments,omitempty"`
	Lists      *int `json:"lists,omitempty"`
	Votes      *int `json:"votes,omitempty"`
	Favorited  *int `json:"favorited,omitempty"`
}

SeasonStats represents JSON season stats object

func (SeasonStats) String added in v1.12.0

func (s SeasonStats) String() string

type Seasons added in v1.2.0

type Seasons struct {
	Ratings       *int       `json:"ratings,omitempty"`
	Comments      *int       `json:"comments,omitempty"`
	RatedAt       *Timestamp `json:"rated_at,omitempty"`
	WatchlistedAt *Timestamp `json:"watchlisted_at,omitempty"`
	CommentedAt   *Timestamp `json:"commented_at,omitempty"`
	HiddenAt      *Timestamp `json:"hidden_at,omitempty"`
}

Seasons represents JSON sesons object

func (Seasons) String added in v1.2.0

func (s Seasons) String() string

type Sharing added in v1.5.0

type Sharing struct {
	Twitter  *bool `json:"twitter,omitempty"`
	Mastodon *bool `json:"mastodon,omitempty"`
	Tumblr   *bool `json:"tumblr,omitempty"`
}

Sharing represents JSON sharing object

func (Sharing) String added in v1.5.0

func (s Sharing) String() string

type SharingText added in v1.5.0

type SharingText struct {
	Watching *string `json:"watching,omitempty"`
	Watched  *string `json:"watched,omitempty"`
	Rated    *string `json:"rated,omitempty"`
}

SharingText represents JSON sharing text object

func (SharingText) String added in v1.5.0

func (s SharingText) String() string

type Show

type Show struct {
	Title                 *string    `json:"title,omitempty"`
	Year                  *int       `json:"year,omitempty"`
	IDs                   *IDs       `json:"ids,omitempty"`
	Notes                 *string    `json:"notes,omitempty"`
	Tagline               *string    `json:"tagline,omitempty"`
	Overview              *string    `json:"overview,omitempty"`
	FirstAired            *Timestamp `json:"first_aired,omitempty"`
	Airs                  *Air       `json:"airs,omitempty"`
	Runtime               *int       `json:"runtime,omitempty"`
	Certification         *string    `json:"certification,omitempty"`
	Network               *string    `json:"network,omitempty"`
	Country               *string    `json:"country,omitempty"`
	Trailer               *string    `json:"trailer,omitempty"`
	Homepage              *string    `json:"homepage,omitempty"`
	Status                *string    `json:"status,omitempty"`
	Rating                *float32   `json:"rating,omitempty"`
	Votes                 *int       `json:"votes,omitempty"`
	CommentCount          *int       `json:"comment_count,omitempty"`
	UpdatedAt             *Timestamp `json:"updated_at,omitempty"`
	CollectedAt           *Timestamp `json:"collected_at,omitempty"`
	RatedAt               *Timestamp `json:"rated_at,omitempty"`
	HiddenAt              *Timestamp `json:"hidden_at,omitempty"`
	Language              *string    `json:"language,omitempty"`
	Languages             *[]string  `json:"languages,omitempty"`
	AvailableTranslations *[]string  `json:"available_translations,omitempty"`
	Genres                *[]string  `json:"genres,omitempty"`
	Seasons               *[]Season  `json:"seasons,omitempty"`
	AiredEpisodes         *int       `json:"aired_episodes,omitempty"`
	MediaType             *string    `json:"media_type,omitempty"`
	Resolution            *string    `json:"resolution,omitempty"`
	HDR                   *string    `json:"hdr,omitempty"`
	Audio                 *string    `json:"audio,omitempty"`
	AudioChannels         *string    `json:"audio_channels,omitempty"`
	ThreeD                *bool      `json:"3d,omitempty"`
}

Show represents JSON show object

func (Show) String

func (s Show) String() string

func (*Show) UpdateCollectedData added in v1.14.0

func (s *Show) UpdateCollectedData(item *ExportlistItem)

UpdateCollectedData update meta data of object

type ShowPeople added in v1.10.0

type ShowPeople struct {
	Cast       *[]Character `json:"cast,omitempty"`
	GuestStars *[]Character `json:"guest_stars,omitempty"`
	Crew       *Crew        `json:"crew,omitempty"`
}

ShowPeople represents JSON people connected with show object

func (ShowPeople) String added in v1.10.0

func (s ShowPeople) String() string

type ShowRatings added in v1.10.0

type ShowRatings struct {
	Rating       *float32        `json:"rating,omitempty"`
	Votes        *int            `json:"votes,omitempty"`
	Distribution *map[string]int `json:"distribution,omitempty"`
}

ShowRatings represents JSON show ratings object

func (ShowRatings) String added in v1.10.0

func (s ShowRatings) String() string

type ShowStats added in v1.10.0

type ShowStats struct {
	Watchers   *int `json:"watchers,omitempty"`
	Plays      *int `json:"plays,omitempty"`
	Collectors *int `json:"collectors,omitempty"`
	Comments   *int `json:"comments,omitempty"`
	Lists      *int `json:"lists,omitempty"`
	Votes      *int `json:"votes,omitempty"`
	Favorited  *int `json:"favorited,omitempty"`
}

ShowStats represents JSON show stats object

func (ShowStats) String added in v1.10.0

func (s ShowStats) String() string

type Shows added in v1.2.0

type Shows struct {
	Watched       *int       `json:"watched,omitempty"`
	Collected     *int       `json:"collected,omitempty"`
	Ratings       *int       `json:"ratings,omitempty"`
	Comments      *int       `json:"comments,omitempty"`
	RatedAt       *Timestamp `json:"rated_at,omitempty"`
	WatchlistedAt *Timestamp `json:"watchlisted_at,omitempty"`
	FavoritedAt   *Timestamp `json:"favorited_at,omitempty"`
	CommentedAt   *Timestamp `json:"commented_at,omitempty"`
	HiddenAt      *Timestamp `json:"hidden_at,omitempty"`
	DroppedAt     *Timestamp `json:"dropped_at,omitempty"`
}

Shows represents JSON shows object

func (Shows) String added in v1.2.0

func (s Shows) String() string

type ShowsItem added in v1.10.0

type ShowsItem struct {
	UpdatedAt      *Timestamp `json:"updated_at,omitempty"`
	Watchers       *int       `json:"watchers,omitempty"`
	Revenue        *int       `json:"revenue,omitempty"`
	UserCount      *int       `json:"user_count,omitempty"`
	WatcherCount   *int       `json:"watcher_count,omitempty"`
	PlayCount      *int       `json:"play_count,omitempty"`
	CollectedCount *int       `json:"collected_count,omitempty"`
	CollectorCount *int       `json:"collector_count,omitempty"`
	ListCount      *int       `json:"list_count,omitempty"`
	Show           *Show      `json:"show,omitempty"`
}

ShowsItem represents JSON movies item object

func (ShowsItem) String added in v1.10.0

func (m ShowsItem) String() string

type Slice

type Slice []string

Slice as a slice of strings

func (*Slice) Set

func (i *Slice) Set(value string) error

Set add element to slice

func (*Slice) String

func (i *Slice) String() string

Get string value of slice

type SliceInt added in v1.14.0

type SliceInt []int

SliceInt as a slice of ints

func (*SliceInt) Set added in v1.14.0

func (i *SliceInt) Set(value int) error

Set add element to slice

func (*SliceInt) String added in v1.14.0

func (i *SliceInt) String() string

Get string value of slice

type SocialIDs

type SocialIDs struct {
	Twitter   *string `json:"twitter,omitempty"`
	Facebook  *string `json:"facebook,omitempty"`
	Instagram *string `json:"instagram,omitempty"`
	Wikipedia *string `json:"wikipedia,omitempty"`
}

SocialIDs represents JSON object with social media handlers

func (SocialIDs) String

func (s SocialIDs) String() string

type Studio added in v1.8.0

type Studio struct {
	Name    *string `json:"name,omitempty"`
	Country *string `json:"country,omitempty"`
	IDs     *IDs    `json:"ids,omitempty"`
}

Studio represents JSON studio object

func (Studio) String added in v1.8.0

func (s Studio) String() string

type Timestamp

type Timestamp struct {
	time.Time
}

Timestamp object

func (Timestamp) MarshalJSON added in v1.8.0

func (t Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON marshal json object to string

func (Timestamp) String

func (t Timestamp) String() string

func (Timestamp) UTC added in v1.14.0

func (t Timestamp) UTC() *Timestamp

UTC returns a copy of Timestamp with time converted to UTC.

func (*Timestamp) UnmarshalJSON added in v1.8.0

func (t *Timestamp) UnmarshalJSON(b []byte) error

UnmarshalJSON supports both date and datetime formats

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
	ExpiresIn    int64  `json:"expires_in"`
	CreatedAt    int64  `json:"created_at"`
}

Token represents JSON token object

func (*Token) ExpirationPoint

func (t *Token) ExpirationPoint() time.Time

ExpirationPoint return point in time with nanosecond precision for token

func (*Token) Expired

func (t *Token) Expired() bool

Expired check if token is expired

func (*Token) ExpiritySeconds

func (t *Token) ExpiritySeconds() int

ExpiritySeconds return number of seconds to token expire

type TokenInterface

type TokenInterface interface {
	Expired() bool
	ExpiritySeconds() int
	ExpirationPoint() time.Time
	Import(t DeviceToken) Token
}

TokenInterface methods for tokens

type Translation added in v1.8.0

type Translation struct {
	Title    *string `json:"title,omitempty"`
	Overview *string `json:"overview,omitempty"`
	Tagline  *string `json:"tagline,omitempty"`
	Language *string `json:"language,omitempty"`
	Country  *string `json:"country,omitempty"`
}

Translation represents JSON Translation object

func (Translation) String added in v1.8.0

func (t Translation) String() string

type TvNetwork added in v1.9.0

type TvNetwork struct {
	Name    *string `json:"name,omitempty"`
	Country *string `json:"country,omitempty"`
	IDs     *IDs    `json:"ids,omitempty"`
}

TvNetwork represents JSON tv network object

func (TvNetwork) String added in v1.9.0

func (t TvNetwork) String() string

type UserAccount added in v1.5.0

type UserAccount struct {
	Timezone   *string `json:"timezone,omitempty"`
	DateFormat *string `json:"date_format,omitempty"`
	Time24HR   *bool   `json:"time_24hr,omitempty"`
	CoverImage *string `json:"cover_image,omitempty"`
}

UserAccount represents JSON user account object

func (UserAccount) String added in v1.5.0

func (u UserAccount) String() string

type UserBlocked added in v1.15.0

type UserBlocked struct {
	BlockedAt *Timestamp   `json:"blocked_at,omitempty"`
	User      *UserProfile `json:"user,omitempty"`
}

UserBlocked represents JSON user blocked object

func (UserBlocked) String added in v1.15.0

func (u UserBlocked) String() string

type UserLastActivities added in v1.14.0

type UserLastActivities struct {
	All          *Timestamp   `json:"all,omitempty"`
	Movies       *Movies      `json:"movies,omitempty"`
	Episodes     *Episodes    `json:"episodes,omitempty"`
	Shows        *Shows       `json:"shows,omitempty"`
	Seasons      *Seasons     `json:"seasons,omitempty"`
	Comments     *Comments    `json:"comments,omitempty"`
	Lists        *Lists       `json:"lists,omitempty"`
	Watchlist    *Watchlist   `json:"watchlist,omitempty"`
	Favorites    *Favorites   `json:"favorites,omitempty"`
	Account      *Account     `json:"account,omitempty"`
	SavedFilters *SavedFilter `json:"saved_filters,omitempty"`
	Notes        *Notes       `json:"notes,omitempty"`
	Connections  *Connections `json:"connections,omitempty"`
	SharingText  *SharingText `json:"sharing_text,omitempty"`
	Limits       *Limits      `json:"limits,omitempty"`
}

UserLastActivities represents JSON user activities object

func (UserLastActivities) String added in v1.14.0

func (u UserLastActivities) String() string

type UserLike added in v1.4.0

type UserLike struct {
	LikedAt     *Timestamp    `json:"liked_at,omitempty"`
	Type        *string       `json:"type,omitempty"`
	List        *PersonalList `json:"list,omitempty"`
	CommentType *string       `json:"comment_type,omitempty"`
	Comment     *Comment      `json:"comment,omitempty"`
	Movie       *Movie        `json:"movie,omitempty"`
	Season      *Season       `json:"season,omitempty"`
	Show        *Show         `json:"show,omitempty"`
	User        *UserProfile  `json:"user,omitempty"`
}

UserLike represents JSON user like object

func (UserLike) String added in v1.4.0

func (u UserLike) String() string

type UserListItem

type UserListItem struct {
	Rank     *int       `json:"rank,omitempty"`
	ID       *int       `json:"id,omitempty"`
	ListedAt *Timestamp `json:"listed_at,omitempty"`
	Notes    *string    `json:"notes,omitempty"`
	Type     *string    `json:"type,omitempty"`
	Movie    *Movie     `json:"movie,omitempty"`
	Show     *Show      `json:"show,omitempty"`
	Season   *Season    `json:"season,omitempty"`
	Episode  *Episode   `json:"episode,omitempty"`
	Person   *Person    `json:"person,omitempty"`
}

UserListItem represents JSON user personal list item object

func (UserListItem) String

func (i UserListItem) String() string

type UserNotes added in v1.9.0

type UserNotes struct {
	User  *UserProfile `json:"user,omitempty"`
	Notes *string      `json:"notes,omitempty"`
}

UserNotes represents JSON user notes object

func (UserNotes) String added in v1.9.0

func (u UserNotes) String() string

type UserProfile

type UserProfile struct {
	Userame       *string    `json:"username,omitempty"`
	Private       *bool      `json:"private,omitempty"`
	Name          *string    `json:"name,omitempty"`
	Vip           *bool      `json:"vip,omitempty"`
	VipEp         *bool      `json:"vip_ep,omitempty"`
	IDs           *IDs       `json:"ids,omitempty"`
	JoinedAt      *Timestamp `json:"joined_at,omitempty"`
	HiddenAt      *Timestamp `json:"hidden_at,omitempty"`
	Location      *string    `json:"location,omitempty"`
	About         *string    `json:"about,omitempty"`
	Gender        *string    `json:"gender,omitempty"`
	Age           *int       `json:"age,omitempty"`
	Images        *Images    `json:"images,omitempty"`
	VipOg         *bool      `json:"vip_og,omitempty"`
	VipYears      *int       `json:"vip_years,omitempty"`
	VipCoverImage *string    `json:"vip_cover_image,omitempty"`
}

UserProfile represents JSON user profile object

func (UserProfile) String

func (u UserProfile) String() string

type UserReport added in v1.15.0

type UserReport struct {
	Reason  *string `json:"reason,omitempty"`
	Message *string `json:"message,omitempty"`
}

UserReport represents JSON user report object

func (UserReport) String added in v1.15.0

func (u UserReport) String() string

type UserReportResult added in v1.15.0

type UserReportResult struct {
	Message *string `json:"message,omitempty"`
}

UserReportResult represents JSON user report result object

func (UserReportResult) String added in v1.15.0

func (u UserReportResult) String() string

type UserSettings added in v1.5.0

type UserSettings struct {
	User        *UserProfile `json:"user,omitempty"`
	Account     *UserAccount `json:"account,omitempty"`
	Connections *Connections `json:"connections,omitempty"`
	SharingText *SharingText `json:"sharing_text,omitempty"`
	Limits      *Limits      `json:"limits,omitempty"`
}

UserSettings represents JSON user stats object

func (UserSettings) String added in v1.5.0

func (u UserSettings) String() string

type UserStats added in v1.2.0

type UserStats struct {
	Movies         *Movies   `json:"movies,omitempty"`
	Shows          *Shows    `json:"shows,omitempty"`
	Seasons        *Seasons  `json:"seasons,omitempty"`
	Episodes       *Episodes `json:"episodes,omitempty"`
	Network        *Network  `json:"network,omitempty"`
	Ratings        *Ratings  `json:"ratings,omitempty"`
	Rating         *int      `json:"rating,omitempty"`
	PlayCount      *int      `json:"play_count,omitempty"`
	CompletedCount *int      `json:"completed_count,omitempty"`
}

UserStats represents JSON user stats object

func (UserStats) String added in v1.2.0

func (u UserStats) String() string

type UserWatched added in v1.3.0

type UserWatched struct {
	Plays         *int       `json:"plays,omitempty"`
	LastWatchedAt *Timestamp `json:"last_watched_at,omitempty"`
	LastUpdatedAt *Timestamp `json:"last_updated_at,omitempty"`
	ResetAt       *Timestamp `json:"reset_at,omitempty"`
	Movie         *Movie     `json:"movie,omitempty"`
	Show          *Show      `json:"show,omitempty"`
	Episode       *Episode   `json:"episode,omitempty"`
	Seasons       *[]Season  `json:"seasons,omitempty"`
}

UserWatched represents JSON user watched object

func (UserWatched) String added in v1.3.0

func (u UserWatched) String() string

type ValidationErrors added in v1.6.0

type ValidationErrors struct {
	Errors *Errors `json:"errors,omitempty"` // errors object

}

ValidationErrors represents errors object

func (ValidationErrors) String added in v1.6.0

func (v ValidationErrors) String() string

type Video added in v1.8.0

type Video struct {
	Title       *string    `json:"title,omitempty"`
	URL         *string    `json:"url,omitempty"`
	Site        *string    `json:"site,omitempty"`
	Type        *string    `json:"type,omitempty"`
	Size        *int       `json:"size,omitempty"`
	Official    *bool      `json:"official,omitempty"`
	PublishedAt *Timestamp `json:"published_at,omitempty"`
	Country     *string    `json:"country,omitempty"`
	Language    *string    `json:"language,omitempty"`
}

Video represents JSON video object

func (Video) String added in v1.8.0

func (v Video) String() string

type WatchedProgress added in v1.10.0

type WatchedProgress struct {
	Aired         *int       `json:"aired,omitempty"`
	Completed     *int       `json:"completed,omitempty"`
	LastWatchedAt *Timestamp `json:"last_watched_at,omitempty"`
	ResetAt       *Timestamp `json:"reset_at,omitempty"`
	Seasons       []*Season  `json:"seasons,omitempty"`
	HiddenSeasons []*Season  `json:"hidden_seasons,omitempty"`
	NextEpisode   *Episode   `json:"next_episode,omitempty"`
	LastEpisode   *Episode   `json:"last_episode,omitempty"`
}

WatchedProgress represents JSON show_collection_progress object

func (WatchedProgress) String added in v1.10.0

func (w WatchedProgress) String() string

type WatchingResult added in v1.15.0

type WatchingResult struct {
	ExpiresAt *Timestamp `json:"expires_at,omitempty"`
	StartedAt *Timestamp `json:"started_at,omitempty"`
	Action    *string    `json:"action,omitempty"`
	Type      *string    `json:"type,omitempty"`
	Episode   *Episode   `json:"episode,omitempty"`
	Show      *Show      `json:"show,omitempty"`
	Movie     *Movie     `json:"movie,omitempty"`
}

WatchingResult represents JSON watching result object

func (WatchingResult) String added in v1.15.0

func (w WatchingResult) String() string

type Watchlist added in v1.5.0

type Watchlist struct {
	ItemCount *int       `json:"item_count,omitempty"`
	UpdatedAt *Timestamp `json:"updated_at,omitempty"`
}

Watchlist represents JSON watchlist object

func (Watchlist) String added in v1.5.0

func (w Watchlist) String() string

type WatchlistItem added in v1.14.0

type WatchlistItem struct {
	Notes *string `json:"notes,omitempty"`
}

WatchlistItem represents JSON watchlist object

func (WatchlistItem) String added in v1.14.0

func (w WatchlistItem) String() string

Source Files

Jump to

Keyboard shortcuts

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