@@ -105,31 +105,6 @@ public UserRecordServiceRequest CreateUserRecordServiceRequest(UserRecordService
105105 return new UserRecordServiceRequest ( this . baseUrl , this . httpClient , requestOptions ) ;
106106 }
107107
108- /// <summary>
109- /// Gets a page of users starting from the specified <paramref name="pageToken"/>. Page size will be limited to <paramref name="maxResults"/> users.
110- /// </summary>
111- /// <param name="maxResults">Maximum number of users to include in the returned page. This may not exceed 1000.</param>
112- /// <param name="pageToken">A non-empty page token string, or null to retrieve the first page of users.</param>
113- /// <param name="cancellationToken">A cancellation token to monitor the asynchronous operation.</param>
114- /// <returns>A <see cref="DownloadAccountResponse"/> instance.</returns>
115- public async Task < DownloadAccountResponse > ListUsers ( int maxResults , string pageToken , CancellationToken cancellationToken = default ( CancellationToken ) )
116- {
117- const string listUsersPath = "accounts:batchGet" ;
118- var payload = new Dictionary < string , object > ( )
119- {
120- { "maxResults" , maxResults } ,
121- { "nextPageToken" , pageToken } ,
122- } ;
123- var response = await this . GetAndDeserializeAsync < DownloadAccountResponse > (
124- listUsersPath , payload , cancellationToken ) . ConfigureAwait ( false ) ;
125- if ( response == null )
126- {
127- throw new FirebaseException ( $ "Failed to list users") ;
128- }
129-
130- return response ;
131- }
132-
133108 /// <summary>
134109 /// Update an existing user.
135110 /// </summary>
@@ -187,13 +162,6 @@ public void Dispose()
187162 this . httpClient . Dispose ( ) ;
188163 }
189164
190- private async Task < TResult > GetAndDeserializeAsync < TResult > (
191- string path , Dictionary < string , object > parameters , CancellationToken cancellationToken )
192- {
193- var json = await this . GetAsync ( path , parameters , cancellationToken ) . ConfigureAwait ( false ) ;
194- return this . SafeDeserialize < TResult > ( json ) ;
195- }
196-
197165 private async Task < TResult > PostAndDeserializeAsync < TResult > (
198166 string path , object body , CancellationToken cancellationToken )
199167 {
@@ -213,19 +181,6 @@ private TResult SafeDeserialize<TResult>(string json)
213181 }
214182 }
215183
216- private async Task < string > GetAsync (
217- string path , Dictionary < string , object > parameters , CancellationToken cancellationToken )
218- {
219- var queryParameters = string . Join ( "&" , parameters . Select ( kvp => $ "{ kvp . Key } ={ kvp . Value } ") ) ;
220-
221- var request = new HttpRequestMessage ( )
222- {
223- Method = HttpMethod . Get ,
224- RequestUri = new Uri ( $ "{ this . baseUrl } /{ path } ?{ queryParameters } ") ,
225- } ;
226- return await this . SendAsync ( request , cancellationToken ) . ConfigureAwait ( false ) ;
227- }
228-
229184 private async Task < string > PostAsync (
230185 string path , object body , CancellationToken cancellationToken )
231186 {
0 commit comments