Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
 package it.grabz.grabzit;
 
This class represents the screenshot status

Author(s):
GrabzIt
Version:
2.0
@XmlRootElement(name="WebResult")
public class Status implements IMessageResult {
    @XmlElement(name="Processing")
    private Boolean processing;
    @XmlElement(name="Cached")
    private Boolean cached;
    @XmlElement(name="Expired")
    private Boolean expired;
    @XmlElement(name="Message")
    private String message;
    @XmlElement(name="Code")
    private String code;    

    

Returns:
if true the screenshot is still being processed
    public boolean isProcessing() {
        return ;
    }

    

Returns:
if true the screenshot has been cached
    public boolean isCached() {
        return ;
    }

    

Returns:
if true the screenshot has expired
    public boolean isExpired() {
        return ;
    }

    

Returns:
returns any error messages associated with the screenshot
    public String getMessage() {
        return ;
    }
    
    @Override
    public ErrorCode getCode() {
        return ErrorCode.valueOf(Integer.parseInt());
    }    
New to GrepCode? Check out our FAQ X