当前位置: 首页>>代码示例>>C#>>正文


C# WebSortField类代码示例

本文整理汇总了C#中WebSortField的典型用法代码示例。如果您正苦于以下问题:C# WebSortField类的具体用法?C# WebSortField怎么用?C# WebSortField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WebSortField类属于命名空间,在下文中一共展示了WebSortField类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的WebSortField类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。