public void CancelScheduledNotification(IOSCancelPushNotificationRequest request)
 {
     base.Invoke<IOSCancelPushNotificationRequest, NullResponse>("/api/push/scheduled/", RestSharp.Method.POST, request);
 }
        public void TestSchemaIOSCancelRequest()
        {
            string expected = ""+
    "        {"+
    "\"cancel\": ["+
    "    \"https://go.urbanairship.com/api/push/scheduled/XX\","+
    "    \"https://go.urbanairship.com/api/push/scheduled/XY\""+
    "],"+
    "\"cancel_aliases\": ["+
    "    \"some_alias\","+
    "    \"another_alias\""+
    "],"+
    "\"cancel_device_tokens\": ["+
    "    \"example_device_token\","+
    "    \"other_example_device_token\""+
    "]"+
"}";


            var  response = new IOSCancelPushNotificationRequest()
            {
                CancelByScheduledNotificationUrls = new List<string>()
                 {
        "https://go.urbanairship.com/api/push/scheduled/XX",
        "https://go.urbanairship.com/api/push/scheduled/XY"
            },
                CancelByAliases = new List<string>()
                {
    "some_alias",
    "another_alias"
                },
                CancelByDeviceTokens = new List<string>()
                {
    "example_device_token",
    "other_example_device_token"
                }

            };
            List<JsonConverter> converters = new List<JsonConverter>();
            //converters.Add(new SchedulerConverter());
            string serializedToken = Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.None,
                new Newtonsoft.Json.JsonSerializerSettings()
                {
                    NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
                    Converters = converters
                });
            Console.WriteLine("Serialized : " + serializedToken);

            Helper.AreJsonEqual(expected, serializedToken);

      
        }