listeningSession

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(baseRouterGroup *gin.RouterGroup)

Types

type ChangeFallbackPlaylistRequest

type ChangeFallbackPlaylistRequest struct {
	AuthenticatedRequest
	NewFallbackPlaylistId string `json:"new_fallback_playlist_id"`
}

func (ChangeFallbackPlaylistRequest) Validate

func (r ChangeFallbackPlaylistRequest) Validate() *SpotifeteError

type DeleteRequestFromQueueRequest

type DeleteRequestFromQueueRequest struct {
	AuthenticatedRequest
	SpotifyTrackId string `json:"spotify_track_id""`
}

func (DeleteRequestFromQueueRequest) Validate

func (r DeleteRequestFromQueueRequest) Validate() *SpotifeteError

type GetSessionQueueResponse

type GetSessionQueueResponse struct {
	CurrentlyPlayingRequest *model.SongRequest  `json:"currently_playing"`
	UpNextRequest           *model.SongRequest  `json:"up_next"`
	Queue                   []model.SongRequest `json:"queue"`
}

type NewSessionRequest

type NewSessionRequest struct {
	AuthenticatedRequest
	ListeningSessionTitle string `json:"listening_session_title"`
}

func (NewSessionRequest) Validate

func (r NewSessionRequest) Validate() *SpotifeteError

type QueueLastUpdatedResponse

type QueueLastUpdatedResponse struct {
	QueueLastUpdated time.Time `json:"queue_last_updated"`
}

type RequestTrackRequest

type RequestTrackRequest struct {
	TrackId string `json:"track_id"`
}

func (RequestTrackRequest) Validate

func (r RequestTrackRequest) Validate() *SpotifeteError

type SearchPlaylistResponse

type SearchPlaylistResponse struct {
	Query     string                   `json:"query"`
	Playlists []model.PlaylistMetadata `json:"playlists"`
}

type SearchTracksResponse

type SearchTracksResponse struct {
	Query  string                `json:"query"`
	Tracks []model.TrackMetadata `json:"tracks"`
}

type SetFallbackPlaylistShuffleRequest added in v0.2.0

type SetFallbackPlaylistShuffleRequest struct {
	AuthenticatedRequest
	Shuffle bool `json:"shuffle"`
}

Jump to

Keyboard shortcuts

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