/// <summary>
        /// Get list of vehicles
        /// </summary>
        /// <returns>AutomaticCollection&lt;Vehicle&gt;</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()));
        }
Esempio n. 2
0
        /// <summary>
        /// Get list of vehicles
        /// </summary>
        /// <returns>AutomaticCollection&lt;Vehicle&gt;</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()));
        }