model

package
v0.0.0-...-e1ec090 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Album

type Album struct {
	ID     int      `json:"id"`
	Name   string   `json:"name"`
	Artist *Artist  `json:"artist"`
	Tracks []*Track `json:"tracks"`
}

type AlbumCount

type AlbumCount struct {
	Album     *Album `json:"album"`
	Playcount int    `json:"playcount"`
}

type AlbumInput

type AlbumInput struct {
	Artist *ArtistInput `json:"artist"`
	Name   *string      `json:"name"`
}

func (AlbumInput) SafeGetArtistName

func (li AlbumInput) SafeGetArtistName() *string

SafeGetArtistName returns the artist name or nil

type AlbumPlaysSettings

type AlbumPlaysSettings struct {
	PageInput *PageInput  `json:"pageInput"`
	Album     *AlbumInput `json:"album"`
	Sort      *string     `json:"sort"`
}

type AlbumTopTracksResponse

type AlbumTopTracksResponse struct {
	Album     *Album                 `json:"album"`
	TopTracks []*AmbiguousTrackCount `json:"topTracks"`
}

type AmbiguousTrack

type AmbiguousTrack struct {
	Name   string   `json:"name"`
	Artist string   `json:"artist"`
	Albums []*Album `json:"albums"`
}

type AmbiguousTrackCount

type AmbiguousTrackCount struct {
	Name      string `json:"name"`
	Playcount int    `json:"playcount"`
}

type Artist

type Artist struct {
	ID   int      `json:"id"`
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type ArtistCount

type ArtistCount struct {
	Artist    *Artist `json:"artist"`
	Playcount int     `json:"playcount"`
	User      *User   `json:"user"`
}

type ArtistInput

type ArtistInput struct {
	Name *string `json:"name"`
}

type ArtistPlaysSettings

type ArtistPlaysSettings struct {
	PageInput *PageInput   `json:"pageInput"`
	Artist    *ArtistInput `json:"artist"`
	Sort      *string      `json:"sort"`
}

type ArtistRankResponse

type ArtistRankResponse struct {
	Artist    *Artist      `json:"artist"`
	Rank      int          `json:"rank"`
	Playcount int          `json:"playcount"`
	Listeners int          `json:"listeners"`
	Above     *ArtistCount `json:"above"`
	Below     *ArtistCount `json:"below"`
}

type ArtistSearchCriteria

type ArtistSearchCriteria struct {
	Keywords *string `json:"keywords"`
}

type ArtistSearchResult

type ArtistSearchResult struct {
	ArtistID        int    `json:"artistID"`
	ArtistName      string `json:"artistName"`
	ListenerCount   int    `json:"listenerCount"`
	GlobalPlaycount int    `json:"globalPlaycount"`
}

type ArtistSearchResults

type ArtistSearchResults struct {
	Artists []*ArtistSearchResult `json:"artists"`
}

type ArtistTopAlbumsResponse

type ArtistTopAlbumsResponse struct {
	Artist    *Artist       `json:"artist"`
	TopAlbums []*AlbumCount `json:"topAlbums"`
}

type ArtistTopTracksResponse

type ArtistTopTracksResponse struct {
	Artist    *Artist                `json:"artist"`
	TopTracks []*AmbiguousTrackCount `json:"topTracks"`
}

type GuildMember

type GuildMember struct {
	UserID  int    `json:"userID"`
	GuildID string `json:"guildID"`
	User    *User  `json:"user"`
}

type PageInfo

type PageInfo struct {
	RecordCount int `json:"recordCount"`
}

type PageInput

type PageInput struct {
	Limit  *int `json:"limit"`
	Offset *int `json:"offset"`
}

type Play

type Play struct {
	ID          int    `json:"id"`
	ScrobbledAt int    `json:"scrobbledAt"`
	User        *User  `json:"user"`
	Track       *Track `json:"track"`
}

type PlaysInput

type PlaysInput struct {
	User      *UserInput  `json:"user"`
	Track     *TrackInput `json:"track"`
	Sort      *string     `json:"sort"`
	Timerange *Timerange  `json:"timerange"`
}

type PlaysResponse

type PlaysResponse struct {
	Plays    []*Play   `json:"plays"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type Privacy

type Privacy string
const (
	PrivacyPrivate    Privacy = "PRIVATE"
	PrivacyDiscord    Privacy = "DISCORD"
	PrivacyFmusername Privacy = "FMUSERNAME"
	PrivacyBoth       Privacy = "BOTH"
	PrivacyUnset      Privacy = "UNSET"
)

func (Privacy) IsValid

func (e Privacy) IsValid() bool

func (Privacy) MarshalGQL

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

func (Privacy) String

func (e Privacy) String() string

func (*Privacy) UnmarshalGQL

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

type RateYourMusicAlbum

type RateYourMusicAlbum struct {
	RateYourMusicID  string  `json:"rateYourMusicID"`
	Title            string  `json:"title"`
	ReleaseYear      *int    `json:"releaseYear"`
	ArtistName       string  `json:"artistName"`
	ArtistNativeName *string `json:"artistNativeName"`
}

type RateYourMusicArtist

type RateYourMusicArtist struct {
	ArtistName       string  `json:"artistName"`
	ArtistNativeName *string `json:"artistNativeName"`
}

type Rating

type Rating struct {
	RateYourMusicAlbum *RateYourMusicAlbum `json:"rateYourMusicAlbum"`
	Rating             int                 `json:"rating"`
}

type RatingsResponse

type RatingsResponse struct {
	Ratings  []*Rating `json:"ratings"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type RatingsSettings

type RatingsSettings struct {
	User      *UserInput  `json:"user"`
	Album     *AlbumInput `json:"album"`
	PageInput *PageInput  `json:"pageInput"`
	Rating    *int        `json:"rating"`
}

type SearchSettings

type SearchSettings struct {
	Exact *bool      `json:"exact"`
	User  *UserInput `json:"user"`
}

type Tag

type Tag struct {
	Name        string `json:"name"`
	Occurrences int    `json:"occurrences"`
}

type TagInput

type TagInput struct {
	Name *string `json:"name"`
}

type TagsResponse

type TagsResponse struct {
	Tags     []*Tag    `json:"tags"`
	PageInfo *PageInfo `json:"pageInfo"`
}

type TagsSettings

type TagsSettings struct {
	Artists   []*ArtistInput `json:"artists"`
	Keyword   *string        `json:"keyword"`
	PageInput *PageInput     `json:"pageInput"`
}

type TaskStartResponse

type TaskStartResponse struct {
	TaskName string `json:"taskName"`
	Success  bool   `json:"success"`
	Token    string `json:"token"`
}

type Timerange

type Timerange struct {
	From *meta.Date `json:"from"`
	To   *meta.Date `json:"to"`
}

type Track

type Track struct {
	ID     int     `json:"id"`
	Name   string  `json:"name"`
	Artist *Artist `json:"artist"`
	Album  *Album  `json:"album"`
}

type TrackCount

type TrackCount struct {
	Track     *Track `json:"track"`
	Playcount int    `json:"playcount"`
}

type TrackInput

type TrackInput struct {
	Artist *ArtistInput `json:"artist"`
	Album  *AlbumInput  `json:"album"`
	Name   *string      `json:"name"`
}

func (TrackInput) SafeGetAlbumName

func (ti TrackInput) SafeGetAlbumName() *string

SafeGetAlbumName returns the artist name or nil

func (TrackInput) SafeGetArtistName

func (ti TrackInput) SafeGetArtistName() *string

SafeGetArtistName returns the artist name or nil

type TrackPlaysSettings

type TrackPlaysSettings struct {
	PageInput *PageInput  `json:"pageInput"`
	Track     *TrackInput `json:"track"`
	Sort      *string     `json:"sort"`
}

type TrackTopAlbumsResponse

type TrackTopAlbumsResponse struct {
	Track     *AmbiguousTrack `json:"track"`
	TopAlbums []*TrackCount   `json:"topAlbums"`
}

type User

type User struct {
	ID        int      `json:"id"`
	Username  string   `json:"username"`
	DiscordID string   `json:"discordID"`
	Privacy   *Privacy `json:"privacy"`
}

type UserInput

type UserInput struct {
	DiscordID      *string `json:"discordID"`
	LastFMUsername *string `json:"lastFMUsername"`
}

type WhoFirstArtistResponse

type WhoFirstArtistResponse struct {
	Rows    []*WhoFirstRow `json:"rows"`
	Undated []*WhoFirstRow `json:"undated"`
	Artist  *Artist        `json:"artist"`
}

type WhoFirstRow

type WhoFirstRow struct {
	User        *User `json:"user"`
	ScrobbledAt int   `json:"scrobbledAt"`
}

type WhoKnowsAlbumResponse

type WhoKnowsAlbumResponse struct {
	Rows  []*WhoKnowsRow `json:"rows"`
	Album *Album         `json:"album"`
}

type WhoKnowsArtistResponse

type WhoKnowsArtistResponse struct {
	Rows   []*WhoKnowsRow `json:"rows"`
	Artist *Artist        `json:"artist"`
}

type WhoKnowsRow

type WhoKnowsRow struct {
	User      *User `json:"user"`
	Playcount int   `json:"playcount"`
}

type WhoKnowsSettings

type WhoKnowsSettings struct {
	GuildID *string  `json:"guildID"`
	Limit   *int     `json:"limit"`
	UserIDs []string `json:"userIDs"`
}

type WhoKnowsTrackResponse

type WhoKnowsTrackResponse struct {
	Rows  []*WhoKnowsRow  `json:"rows"`
	Track *AmbiguousTrack `json:"track"`
}

Jump to

Keyboard shortcuts

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