Class ResponseModel


  • public class ResponseModel
    extends Object

    Class which encapsulates data retrieved from the API.

    Since:
    0.3.0
    • Constructor Detail

      • ResponseModel

        public ResponseModel()

        Default constructor.

    • Method Detail

      • getVariables

        public Map<String,​String> getVariables()

        Getter for variables.

        Returns:
        the variables
      • setVariables

        public void setVariables​(Map<String,​String> variables)

        Setter for variables.

        Parameters:
        variables - the variables
      • setValues

        public void setValues​(Collection<ValueNode<String>> values)

        Setter for values.

        Parameters:
        values - the values
      • getVariable

        public String getVariable​(String key)

        Get the variable value for a specific key.

        Parameters:
        key - the key
        Returns:
        the value
      • setVariable

        public void setVariable​(String key,
                                String value)

        Set the variable value for a specific key.

        Parameters:
        key - the key
        value - the value
      • getValue

        public ValueNode<String> getValue​(String code)

        Get the value node for a specific contents code.

        Parameters:
        code - the contents code to get the ValueNode for
        Returns:
        the ValueNode containing the contents code
      • setValue

        public void setValue​(String code,
                             String value)

        Set the value for a specific contents code.

        Parameters:
        code - the contents code to set the value for
        value - the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object