This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues/pull-requests.
mumbledj/bot/playlist.go

37 lines
761 B
Go

/*
* MumbleDJ
* By Matthieu Grieger
* bot/playlist.go
* Copyright (c) 2016 Matthieu Grieger (MIT License)
*/
package bot
// Playlist stores all metadata related to a playlist of tracks.
type Playlist struct {
ID string
Title string
Submitter string
Service string
}
// GetID returns the ID of the playlist.
func (p *Playlist) GetID() string {
return p.ID
}
// GetTitle returns the title of the playlist.
func (p *Playlist) GetTitle() string {
return p.Title
}
// GetSubmitter returns the submitter of the playlist.
func (p *Playlist) GetSubmitter() string {
return p.Submitter
}
// GetService returns the name of the service from which the playlist was retrieved from.
func (p *Playlist) GetService() string {
return p.Service
}