C# Class mobSocial.WebApi.Controllers.SongController

Inheritance: mobSocial.WebApi.Configuration.Mvc.RootApiController
Afficher le fichier Open project: mobsoftware/mobsocial

Méthodes publiques

Méthode Description
Index ( int id ) : IHttpActionResult
PageNotFound ( ) : ActionResult
RemoteSong ( string RemoteEntityId ) : ActionResult

Imports a new song from remote api if it doesn't exist in our database

ShareSong ( int TrackId, string RemoteTrackId = "" ) : ActionResult
SharedSongs ( ) : ActionResult

The shared songs page for user's profile

SongController ( ILocalizationService localizationService, IPictureService pictureService, ICustomerService customerService, IDateTimeHelper dateTimeHelper, CustomerSettings customerSettings, MediaSettings mediaSettings, IArtistPageService artistPageService, IArtistPageAPIService artistPageApiService, ISongService songService, IMusicService musicService, mobSocialSettings mobSocialSettings, IMobSocialService mobSocialService, IWorkContext workContext, IMobSocialMessageService mobsocialMessageService, ISharedSongService sharedSongService, IStoreContext storeContext, IProductService productService, IDownloadService downloadService, IPriceFormatter priceFormatter ) : System

Private Methods

Méthode Description
CanDelete ( Song Song ) : bool
CanEdit ( Song Song ) : bool
DeleteSong ( int SongId ) : ActionResult
GetReceivedSongs ( int Count = 15, int Page = 1 ) : ActionResult
GetSharedSongs ( int Count = 15, int Page = 1 ) : ActionResult
GetSimilarSongs ( string RemoteTrackId, int Count = 5 ) : ActionResult
GetSongPreviewUrl ( string TrackId, int SongId ) : ActionResult
SaveRemoteSongToDB ( string songJson ) : Song
SaveSong ( SongModel model ) : ActionResult
Search ( string Term, int Count = 15, int Page = 1, bool SearchDescriptions = false, bool SearchArtists = false, string ArtistName = "" ) : ActionResult
ShareSong ( int TrackId, int CustomerIds, string Message = "", string RemoteTrackId = "" ) : ActionResult
SongEditor ( int ArtistPageId ) : ActionResult
UpdateSongData ( FormCollection Parameters ) : ActionResult
UploadPicture ( int SongId, IEnumerable file ) : ActionResult
UploadSongFile ( int SongId, string FieldName, System.Web.HttpPostedFileBase File ) : ActionResult

Method Details

Index() public méthode

public Index ( int id ) : IHttpActionResult
id int
Résultat IHttpActionResult

PageNotFound() public méthode

public PageNotFound ( ) : ActionResult
Résultat ActionResult

RemoteSong() public méthode

Imports a new song from remote api if it doesn't exist in our database
public RemoteSong ( string RemoteEntityId ) : ActionResult
RemoteEntityId string
Résultat ActionResult

ShareSong() public méthode

public ShareSong ( int TrackId, string RemoteTrackId = "" ) : ActionResult
TrackId int
RemoteTrackId string
Résultat ActionResult

SharedSongs() public méthode

The shared songs page for user's profile
public SharedSongs ( ) : ActionResult
Résultat ActionResult

SongController() public méthode

public SongController ( ILocalizationService localizationService, IPictureService pictureService, ICustomerService customerService, IDateTimeHelper dateTimeHelper, CustomerSettings customerSettings, MediaSettings mediaSettings, IArtistPageService artistPageService, IArtistPageAPIService artistPageApiService, ISongService songService, IMusicService musicService, mobSocialSettings mobSocialSettings, IMobSocialService mobSocialService, IWorkContext workContext, IMobSocialMessageService mobsocialMessageService, ISharedSongService sharedSongService, IStoreContext storeContext, IProductService productService, IDownloadService downloadService, IPriceFormatter priceFormatter ) : System
localizationService ILocalizationService
pictureService IPictureService
customerService ICustomerService
dateTimeHelper IDateTimeHelper
customerSettings CustomerSettings
mediaSettings mobSocial.Data.Entity.Settings.MediaSettings
artistPageService IArtistPageService
artistPageApiService IArtistPageAPIService
songService ISongService
musicService IMusicService
mobSocialSettings mobSocialSettings
mobSocialService IMobSocialService
workContext IWorkContext
mobsocialMessageService IMobSocialMessageService
sharedSongService ISharedSongService
storeContext IStoreContext
productService IProductService
downloadService IDownloadService
priceFormatter IPriceFormatter
Résultat System