

package com.tapglue.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.tapglue.networking.TGCustomCacheObject;

public class TGError extends TGBaseObject<TGError> {
    /**
     * Error code
     */

    @Expose
    @SerializedName("code")
    private Long mErrorCode;


    @Expose
    @SerializedName("message")
    private String mMessage;

    public TGError() {
        super(TGCustomCacheObject.TGCacheObjectType.Error);
    }

    /**
     * Get error code
     *
     * @return Error code
     */
    final public Long getErrorCode() {
        return mErrorCode;
    }


    /**
     * Get error message from server
     *
     * @return
     */
    final public String getMessage() {
        return mMessage;
    }

    @Override
    protected TGError getThis() {
        return this;
    }
}
