1 using System.Collections;
3 using System.Collections.Generic;
6 using Newtonsoft.Json.Linq;
20 static string persistentDataPath = Application.streamingAssetsPath;
21 static string airControlVersion = CommonFunctions.GET_VERSION();
24 #region Builtin Methods
27 #region Custom Methods
38 string schemaFilePath = System.IO.Path.Combine(persistentDataPath,schemaName);
39 File.WriteAllText(schemaFilePath, json);
50 createSchema<ControlSchema>(
"ControlSchema.json");
51 createSchema<OutputSchema>(
"OutputSchema.json");
52 createSchema<TODSchema>(
"TOD.json");
53 createSchema<CameraSchema>(
"CameraSchema.json");
54 createSchema<LevelSchema>(
"LevelSchema.json");
55 createSchema<WeatherSchema>(
"WeatherSchema.json");
56 createSchema<UISchema>(
"UISchema.json");
57 createSchema<AudioSchema>(
"AudioSchema.json");
58 createSchema<LidarSchema>(
"LidarSchema.json");
59 createSchema<FuelSchema>(
"FuelSchema.json");
60 createSchema<PresetSchema>(
"PresetSchema.json");
74 public override bool CanConvert(Type objectType)
76 return objectType == typeof(
bool);
79 public override void WriteJson(JsonWriter writer,
object value, JsonSerializer serializer)
81 writer.WriteValue(value.ToString().ToLower());
84 public override bool CanRead
89 public override object ReadJson(JsonReader reader, Type objectType,
object existingValue, JsonSerializer serializer)
91 throw new NotImplementedException();