/// <summary> /// Get list of vehicles /// </summary> /// <returns>AutomaticCollection<Vehicle></returns> public async Task <AutomaticCollection <Vehicle> > GetVehiclesAsync(VehiclesRequest request = null) { if (request == null) { return(await GetAsync <AutomaticCollection <Vehicle> >(VehicleResource)); } return(await GetAsync <AutomaticCollection <Vehicle> >(VehicleResource, request.CreateParameters())); }
/// <summary> /// Get list of vehicles /// </summary> /// <returns>AutomaticCollection<Vehicle></returns> public async Task <AutomaticCollection <Vehicle> > GetVehiclesAsync(VehiclesRequest request = null) { const string path = "vehicle/"; if (request == null) { return(await GetAsync <AutomaticCollection <Vehicle> >(path)); } return(await GetAsync <AutomaticCollection <Vehicle> >(path, request.CreateParameters())); }