@@ -724,8 +724,8 @@ public interface ISearchClient
724
724
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
725
725
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
726
726
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
727
- /// <returns>Task of Dictionary{string, string} </returns>
728
- Task < Dictionary < string , string > > GetObjectAsync ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
727
+ /// <returns>Task of object </returns>
728
+ Task < object > GetObjectAsync ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
729
729
730
730
/// <summary>
731
731
/// Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects). (Synchronous version)
@@ -738,8 +738,8 @@ public interface ISearchClient
738
738
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
739
739
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
740
740
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
741
- /// <returns>Dictionary{string, string} </returns>
742
- Dictionary < string , string > GetObject ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
741
+ /// <returns>object </returns>
742
+ object GetObject ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
743
743
744
744
/// <summary>
745
745
/// Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
@@ -2929,8 +2929,8 @@ public GetLogsResponse GetLogs(int? offset = default, int? length = default, str
2929
2929
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
2930
2930
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
2931
2931
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2932
- /// <returns>Task of Dictionary{string, string} </returns>
2933
- public async Task < Dictionary < string , string > > GetObjectAsync ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default )
2932
+ /// <returns>Task of object </returns>
2933
+ public async Task < object > GetObjectAsync ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default )
2934
2934
{
2935
2935
2936
2936
if ( indexName == null )
@@ -2946,7 +2946,7 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
2946
2946
requestOptions . PathParameters . Add ( "objectID" , QueryStringHelper . ParameterToString ( objectID ) ) ;
2947
2947
2948
2948
requestOptions . AddQueryParameter ( "attributesToRetrieve" , attributesToRetrieve ) ;
2949
- return await _transport . ExecuteRequestAsync < Dictionary < string , string > > ( new HttpMethod ( "GET" ) , "/1/indexes/{indexName}/{objectID}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
2949
+ return await _transport . ExecuteRequestAsync < object > ( new HttpMethod ( "GET" ) , "/1/indexes/{indexName}/{objectID}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
2950
2950
}
2951
2951
2952
2952
@@ -2964,8 +2964,8 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
2964
2964
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
2965
2965
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
2966
2966
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2967
- /// <returns>Dictionary{string, string} </returns>
2968
- public Dictionary < string , string > GetObject ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
2967
+ /// <returns>object </returns>
2968
+ public object GetObject ( string indexName , string objectID , List < string > attributesToRetrieve = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
2969
2969
AsyncHelper . RunSync ( ( ) => GetObjectAsync ( indexName , objectID , attributesToRetrieve , options , cancellationToken ) ) ;
2970
2970
2971
2971
0 commit comments