/// <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)); }
/// <summary> /// Retrieves all the information for an existing object. /// </summary> /// <param name="id">The ID of the specific object.</param> /// <returns>The selected object.</returns> public async Task <T> SelectAsync(int id) { var query = new Dictionary <string, object> { { "id", id } }; var json = await ApiRequest.GetAsync <JObject>( EndpointSingular, query); return(await OnParseSelectAsync(json)); }