C# Класс mobSocial.WebApi.Controllers.SongController

Наследование: mobSocial.WebApi.Configuration.Mvc.RootApiController
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Index() публичный Метод

public Index ( int id ) : IHttpActionResult
id int
Результат IHttpActionResult

PageNotFound() публичный Метод

public PageNotFound ( ) : ActionResult
Результат ActionResult

RemoteSong() публичный Метод

Imports a new song from remote api if it doesn't exist in our database
public RemoteSong ( string RemoteEntityId ) : ActionResult
RemoteEntityId string
Результат ActionResult

ShareSong() публичный Метод

public ShareSong ( int TrackId, string RemoteTrackId = "" ) : ActionResult
TrackId int
RemoteTrackId string
Результат ActionResult

SharedSongs() публичный Метод

The shared songs page for user's profile
public SharedSongs ( ) : ActionResult
Результат ActionResult

SongController() публичный Метод

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
Результат System