/// <summary>
        /// Adds new device into OneSignal App. Async version
        /// </summary>
        /// <param name="options">Here you can specify options used to add new device.</param>
        /// <returns>Result of device add operation.</returns>
        public async Task <DeviceAddResult> AddAsync(DeviceAddOptions options)
        {
            var restRequest = CreateRestRequest("players", Method.POST);

            restRequest.AddJsonBody(options);
            var restResponse = await base.RestClient.ExecuteTaskAsync <DeviceAddResult>(restRequest);

            ThrowIfError(restResponse);
            return(restResponse.Data);
        }
        /// <summary>
        /// Adds new device into OneSignal App.
        /// </summary>
        /// <param name="options">Here you can specify options used to add new device.</param>
        /// <returns>Result of device add operation.</returns>
        public DeviceAddResult Add(DeviceAddOptions options)
        {
            var restRequest = CreateRestRequest("players", Method.POST);

            restRequest.AddJsonBody(options);
            var restResponse = base.RestClient.Execute <DeviceAddResult>(restRequest);

            ThrowIfError(restResponse);
            return(restResponse.Data);
        }