C# Class SpilGames.Unity.Utils.JSONObject

Afficher le fichier Open project: spilgames/spil_event_unity_plugin Class Usage Examples

Méthodes publiques

Свойство Type Description
b bool
keys List
list List
n double
n float
releaseQueue Queue
str string
type Type

Méthodes publiques

Méthode Description
Absorb ( JSONObject obj ) : void
Add ( AddJSONConents content ) : void
Add ( JSONObject obj ) : void
Add ( bool val ) : void
Add ( float val ) : void
Add ( int val ) : void
Add ( string str ) : void
AddField ( string name, AddJSONConents content ) : void
AddField ( string name, JSONObject obj ) : void
AddField ( string name, bool val ) : void
AddField ( string name, float val ) : void
AddField ( string name, int val ) : void
AddField ( string name, string val ) : void
Bake ( ) : void
BakeAsync ( ) : IEnumerable
Clear ( ) : void
ClearPool ( ) : void
Copy ( ) : JSONObject

Copy a JSONObject. This could probably work better

Create ( ) : JSONObject
Create ( AddJSONConents content ) : JSONObject
Create ( string>.Dictionary dic ) : JSONObject
Create ( Type t ) : JSONObject
Create ( bool val ) : JSONObject
Create ( float val ) : JSONObject
Create ( int val ) : JSONObject
Create ( string val, int maxDepth = -2, bool storeExcessLevels = false, bool strict = false ) : JSONObject

Create a JSONObject by parsing string data

CreateBakedObject ( string val ) : JSONObject
CreateStringObject ( string val ) : JSONObject
GetField ( string name ) : JSONObject
GetField ( bool &field, string name, FieldNotFound fail = null ) : void
GetField ( double &field, string name, FieldNotFound fail = null ) : void
GetField ( float &field, string name, FieldNotFound fail = null ) : void
GetField ( int &field, string name, FieldNotFound fail = null ) : void
GetField ( string name, GetFieldResponse response, FieldNotFound fail = null ) : void
GetField ( string &field, string name, FieldNotFound fail = null ) : void
GetField ( uint &field, string name, FieldNotFound fail = null ) : void
HasField ( string name ) : bool
HasFields ( string names ) : bool
JSONObject ( ) : System.Diagnostics
JSONObject ( AddJSONConents content ) : System.Diagnostics
JSONObject ( JSONObject>.Dictionary dic ) : System.Diagnostics
JSONObject ( string>.Dictionary dic ) : System.Diagnostics
JSONObject ( JSONObject objs ) : System.Diagnostics
JSONObject ( Type t ) : System.Diagnostics
JSONObject ( bool b ) : System.Diagnostics
JSONObject ( double d ) : System.Diagnostics
JSONObject ( float f ) : System.Diagnostics
JSONObject ( string str, int maxDepth = -2, bool storeExcessLevels = false, bool strict = false ) : System.Diagnostics
Merge ( JSONObject obj ) : void
Print ( bool pretty = false ) : string
PrintAsync ( bool pretty = false ) : IEnumerable
RemoveField ( string name ) : void
SetField ( string name, JSONObject obj ) : void
SetField ( string name, bool val ) : void
SetField ( string name, float val ) : void
SetField ( string name, int val ) : void
StringObject ( string val ) : JSONObject
ToDictionary ( ) : string>.Dictionary
ToString ( ) : string
ToString ( bool pretty ) : string
this ( int index ) : JSONObject
this ( string index ) : JSONObject

Private Methods

Méthode Description
MergeRecur ( JSONObject left, JSONObject right ) : void

Merge object right into left recursively

Parse ( string str, int maxDepth = -2, bool storeExcessLevels = false, bool strict = false ) : void
Stringify ( int depth, StringBuilder builder, bool pretty = false ) : void
StringifyAsync ( int depth, StringBuilder builder, bool pretty = false ) : IEnumerable

Method Details

Absorb() public méthode

public Absorb ( JSONObject obj ) : void
obj JSONObject
Résultat void

Add() public méthode

public Add ( AddJSONConents content ) : void
content AddJSONConents
Résultat void

Add() public méthode

public Add ( JSONObject obj ) : void
obj JSONObject
Résultat void

Add() public méthode

public Add ( bool val ) : void
val bool
Résultat void

Add() public méthode

public Add ( float val ) : void
val float
Résultat void

Add() public méthode

public Add ( int val ) : void
val int
Résultat void

Add() public méthode

public Add ( string str ) : void
str string
Résultat void

AddField() public méthode

public AddField ( string name, AddJSONConents content ) : void
name string
content AddJSONConents
Résultat void

AddField() public méthode

public AddField ( string name, JSONObject obj ) : void
name string
obj JSONObject
Résultat void

AddField() public méthode

public AddField ( string name, bool val ) : void
name string
val bool
Résultat void

AddField() public méthode

public AddField ( string name, float val ) : void
name string
val float
Résultat void

AddField() public méthode

public AddField ( string name, int val ) : void
name string
val int
Résultat void

AddField() public méthode

public AddField ( string name, string val ) : void
name string
val string
Résultat void

Bake() public méthode

public Bake ( ) : void
Résultat void

BakeAsync() public méthode

public BakeAsync ( ) : IEnumerable
Résultat IEnumerable

Clear() public méthode

public Clear ( ) : void
Résultat void

ClearPool() public static méthode

public static ClearPool ( ) : void
Résultat void

Copy() public méthode

Copy a JSONObject. This could probably work better
public Copy ( ) : JSONObject
Résultat JSONObject

Create() public static méthode

public static Create ( ) : JSONObject
Résultat JSONObject

Create() public static méthode

public static Create ( AddJSONConents content ) : JSONObject
content AddJSONConents
Résultat JSONObject

Create() public static méthode

public static Create ( string>.Dictionary dic ) : JSONObject
dic string>.Dictionary
Résultat JSONObject

Create() public static méthode

public static Create ( Type t ) : JSONObject
t Type
Résultat JSONObject

Create() public static méthode

public static Create ( bool val ) : JSONObject
val bool
Résultat JSONObject

Create() public static méthode

public static Create ( float val ) : JSONObject
val float
Résultat JSONObject

Create() public static méthode

public static Create ( int val ) : JSONObject
val int
Résultat JSONObject

Create() public static méthode

Create a JSONObject by parsing string data
public static Create ( string val, int maxDepth = -2, bool storeExcessLevels = false, bool strict = false ) : JSONObject
val string The string to be parsed
maxDepth int The maximum depth for the parser to search. Set this to to 1 for the first level, /// 2 for the first 2 levels, etc. It defaults to -2 because -1 is the depth value that is parsed (see below)
storeExcessLevels bool Whether to store levels beyond maxDepth in baked JSONObjects
strict bool Whether to be strict in the parsing. For example, non-strict parsing will successfully /// parse "a string" into a string-type
Résultat JSONObject

CreateBakedObject() public static méthode

public static CreateBakedObject ( string val ) : JSONObject
val string
Résultat JSONObject

CreateStringObject() public static méthode

public static CreateStringObject ( string val ) : JSONObject
val string
Résultat JSONObject

GetField() public méthode

public GetField ( string name ) : JSONObject
name string
Résultat JSONObject

GetField() public méthode

public GetField ( bool &field, string name, FieldNotFound fail = null ) : void
field bool
name string
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( double &field, string name, FieldNotFound fail = null ) : void
field double
name string
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( float &field, string name, FieldNotFound fail = null ) : void
field float
name string
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( int &field, string name, FieldNotFound fail = null ) : void
field int
name string
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( string name, GetFieldResponse response, FieldNotFound fail = null ) : void
name string
response GetFieldResponse
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( string &field, string name, FieldNotFound fail = null ) : void
field string
name string
fail FieldNotFound
Résultat void

GetField() public méthode

public GetField ( uint &field, string name, FieldNotFound fail = null ) : void
field uint
name string
fail FieldNotFound
Résultat void

HasField() public méthode

public HasField ( string name ) : bool
name string
Résultat bool

HasFields() public méthode

public HasFields ( string names ) : bool
names string
Résultat bool

JSONObject() public méthode

public JSONObject ( ) : System.Diagnostics
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( AddJSONConents content ) : System.Diagnostics
content AddJSONConents
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( JSONObject>.Dictionary dic ) : System.Diagnostics
dic JSONObject>.Dictionary
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( string>.Dictionary dic ) : System.Diagnostics
dic string>.Dictionary
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( JSONObject objs ) : System.Diagnostics
objs JSONObject
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( Type t ) : System.Diagnostics
t Type
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( bool b ) : System.Diagnostics
b bool
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( double d ) : System.Diagnostics
d double
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( float f ) : System.Diagnostics
f float
Résultat System.Diagnostics

JSONObject() public méthode

public JSONObject ( string str, int maxDepth = -2, bool storeExcessLevels = false, bool strict = false ) : System.Diagnostics
str string
maxDepth int
storeExcessLevels bool
strict bool
Résultat System.Diagnostics

Merge() public méthode

public Merge ( JSONObject obj ) : void
obj JSONObject
Résultat void

Print() public méthode

public Print ( bool pretty = false ) : string
pretty bool
Résultat string

PrintAsync() public méthode

public PrintAsync ( bool pretty = false ) : IEnumerable
pretty bool
Résultat IEnumerable

RemoveField() public méthode

public RemoveField ( string name ) : void
name string
Résultat void

SetField() public méthode

public SetField ( string name, JSONObject obj ) : void
name string
obj JSONObject
Résultat void

SetField() public méthode

public SetField ( string name, bool val ) : void
name string
val bool
Résultat void

SetField() public méthode

public SetField ( string name, float val ) : void
name string
val float
Résultat void

SetField() public méthode

public SetField ( string name, int val ) : void
name string
val int
Résultat void

StringObject() public static méthode

public static StringObject ( string val ) : JSONObject
val string
Résultat JSONObject

ToDictionary() public méthode

public ToDictionary ( ) : string>.Dictionary
Résultat string>.Dictionary

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( bool pretty ) : string
pretty bool
Résultat string

this() public méthode

public this ( int index ) : JSONObject
index int
Résultat JSONObject

this() public méthode

public this ( string index ) : JSONObject
index string
Résultat JSONObject

Property Details

b public_oe property

public bool b
Résultat bool

keys public_oe property

public List keys
Résultat List

list public_oe property

public List list
Résultat List

n public_oe property

public double n
Résultat double

n public_oe property

public float n
Résultat float

releaseQueue public_oe static_oe property

public static Queue releaseQueue
Résultat Queue

str public_oe property

public string str
Résultat string

type public_oe property

public Type type
Résultat Type