public void TestSchemaIOSDeviceToken()
        {
            //
            // TODO: Add constructor logic here
            //
           var token = new IOSDeviceTokenRegistrationInfo()
            {
                 Alias = "your_user_id",
                 Tags = new string[] { "tag1", "tag2"},
                 Badge = "2",
                 QuietTime = new QuietTime() { Start="22:00", End="8:00"},
                 TimeZone = "America/Los_Angeles"
            };
            string expected = 
                "{"+
                " \"alias\": \"your_user_id\", "+
                " \"tags\": [\"tag1\",\"tag2\"],"+
                " \"badge\": \"2\","+
                " \"quiettime\": {"+
                "     \"start\": \"22:00\","+
                "     \"end\": \"8:00\""+
                " },"+
                " \"tz\": \"America/Los_Angeles\""+
                "}";

            string serializedToken = Newtonsoft.Json.JsonConvert.SerializeObject(token);
            Console.WriteLine("Serialized : " + serializedToken);

            Helper.AreJsonEqual(expected, serializedToken);
        }
 public void RegisterDeviceWithInfo(string deviceToken, IOSDeviceTokenRegistrationInfo request)
 {
     base.Invoke<IOSDeviceTokenRegistrationInfo, NullResponse>("/api/device_tokens/" + deviceToken + "/", RestSharp.Method.PUT, request);
 }