PlaylistUseCase

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlaylistUseCase

func NewPlaylistUseCase(playlistAgent domain.PlaylistAgent, artistAgent domain.ArtistAgent, trackAgent domain.TrackAgent) *playlistUseCase

Types

type PlaylistUseCase

type PlaylistUseCase interface {
	GetAllOfCurrentUser(userId int64) ([]*playlistProto.PlaylistDataTransfer, error)
	GetAll(userId int64) ([]*playlistProto.PlaylistDataTransfer, error)
	GetLastIdOfCurrentUser(userId int64) (int64, error)
	GetLastId() (int64, error)
	Create(userId int64, playlist *playlistProto.Playlist) error
	Update(userId int64, playlist *playlistProto.Playlist) error
	Delete(userId int64, playlistId int64) error
	GetByIdOfCurrentUser(userId int64, playlistId int64) (*playlistProto.PlaylistDataTransfer, error)
	GetById(playlistId int64, userId int64) (*playlistProto.PlaylistDataTransfer, error)
	GetSizeOfCurrentUser(userId int64) (int64, error)
	GetSize() (int64, error)
	AddToPlaylist(userId int64, playlistId int64, trackId int64) error
	RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error
}

Jump to

Keyboard shortcuts

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