C# Class mobSocial.WebApi.Controllers.SongController

Inheritance: mobSocial.WebApi.Configuration.Mvc.RootApiController
Mostra file Open project: mobsoftware/mobsocial

Public Methods

Method 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

Method 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 method

public Index ( int id ) : IHttpActionResult
id int
return IHttpActionResult

PageNotFound() public method

public PageNotFound ( ) : ActionResult
return ActionResult

RemoteSong() public method

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

ShareSong() public method

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

SharedSongs() public method

The shared songs page for user's profile
public SharedSongs ( ) : ActionResult
return ActionResult

SongController() public method

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
return System