Class AbstractModel

    • Field Detail

      • skipSign

        protected boolean skipSign
    • Constructor Detail

      • AbstractModel

        public AbstractModel()
    • Method Detail

      • fromJsonString

        public static <O> O fromJsonString​(String json,
                                           Class<O> cls)
        Deserialize a JSON string into an object of the Class inherited from AbstractModel.
        Parameters:
        json - JSON formatted string.
        cls - A class which inherited from AbstractModel.
        Returns:
        An object of cls.
      • getBinaryParams

        protected String[] getBinaryParams()
        Valid only when it's a request object. Some actions can only be posted in multipart format, this method is used to mark which parameters are binary type.
      • getMultipartRequestParams

        protected HashMap<String,​byte[]> getMultipartRequestParams()
        Valid only when it's a multipart request object.
      • setParamArraySimple

        protected <V> void setParamArraySimple​(HashMap<String,​String> map,
                                               String prefix,
                                               V[] array)
      • set

        public void set​(String key,
                        Object value)
        Set any key value pair to this model.
        Parameters:
        key -
        value -
      • getSkipSign

        public boolean getSkipSign()
      • setSkipSign

        public void setSkipSign​(boolean skipSign)