diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 40b918550c..363500954a 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -48,7 +48,7 @@ namespace MediaBrowser.Model.ApiClient /// /// The cancellation token. /// Task{List{GameSystemSummary}}. - Task> GetGameSystemSummariesAsync(CancellationToken cancellationToken); + Task> GetGameSystemSummariesAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the async. @@ -57,7 +57,7 @@ namespace MediaBrowser.Model.ApiClient /// The URL. /// The cancellation token. /// Task{``0}. - Task GetAsync(string url, CancellationToken cancellationToken) + Task GetAsync(string url, CancellationToken cancellationToken = default(CancellationToken)) where T : class; /// @@ -90,7 +90,7 @@ namespace MediaBrowser.Model.ApiClient /// The capabilities. /// The cancellation token. /// Task. - Task ReportCapabilities(ClientCapabilities capabilities, CancellationToken cancellationToken); + Task ReportCapabilities(ClientCapabilities capabilities, CancellationToken cancellationToken = default(CancellationToken)); /// /// Logouts this instance. @@ -104,7 +104,7 @@ namespace MediaBrowser.Model.ApiClient /// The user id. /// The cancellation token. /// Task{List{ItemIndex}}. - Task> GetGamePlayerIndex(string userId, CancellationToken cancellationToken); + Task> GetGamePlayerIndex(string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the index of the year. @@ -113,7 +113,7 @@ namespace MediaBrowser.Model.ApiClient /// The include item types. /// The cancellation token. /// Task{List{ItemIndex}}. - Task> GetYearIndex(string userId, string[] includeItemTypes, CancellationToken cancellationToken); + Task> GetYearIndex(string userId, string[] includeItemTypes, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the critic reviews. @@ -123,7 +123,7 @@ namespace MediaBrowser.Model.ApiClient /// The start index. /// The limit. /// Task{ItemReviewsResult}. - Task> GetCriticReviews(string itemId, CancellationToken cancellationToken, int? startIndex = null, int? limit = null); + Task> GetCriticReviews(string itemId, CancellationToken cancellationToken = default(CancellationToken), int? startIndex = null, int? limit = null); /// /// Gets the theme songs async. @@ -133,7 +133,7 @@ namespace MediaBrowser.Model.ApiClient /// if set to true [inherit from parents]. /// The cancellation token. /// Task{ThemeMediaResult}. - Task GetThemeSongsAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken); + Task GetThemeSongsAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the search hints async. @@ -150,7 +150,7 @@ namespace MediaBrowser.Model.ApiClient /// if set to true [inherit from parents]. /// The cancellation token. /// Task{ThemeMediaResult}. - Task GetThemeVideosAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken); + Task GetThemeVideosAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets all theme media async. @@ -160,7 +160,7 @@ namespace MediaBrowser.Model.ApiClient /// if set to true [inherit from parents]. /// The cancellation token. /// Task{AllThemeMediaResult}. - Task GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken); + Task GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents, CancellationToken cancellationToken = default(CancellationToken)); /// /// Marks the notifications read. @@ -192,7 +192,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{Stream}. /// url - Task GetImageStreamAsync(string url, CancellationToken cancellationToken); + Task GetImageStreamAsync(string url, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a BaseItem @@ -239,7 +239,7 @@ namespace MediaBrowser.Model.ApiClient /// /// The cancellation token. /// Task{UserDto[]}. - Task GetPublicUsersAsync(CancellationToken cancellationToken); + Task GetPublicUsersAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets active client sessions. @@ -252,7 +252,7 @@ namespace MediaBrowser.Model.ApiClient /// Gets the client session asynchronous. /// /// Task{SessionInfoDto}. - Task GetCurrentSessionAsync(CancellationToken cancellationToken); + Task GetCurrentSessionAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the item counts async. @@ -267,7 +267,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetEpisodesAsync(EpisodeQuery query, CancellationToken cancellationToken); + Task GetEpisodesAsync(EpisodeQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the seasons asynchronous. @@ -275,7 +275,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSeasonsAsync(SeasonQuery query, CancellationToken cancellationToken); + Task GetSeasonsAsync(SeasonQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Queries for items @@ -284,7 +284,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{ItemsResult}. /// query - Task GetItemsAsync(ItemQuery query, CancellationToken cancellationToken); + Task GetItemsAsync(ItemQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the user views. @@ -292,7 +292,7 @@ namespace MediaBrowser.Model.ApiClient /// The user identifier. /// The cancellation token. /// Task<ItemsResult>. - Task GetUserViews(string userId, CancellationToken cancellationToken); + Task GetUserViews(string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the instant mix from song async. @@ -328,7 +328,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSimilarMoviesAsync(SimilarItemsQuery query, CancellationToken cancellationToken); + Task GetSimilarMoviesAsync(SimilarItemsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the similar trailers async. @@ -336,7 +336,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSimilarTrailersAsync(SimilarItemsQuery query, CancellationToken cancellationToken); + Task GetSimilarTrailersAsync(SimilarItemsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the similar series async. @@ -344,7 +344,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSimilarSeriesAsync(SimilarItemsQuery query, CancellationToken cancellationToken); + Task GetSimilarSeriesAsync(SimilarItemsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the similar albums async. @@ -352,7 +352,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSimilarAlbumsAsync(SimilarItemsQuery query, CancellationToken cancellationToken); + Task GetSimilarAlbumsAsync(SimilarItemsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the similar games async. @@ -360,7 +360,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetSimilarGamesAsync(SimilarItemsQuery query, CancellationToken cancellationToken); + Task GetSimilarGamesAsync(SimilarItemsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the people async. @@ -369,7 +369,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{ItemsResult}. /// userId - Task GetPeopleAsync(PersonsQuery query, CancellationToken cancellationToken); + Task GetPeopleAsync(PersonsQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the artists. @@ -401,7 +401,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{ItemsResult}. - Task GetNextUpEpisodesAsync(NextUpQuery query, CancellationToken cancellationToken); + Task GetNextUpEpisodesAsync(NextUpQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the upcoming episodes asynchronous. @@ -483,14 +483,14 @@ namespace MediaBrowser.Model.ApiClient /// /// The cancellation token. /// Task{SystemInfo}. - Task GetSystemInfoAsync(CancellationToken cancellationToken); + Task GetSystemInfoAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the public system information asynchronous. /// /// The cancellation token. /// Task<PublicSystemInfo>. - Task GetPublicSystemInfoAsync(CancellationToken cancellationToken); + Task GetPublicSystemInfoAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a person @@ -759,7 +759,7 @@ namespace MediaBrowser.Model.ApiClient /// The client. /// The cancellation token. /// Task{BaseItemDto}. - Task GetDisplayPreferencesAsync(string id, string userId, string client, CancellationToken cancellationToken); + Task GetDisplayPreferencesAsync(string id, string userId, string client, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates display preferences for a user @@ -770,7 +770,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{DisplayPreferences}. /// userId - Task UpdateDisplayPreferencesAsync(DisplayPreferences displayPreferences, string userId, string client, CancellationToken cancellationToken); + Task UpdateDisplayPreferencesAsync(DisplayPreferences displayPreferences, string userId, string client, CancellationToken cancellationToken = default(CancellationToken)); /// /// Posts a set of data to a url, and deserializes the return stream into T @@ -780,7 +780,7 @@ namespace MediaBrowser.Model.ApiClient /// The args. /// The cancellation token. /// Task{``0}. - Task PostAsync(string url, Dictionary args, CancellationToken cancellationToken) + Task PostAsync(string url, Dictionary args, CancellationToken cancellationToken = default(CancellationToken)) where T : class; /// @@ -1031,7 +1031,7 @@ namespace MediaBrowser.Model.ApiClient /// /// The cancellation token. /// Task{LiveTvInfo}. - Task GetLiveTvInfoAsync(CancellationToken cancellationToken); + Task GetLiveTvInfoAsync(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv channels asynchronous. @@ -1039,7 +1039,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{LiveTvInfo}. - Task> GetLiveTvChannelsAsync(LiveTvChannelQuery query, CancellationToken cancellationToken); + Task> GetLiveTvChannelsAsync(LiveTvChannelQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv channel asynchronous. @@ -1048,7 +1048,7 @@ namespace MediaBrowser.Model.ApiClient /// The user identifier. /// The cancellation token. /// Task{ChannelInfoDto}. - Task GetLiveTvChannelAsync(string id, string userId, CancellationToken cancellationToken); + Task GetLiveTvChannelAsync(string id, string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv recordings asynchronous. @@ -1056,7 +1056,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{RecordingInfoDto}}. - Task> GetLiveTvRecordingsAsync(RecordingQuery query, CancellationToken cancellationToken); + Task> GetLiveTvRecordingsAsync(RecordingQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv recording asynchronous. @@ -1065,7 +1065,7 @@ namespace MediaBrowser.Model.ApiClient /// The user identifier. /// The cancellation token. /// Task{RecordingInfoDto}. - Task GetLiveTvRecordingAsync(string id, string userId, CancellationToken cancellationToken); + Task GetLiveTvRecordingAsync(string id, string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv recording groups asynchronous. @@ -1073,7 +1073,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{RecordingGroupDto}}. - Task> GetLiveTvRecordingGroupsAsync(RecordingGroupQuery query, CancellationToken cancellationToken); + Task> GetLiveTvRecordingGroupsAsync(RecordingGroupQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv recording group asynchronous. @@ -1082,7 +1082,7 @@ namespace MediaBrowser.Model.ApiClient /// The user identifier. /// The cancellation token. /// Task{RecordingGroupDto}. - Task GetLiveTvRecordingGroupAsync(string id, string userId, CancellationToken cancellationToken); + Task GetLiveTvRecordingGroupAsync(string id, string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv timers asynchronous. @@ -1090,7 +1090,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{TimerInfoDto}}. - Task> GetLiveTvTimersAsync(TimerQuery query, CancellationToken cancellationToken); + Task> GetLiveTvTimersAsync(TimerQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv programs asynchronous. @@ -1098,7 +1098,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{ProgramInfoDto}}. - Task> GetLiveTvProgramsAsync(ProgramQuery query, CancellationToken cancellationToken); + Task> GetLiveTvProgramsAsync(ProgramQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv program asynchronous. @@ -1107,7 +1107,7 @@ namespace MediaBrowser.Model.ApiClient /// The user identifier. /// The cancellation token. /// Task{ProgramInfoDto}. - Task GetLiveTvProgramAsync(string id, string userId, CancellationToken cancellationToken); + Task GetLiveTvProgramAsync(string id, string userId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the recommended live tv programs asynchronous. @@ -1115,7 +1115,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{ProgramInfoDto}}. - Task> GetRecommendedLiveTvProgramsAsync(RecommendedProgramQuery query, CancellationToken cancellationToken); + Task> GetRecommendedLiveTvProgramsAsync(RecommendedProgramQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates the live tv timer asynchronous. @@ -1123,7 +1123,7 @@ namespace MediaBrowser.Model.ApiClient /// The timer. /// The cancellation token. /// Task. - Task CreateLiveTvTimerAsync(BaseTimerInfoDto timer, CancellationToken cancellationToken); + Task CreateLiveTvTimerAsync(BaseTimerInfoDto timer, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the live tv timer asynchronous. @@ -1131,7 +1131,7 @@ namespace MediaBrowser.Model.ApiClient /// The timer. /// The cancellation token. /// Task. - Task UpdateLiveTvTimerAsync(TimerInfoDto timer, CancellationToken cancellationToken); + Task UpdateLiveTvTimerAsync(TimerInfoDto timer, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates the live tv series timer asynchronous. @@ -1139,7 +1139,7 @@ namespace MediaBrowser.Model.ApiClient /// The timer. /// The cancellation token. /// Task. - Task CreateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken); + Task CreateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the live tv series timer asynchronous. @@ -1147,7 +1147,7 @@ namespace MediaBrowser.Model.ApiClient /// The timer. /// The cancellation token. /// Task. - Task UpdateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken); + Task UpdateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv timer asynchronous. @@ -1155,7 +1155,7 @@ namespace MediaBrowser.Model.ApiClient /// The identifier. /// The cancellation token. /// Task{TimerInfoDto}. - Task GetLiveTvTimerAsync(string id, CancellationToken cancellationToken); + Task GetLiveTvTimerAsync(string id, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv series timers asynchronous. @@ -1163,7 +1163,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{SeriesTimerInfoDto}}. - Task> GetLiveTvSeriesTimersAsync(SeriesTimerQuery query, CancellationToken cancellationToken); + Task> GetLiveTvSeriesTimersAsync(SeriesTimerQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv series timer asynchronous. @@ -1171,7 +1171,7 @@ namespace MediaBrowser.Model.ApiClient /// The identifier. /// The cancellation token. /// Task{SeriesTimerInfoDto}. - Task GetLiveTvSeriesTimerAsync(string id, CancellationToken cancellationToken); + Task GetLiveTvSeriesTimerAsync(string id, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancels the live tv timer asynchronous. @@ -1179,7 +1179,7 @@ namespace MediaBrowser.Model.ApiClient /// The identifier. /// The cancellation token. /// Task. - Task CancelLiveTvTimerAsync(string id, CancellationToken cancellationToken); + Task CancelLiveTvTimerAsync(string id, CancellationToken cancellationToken = default(CancellationToken)); /// /// Cancels the live tv series timer asynchronous. @@ -1187,7 +1187,7 @@ namespace MediaBrowser.Model.ApiClient /// The identifier. /// The cancellation token. /// Task. - Task CancelLiveTvSeriesTimerAsync(string id, CancellationToken cancellationToken); + Task CancelLiveTvSeriesTimerAsync(string id, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the live tv recording asynchronous. @@ -1195,21 +1195,21 @@ namespace MediaBrowser.Model.ApiClient /// The identifier. /// The cancellation token. /// Task. - Task DeleteLiveTvRecordingAsync(string id, CancellationToken cancellationToken); + Task DeleteLiveTvRecordingAsync(string id, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the default timer information. /// /// The cancellation token. /// Task{SeriesTimerInfoDto}. - Task GetDefaultLiveTvTimerInfo(CancellationToken cancellationToken); + Task GetDefaultLiveTvTimerInfo(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the live tv guide information. /// /// The cancellation token. /// Task{GuideInfo}. - Task GetLiveTvGuideInfo(CancellationToken cancellationToken); + Task GetLiveTvGuideInfo(CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the default timer information. @@ -1217,7 +1217,7 @@ namespace MediaBrowser.Model.ApiClient /// The program identifier. /// The cancellation token. /// Task{SeriesTimerInfoDto}. - Task GetDefaultLiveTvTimerInfo(string programId, CancellationToken cancellationToken); + Task GetDefaultLiveTvTimerInfo(string programId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the channel features. @@ -1225,7 +1225,7 @@ namespace MediaBrowser.Model.ApiClient /// The channel identifier. /// The cancellation token. /// Task{ChannelFeatures}. - Task GetChannelFeatures(string channelId, CancellationToken cancellationToken); + Task GetChannelFeatures(string channelId, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the channel items. @@ -1233,7 +1233,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{BaseItemDto}}. - Task> GetChannelItems(ChannelItemQuery query, CancellationToken cancellationToken); + Task> GetChannelItems(ChannelItemQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the channels. @@ -1241,7 +1241,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{BaseItemDto}}. - Task> GetChannels(ChannelQuery query, CancellationToken cancellationToken); + Task> GetChannels(ChannelQuery query, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the latest channel items. @@ -1249,6 +1249,6 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// The cancellation token. /// Task{QueryResult{BaseItemDto}}. - Task> GetLatestChannelItems(AllChannelMediaQuery query, CancellationToken cancellationToken); + Task> GetLatestChannelItems(AllChannelMediaQuery query, CancellationToken cancellationToken = default(CancellationToken)); } } \ No newline at end of file