/// <summary> /// Retrieves all the information for an existing object of the specified object type. /// </summary> /// <param name="objectType">The object type.</param> /// <param name="objectId">The ID of the specific object.</param> /// <returns>The selected object.</returns> public async Task <Dictionary <string, string> > SelectAsync(ApiObjectType objectType, int objectId) { var query = new Dictionary <string, object?> { { "objectID", (int)objectType }, { "id", objectId } }; return(await _apiRequest.GetAsync <Dictionary <string, string> >( "object", query).ConfigureAwait(false)); }
/// <summary> /// Retrieves all the information for an existing object of the specified object type. /// </summary> /// <param name="objectType">The object type.</param> /// <param name="objectId">The ID of the specific object.</param> /// <returns>The selected object.</returns> public async Task <Dictionary <string, string>?> SelectAsync(ApiObjectType objectType, int objectId, CancellationToken cancellationToken = default) { var query = new Dictionary <string, object?> { { "objectID", (int)objectType }, { "id", objectId } }; return(await _apiRequest.GetAsync <Dictionary <string, string> >( "object", query, true, cancellationToken).ConfigureAwait(false)); }