Package cn.jpush.api.common.ResponseWrapper

Examples of cn.jpush.api.common.ResponseWrapper.ErrorObject


    public int getStatus() {
        return this.responseWrapper.responseCode;
    }
   
    public long getMsgId() {
        ErrorObject eo = getErrorObject();
        if (null != eo) {
            return eo.msg_id;
        }
        return 0;
    }
View Full Code Here


        }
        return 0;
    }
   
    public int getErrorCode() {
        ErrorObject eo = getErrorObject();
        if (null != eo) {
            return eo.error.code;
        }
        return -1;
    }
View Full Code Here

        }
        return -1;
    }
   
    public String getErrorMessage() {
        ErrorObject eo = getErrorObject();
        if (null != eo) {
            return eo.error.message;
        }
        return null;
    }
View Full Code Here

        }
        return null;
    }
   
    public int getErrorCode() {
        ErrorObject eo = getErrorObject();
        if (null != eo) {
            return eo.error.code;
        }
        if (null != responseWrapper) {
            if (responseWrapper.responseCode == RESPONSE_OK) {
View Full Code Here

        }
        return ERROR_CODE_NONE;
    }
   
    public String getErrorMessage() {
        ErrorObject eo = getErrorObject();
        if (null != eo) {
            return eo.error.message;
        }
        return ERROR_MESSAGE_NONE;
    }
View Full Code Here

TOP

Related Classes of cn.jpush.api.common.ResponseWrapper.ErrorObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.