本文整理汇总了C#中WebSortField类的典型用法代码示例。如果您正苦于以下问题:C# WebSortField类的具体用法?C# WebSortField怎么用?C# WebSortField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WebSortField类属于命名空间,在下文中一共展示了WebSortField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetRadioGroupsByRange
public IList<WebChannelGroup> GetRadioGroupsByRange(int start, int end, string filter = null, WebSortField? sort = WebSortField.User, WebSortOrder? order = WebSortOrder.Asc)
{
return RadioChannelGroup.ListAll().Select(chg => chg.ToWebChannelGroup()).Filter(filter).SortGroupList(sort, order).TakeRange(start, end).ToList();
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:4,代码来源:TVAccessService.cs
示例2: GetTVShowActorsByRange
public IList<WebActor> GetTVShowActorsByRange(int? provider, int start, int end, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return TVShowLibraries[provider].GetAllTVShowsBasic().AsQueryable().SelectMany(x => x.Actors).Distinct().Filter(filter).SortMediaItemList(sort, order, WebSortField.Title).TakeRange(start, end).Finalize(provider, ProviderType.TVShow);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例3: GetTVShowsBasic
public IList<WebTVShowBasic> GetTVShowsBasic(int? provider, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return TVShowLibraries[provider].GetAllTVShowsBasic().AsQueryable().Filter(filter).SortMediaItemList(sort, order).Finalize(provider, ProviderType.TVShow);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例4: GetTVEpisodesBasicForTVShow
public IList<WebTVEpisodeBasic> GetTVEpisodesBasicForTVShow(int? provider, string id, WebSortField? sort = WebSortField.TVEpisodeNumber, WebSortOrder? order = WebSortOrder.Asc)
{
return TVShowLibraries[provider].GetAllEpisodesBasic().AsQueryable().Where(p => p.ShowId == id).SortMediaItemList(sort, order, WebSortField.TVEpisodeNumber).Finalize(provider, ProviderType.TVShow);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例5: GetTVEpisodesDetailedForTVShowByRange
public IList<WebTVEpisodeDetailed> GetTVEpisodesDetailedForTVShowByRange(int? provider, string id, int start, int end, WebSortField? sort = WebSortField.TVEpisodeNumber, WebSortOrder? order = WebSortOrder.Asc)
{
return TVShowLibraries[provider].GetAllEpisodesDetailed().AsQueryable().Where(p => p.ShowId == id).SortMediaItemList(sort, order, WebSortField.TVEpisodeNumber).TakeRange(start, end - start).Finalize(provider, ProviderType.TVShow);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例6: GetPicturesDetailed
public IList<WebPictureDetailed> GetPicturesDetailed(int? provider, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return PictureLibraries[provider].GetAllPicturesDetailed().AsQueryable().SortMediaItemList(sort, order).Finalize(provider, ProviderType.Picture);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例7: GetPlaylistItemsByRange
public IList<WebPlaylistItem> GetPlaylistItemsByRange(int? provider, string playlistId, int start, int end, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return GetAllPlaylistItems(provider, playlistId).AsQueryable().TakeRange(start, end).Finalize(provider, ProviderType.Music);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例8: GetFileSystemFiles
public IList<WebFileBasic> GetFileSystemFiles(int? provider, string id, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return FileSystemLibraries[provider].GetFilesListing(id).AsQueryable().SortMediaItemList(sort, order).Finalize(provider, ProviderType.Filesystem).ToList();
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例9: GetFileSystemFilesAndFoldersByRange
public IList<WebFilesystemItem> GetFileSystemFilesAndFoldersByRange(int? provider, string id, int start, int end, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
var listA = FileSystemLibraries[provider].GetFilesListing(id).AsQueryable().Select(x => x.ToWebFilesystemItem());
var listB = FileSystemLibraries[provider].GetFoldersListing(id).AsQueryable().Select(x => x.ToWebFilesystemItem());
return listA.Concat(listB).SortMediaItemList(sort, order).TakeRange(start, end).Finalize(provider, ProviderType.Filesystem).ToList();
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:6,代码来源:MediaAccessService.cs
示例10: GetSchedulesByRange
public IList<WebScheduleBasic> GetSchedulesByRange(int start, int end, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return Schedule.ListAll().Select(s => s.ToWebSchedule()).Filter(filter).SortScheduleList(sort, order).TakeRange(start, end).ToList();
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:4,代码来源:TVAccessService.cs
示例11: GetRadioChannels
private IEnumerable<Channel> GetRadioChannels(int? groupId, WebSortField? sort, WebSortOrder? order)
{
return groupId == null ?
(IEnumerable<Channel>)Channel.ListAll().Where(ch => ch.IsRadio).OrderBy(ch => sort == WebSortField.User ? ch.SortOrder : 1, order) :
(IEnumerable<Channel>)_tvBusiness.GetRadioGuideChannelsForGroup(groupId.Value);
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:6,代码来源:TVAccessService.cs
示例12: GetScheduledRecordingsForToday
public IList<WebScheduledRecording> GetScheduledRecordingsForToday(string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return GetScheduledRecordingsForDate(DateTime.Today, filter, sort, order);
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:4,代码来源:TVAccessService.cs
示例13: GetScheduledRecordingsForDate
public IList<WebScheduledRecording> GetScheduledRecordingsForDate(DateTime date, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return Schedule.ListAll().Select(x => GetScheduledRecording(x, date)).Where(x => x != null).Filter(filter).SortScheduledRecordingList(sort, order).ToList();
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:4,代码来源:TVAccessService.cs
示例14: GetRecordingsByRange
public IList<WebRecordingBasic> GetRecordingsByRange(int start, int end, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return Recording.ListAll().Select(rec => rec.ToWebRecording()).Filter(filter).SortRecordingList(sort, order).TakeRange(start, end).ToList();
}
开发者ID:jpykie,项目名称:MPExtended,代码行数:4,代码来源:TVAccessService.cs
示例15: GetMusicTracksDetailed
public IList<WebMusicTrackDetailed> GetMusicTracksDetailed(int? provider, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return MusicLibraries[provider].GetAllTracksDetailed().AsQueryable().Filter(filter).SortMediaItemList(sort, order).Finalize(provider, ProviderType.Music);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例16: GetFileSystemFoldersByRange
public IList<WebFolderBasic> GetFileSystemFoldersByRange(int? provider, string id, int start, int end, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return FileSystemLibraries[provider].GetFoldersListing(id).AsQueryable().SortMediaItemList(sort, order).TakeRange(start, end).Finalize(provider, ProviderType.Filesystem).ToList();
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例17: GetMusicTracksDetailedForArtist
public IList<WebMusicTrackDetailed> GetMusicTracksDetailedForArtist(int? provider, string id, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return MusicLibraries[provider].GetAllTracksDetailed().AsQueryable().Where(p => p.ArtistId.Contains(id)).SortMediaItemList(sort, order).Finalize(provider, ProviderType.Music);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例18: GetMovieActors
public IList<WebActor> GetMovieActors(int? provider, string filter = null, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return MovieLibraries[provider].GetAllMovies().AsQueryable().SelectMany(x => x.Actors).Distinct().Filter(filter).SortMediaItemList(sort, order, WebSortField.Title).Finalize(provider, ProviderType.Movie);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例19: GetPlaylistItems
public IList<Interfaces.Playlist.WebPlaylistItem> GetPlaylistItems(int? provider, string playlistId, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return PlaylistLibraries[provider].GetPlaylistItems(playlistId).Finalize(provider, ProviderType.Music);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
示例20: GetMovieCategories
public IList<WebCategory> GetMovieCategories(int? provider, WebSortField? sort = WebSortField.Title, WebSortOrder? order = WebSortOrder.Asc)
{
return MovieLibraries[provider].GetAllCategories().AsQueryable().SortMediaItemList(sort, order).Finalize(provider, ProviderType.Movie);
}
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:4,代码来源:MediaAccessService.cs
注:本文中的WebSortField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论