Beispiel #1
0
        public async Task <HvacStatusCheckResultResponse> CheckHvacOffStatus(VehicleInfo info, VehicleProfile vehicle, CheckRequestResponse checkRequest)
        {
            string urlEncodedSessionId = WebUtility.UrlEncode(info.CustomSessionId);

            return(await ExecuteRequest <HvacStatusCheckResultResponse>($"{baseUrl}/ACRemoteOffResult.php", $"RegionCode={this.region.ToRegionCode()}&lg={this.language}&DCMID={vehicle.DcmId}&VIN={checkRequest.Vin}&UserId={checkRequest.UserId}&tz={this.timezone}&resultKey={checkRequest.ResultKey}&custom_sessionid={urlEncodedSessionId}"));
        }
Beispiel #2
0
        public async Task <CheckRequestResponse> RefreshBatteryStatus(VehicleInfo info, VehicleProfile vehicle)
        {
            string urlEncodedSessionId = WebUtility.UrlEncode(info.CustomSessionId);

            return(await ExecuteRequest <CheckRequestResponse>($"{baseUrl}/BatteryStatusCheckRequest.php", $"RegionCode={this.region.ToRegionCode()}&lg={this.language}&DCMID={vehicle.DcmId}&VIN={vehicle.Vin}&UserId={vehicle.GdcUserId}&tz={this.timezone}&custom_sessionid={urlEncodedSessionId}"));
        }
Beispiel #3
0
        public async Task <HvacStatusResponse> GetHvacStatus(VehicleInfo info, VehicleProfile vehicle)
        {
            string urlEncodedSessionId = WebUtility.UrlEncode(info.CustomSessionId);

            return(await ExecuteRequest <HvacStatusResponse>($"{baseUrl}/RemoteACRecordsRequest.php", $"RegionCode={this.region.ToRegionCode()}&lg={this.language}&DCMID={vehicle.DcmId}&VIN={vehicle.Vin}&tz={this.timezone}&custom_sessionid={urlEncodedSessionId}"));
        }