Class Network.trustTokenOperationDone

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Network

    public static class Network.trustTokenOperationDone
    extends BrowserEvent
    implements java.io.Serializable
    Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.

    EXPERIMENTAL
    See Also:
    Serialized Form


    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Event Properties
      Modifier and Type Field
      Integer issuedTokenCount
      The number of obtained Trust Tokens on a successful "Issuance" operation.
      String issuerOrigin
      Origin of the issuer in case of a "Issuance" or "Redemption" operation.
      String requestId
      [No Description Provided by Google]
      String status
      Detailed success or error status of the operation.
      String topLevelOrigin
      Top level origin.
      String type
      [No Description Provided by Google]
    • Constructor Summary

      Constructors 
      Constructor Description
      trustTokenOperationDone​(String status, String type, String requestId, String topLevelOrigin, String issuerOrigin, Integer issuedTokenCount)
      Constructor
      trustTokenOperationDone​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object other)
      Checks whether 'this' equals an input Java-Object
      int hashCode()
      Generates a Hash-Code for 'this' instance
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • trustTokenOperationDone

        🡅  🡇     🗕  🗗  🗖
        public trustTokenOperationDone​(java.lang.String status,
                                       java.lang.String type,
                                       java.lang.String requestId,
                                       java.lang.String topLevelOrigin,
                                       java.lang.String issuerOrigin,
                                       java.lang.Integer issuedTokenCount)
        Constructor
        Parameters:
        status - Detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
        Acceptable Values: ["Ok", "InvalidArgument", "FailedPrecondition", "ResourceExhausted", "AlreadyExists", "Unavailable", "BadResponse", "InternalError", "UnknownError", "FulfilledLocally"]
        type - -
        requestId - -
        topLevelOrigin - Top level origin. The context in which the operation was attempted.
        OPTIONAL
        issuerOrigin - Origin of the issuer in case of a "Issuance" or "Redemption" operation.
        OPTIONAL
        issuedTokenCount - The number of obtained Trust Tokens on a successful "Issuance" operation.
        OPTIONAL
    • Method Detail

      • optionals

        🡅  🡇     🗕  🗗  🗖
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.
      • equals

        🡅  🡇     🗕  🗗  🗖
        public boolean equals​(java.lang.Object other)
        Checks whether 'this' equals an input Java-Object
        Overrides:
        equals in class java.lang.Object
      • hashCode

        🡅     🗕  🗗  🗖
        public int hashCode()
        Generates a Hash-Code for 'this' instance
        Overrides:
        hashCode in class java.lang.Object