@@ -73,7 +73,11 @@ public async Task<Memory<byte>> GetWarStatus(string season, string language, Can
7373 /// </summary>
7474 public async Task < Memory < byte > > LoadFeed ( string season , string language , CancellationToken cancellationToken )
7575 {
76- var request = BuildRequest ( $ "/api/NewsFeed/{ season } ", language ) ;
76+ // If the `NewsFeedMaxEntries` flag is not set to 0 we pass it in.
77+ var request = options . Value . NewsFeedMaxEntries is 0
78+ ? BuildRequest ( $ "/api/NewsFeed/{ season } ", language )
79+ : BuildRequest ( $ "/api/NewsFeed/{ season } ?maxEntries=${ options . Value . NewsFeedMaxEntries } ", language ) ;
80+
7781 using var response = await http . SendAsync ( request , cancellationToken ) ;
7882
7983 // Throw on error responses so we don't have to look down the entire serialisation tree.
@@ -102,7 +106,8 @@ public async Task<Memory<byte>> LoadAssignments(string season, string language,
102106 /// <summary>
103107 /// Loads space station of a given <paramref name="season" /> and <paramref name="id"/> in <paramref name="language" />.
104108 /// </summary>
105- public async Task < Memory < byte > > LoadSpaceStations ( string season , long id , string language , CancellationToken cancellationToken )
109+ public async Task < Memory < byte > > LoadSpaceStations ( string season , long id , string language ,
110+ CancellationToken cancellationToken )
106111 {
107112 var request = BuildRequest ( $ "/api/SpaceStation/{ season } /{ id } ", language ) ;
108113 using var response = await http . SendAsync ( request , cancellationToken ) ;
0 commit comments