Class PromiseResult


  • public class PromiseResult
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String errorCode  
      java.lang.String errorMessage  
      boolean isError  
      java.util.HashMap<java.lang.String,​java.lang.Object> result  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PromiseResult reject​(java.lang.String errorCode, java.lang.String errorMessage)  
      static PromiseResult resolve()  
      static PromiseResult resolve​(java.util.HashMap<java.lang.String,​java.lang.Object> result)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isError

        public boolean isError
      • errorCode

        public java.lang.String errorCode
      • errorMessage

        public java.lang.String errorMessage
      • result

        public java.util.HashMap<java.lang.String,​java.lang.Object> result
    • Method Detail

      • resolve

        public static PromiseResult resolve​(java.util.HashMap<java.lang.String,​java.lang.Object> result)
      • reject

        public static PromiseResult reject​(java.lang.String errorCode,
                                           java.lang.String errorMessage)