C# Class Batch.Internal.JsonDataExtensions

Datei anzeigen Open project: BatchLabs/unity-plugin

Public Methods

Method Description
GetBool ( this jsonData, string key, bool defaultValue ) : bool
GetInt ( this jsonData, string key, int defaultValue ) : int
GetLong ( this jsonData, string key, long defaultValue ) : long
GetString ( this jsonData, string key, string defaultValue ) : string
HasKey ( this jsonData, string key ) : bool

Method Details

GetBool() public static method

public static GetBool ( this jsonData, string key, bool defaultValue ) : bool
jsonData this
key string
defaultValue bool
return bool

GetInt() public static method

public static GetInt ( this jsonData, string key, int defaultValue ) : int
jsonData this
key string
defaultValue int
return int

GetLong() public static method

public static GetLong ( this jsonData, string key, long defaultValue ) : long
jsonData this
key string
defaultValue long
return long

GetString() public static method

public static GetString ( this jsonData, string key, string defaultValue ) : string
jsonData this
key string
defaultValue string
return string

HasKey() public static method

public static HasKey ( this jsonData, string key ) : bool
jsonData this
key string
return bool