• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# WebSortOrder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



WebSortOrder类属于命名空间,在下文中一共展示了WebSortOrder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: 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


示例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: 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


示例9: GetFilterValues

 /// <summary>
 /// Get all available values for a given field
 /// </summary>
 public IList<string> GetFilterValues(int? provider, WebMediaType mediaType, string filterField, string op, int? limit, WebSortOrder? order = WebSortOrder.Asc)
 {
     switch (mediaType)
     {
         case WebMediaType.Drive:
             return AutoSuggestion.GetValuesForField(filterField, GetFileSystemDrives(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.Movie:
             return AutoSuggestion.GetValuesForField(filterField, GetMoviesDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.MusicAlbum:
             return AutoSuggestion.GetValuesForField(filterField, GetMusicAlbumsBasic(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.MusicArtist:
             return AutoSuggestion.GetValuesForField(filterField, GetMusicArtistsDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.MusicTrack:
             return AutoSuggestion.GetValuesForField(filterField, GetMusicTracksDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.Picture:
             return AutoSuggestion.GetValuesForField(filterField, GetPicturesDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.Playlist:
             return AutoSuggestion.GetValuesForField(filterField, GetPlaylists(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.TVEpisode:
             return AutoSuggestion.GetValuesForField(filterField, GetTVEpisodesDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         case WebMediaType.TVShow:
             return AutoSuggestion.GetValuesForField(filterField, GetTVShowsDetailed(provider), op, limit).OrderBy(x => x, order).ToList();
         default:
             Log.Info("GetFilterValues() called with unsupported mediaType='{0}' filterField='{1}' op='{2}' limit='{3}'", mediaType, filterField, op, limit);
             throw new ArgumentException("Unsupported MediaType for GetFilterValues()");
     }
 }
开发者ID:Shukuyen,项目名称:MPExtended,代码行数:30,代码来源:MediaAccessService.cs


示例10: 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


示例11: 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


示例12: 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


示例13: 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


示例14: 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


示例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: GetFilterValuesByRange

 public IList<string> GetFilterValuesByRange(int? provider, int start, int end, WebMediaType mediaType, string filterField, string op = null, int? limit = null, WebSortOrder? order = WebSortOrder.Asc)
 {
     return GetFilterValues(provider, mediaType, filterField, op, limit, order).TakeRange(start, end).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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebTestRequest类代码示例发布时间:2022-05-24
下一篇:
C# WebSortField类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap