Example #1
0
 public async Task RequestDeviceDecomission(string token, int customerId, UpdateDeviceDecomissionStatusDto deviceDecomissionDto)
 {
     await devicesDataProvider.RequestDeviceDecomission(token, customerId, deviceDecomissionDto);
 }
        /// <summary>
        /// Requests the device decomission.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <param name="customerId">The customer identifier.</param>
        /// <param name="deviceDecomissionDto">The device decomission dto.</param>
        /// <returns></returns>
        public async Task RequestDeviceDecomission(string token, int customerId, UpdateDeviceDecomissionStatusDto deviceDecomissionDto)
        {
            string url = string.Format("/api/{0}/decommission/{1}", customerId, deviceDecomissionDto.DeviceId);

            await this.apiClient.SendRequestAsync(url, deviceDecomissionDto, Method.POST, null, token);
        }