String strURI = "http:;
String signedURI = Sign(strURI);
InputStream responseStream = ProcessCommand(signedURI, "GET");
String strJSON = StreamToString(responseStream);
Gson gson = new Gson();
AnnotationResponse annotationResponse = gson.fromJson(strJSON,AnnotationResponse.class);
Annotation annotation = annotationResponse.getAnnotation();
public class BaseResponse
{
public BaseResponse() { }
private String Code;
private String Status;
public String getCode(){return Code;}
public String getStatus(){return Status;}
public void setCode(String temCode){ Code=temCode;}
public void setStatus(String temStatus){ Status=temStatus;}
}
public class AnnotationResponse extends BaseResponse
{
public AnnotationResponse() { }
private Annotation Annotation;
public Annotation getAnnotation(){return Annotation;}
public void setAnnotation(Annotation annotation){ Annotation=annotation;}
}
public class Annotation
{
private Annotation() { }
private Color Color;
private String Contents;
private String CreationDate;
private String Subject;
private String Title;
private String Modified;
public String getCreationDate(){return CreationDate;}
public String getContents(){return Contents;}
public String getSubject(){return Subject;}
public String getTitle(){return Title;}
public String getModified(){return Modified;}
public Color getColor(){return Color;}
public void setContents(String temContents){ Contents=temContents;}
public void setSubject(String temSubject){ Subject=temSubject;}
public void setTitle(String temTitle){ Title=temTitle;}
public void setModified(String temModified){Modified=temModified;}
public void SetColor(Color temColor){ Color=temColor;}
}
public class Color
{
public Color() { }
private int A;
private int B;
private int G;
private int R;
public int getA(){return A;}
public int getB(){return B;}
public int getG(){return G;}
public int getR(){return R;}
}