Class DynamicSerializer
The DynamicSerializer used for deserializing json strings into java objects with a classified class name. Used for deserializing into IStatistics, IImageContainer, IMetaInformation and IVISABFile.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public final class DynamicSerializer
Constructors
DynamicSerializer()
Declaration
public DynamicSerializer()
Methods
deserializeImage(String json, String game)
Deserialize a json string into a IImage instance.
Declaration
public static final IImageContainer deserializeImage(String json, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | json | The json to deserialize |
java.lang.String | game | The game for which to deserialize a image |
Returns
Type | Description |
---|---|
IImageContainer | An IImage object if successful, null else |
deserializeMetaInformation(String json)
Deserializes a json string into a IMetaInformation instance.
Declaration
public static final IMetaInformation deserializeMetaInformation(String json)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | json | The json to deserialize |
Returns
Type | Description |
---|---|
IMetaInformation | A IMetaInformation object is successful, null else |
deserializeStatistics(String json, String game)
Deserialize a json string into a IStatistics instance.
Declaration
public static final IStatistics deserializeStatistics(String json, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | json | The json to deserialize |
java.lang.String | game | The game for which to deserialize a file |
Returns
Type | Description |
---|---|
IStatistics | An IStatistics object if successful, null else |
deserializeVISABFile(String json, String game)
Deserialize a json string into a IVISABFile instance.
Declaration
public static final IVISABFile deserializeVISABFile(String json, String game)
Parameters
Type | Name | Description |
---|---|---|
java.lang.String | json | The json to deserialize |
java.lang.String | game | The game for which to deserialize a file |
Returns
Type | Description |
---|---|
IVISABFile | An IVISABFile object if successful, null else |