diff options
author | chai <215380520@qq.com> | 2023-05-30 14:27:59 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-30 14:27:59 +0800 |
commit | 2fcb4625389b1594bbefdbaf2e038b2cfffa8ead (patch) | |
tree | 87f57dbfdaf3d11ebf33869b76f12cc475c9a033 /WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs | |
parent | 38e177b0fdf130d6a361ab51c80b5b56ee83f28e (diff) |
+ json extends
Diffstat (limited to 'WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs')
-rw-r--r-- | WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs b/WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs new file mode 100644 index 0000000..db0963a --- /dev/null +++ b/WorldlineKeepers/Assets/ThirdParty/LitJson/IJsonWrapper.cs @@ -0,0 +1,60 @@ +#region Header +/** + * IJsonWrapper.cs + * Interface that represents a type capable of handling all kinds of JSON + * data. This is mainly used when mapping objects through JsonMapper, and + * it's implemented by JsonData. + * + * The authors disclaim copyright to this source code. For more details, see + * the COPYING file included with this distribution. + **/ +#endregion + + +using System.Collections; +using System.Collections.Specialized; + + +namespace LitJson +{ + public enum JsonType + { + None, + + Object, + Array, + String, + Int, + Long, + Double, + Boolean + } + + public interface IJsonWrapper : IList, IOrderedDictionary + { + bool IsArray { get; } + bool IsBoolean { get; } + bool IsDouble { get; } + bool IsInt { get; } + bool IsLong { get; } + bool IsObject { get; } + bool IsString { get; } + + bool GetBoolean (); + double GetDouble (); + int GetInt (); + JsonType GetJsonType (); + long GetLong (); + string GetString (); + + void SetBoolean (bool val); + void SetDouble (double val); + void SetInt (int val); + void SetJsonType (JsonType type); + void SetLong (long val); + void SetString (string val); + + string ToJson (); + void ToJson (JsonWriter writer); + } +} |