public class GloxeyJsonParser
extends java.lang.Object
| Constructor and Description |
|---|
GloxeyJsonParser() |
| Modifier and Type | Method and Description |
|---|---|
static GloxeyJsonParser |
getInstance() |
<T> T |
parse(java.lang.String _response,
java.lang.Class<T> _model)
Generic method to parse all type of models
Simply pass Model and Response and get parsed model :D
Yahoo..........
|
public static GloxeyJsonParser getInstance()
public <T> T parse(java.lang.String _response,
java.lang.Class<T> _model)
throws java.lang.Exception
LoginResponse loginResponse= GloxeyJsonParser.getInstance().parse(_response,LoginResponse.class);
T - _response - _model - java.lang.Exception