Class ClientListenerResponse

    • Constructor Detail

      • ClientListenerResponse

        protected ClientListenerResponse​(int status,
                                         @Nullable
                                         @Nullable String err)
        Constructs failed rest response.
        Parameters:
        status - Response status.
        err - Error, null if success is true.
    • Method Detail

      • status

        public int status()
        Returns:
        Success flag.
      • status

        protected void status​(int status)
        Parameters:
        status - Status.
      • error

        public String error()
        Returns:
        Error.
      • error

        protected void error​(String err)
        Parameters:
        err - Error message.
      • onSent

        public void onSent()
        Callback for response sent event.