Package org.onyx.api

Class ActionSum

java.lang.Object
org.onyx.api.ActionSum

public class ActionSum extends Object
ActionSum objects are what's returned by SumBuilder method in Action class. Different from other regular API objects, the amount field in ActionSum represents the summation of the amount fields of those matching actions, and all other fields represent the parameters by which to group actions. Please refer to Action class for more details about the SumBuilder method.
  • Field Details

    • amount

      @Expose public long amount
      Summation of the amount fields of the matching actions
    • type

      @Expose public String type
      The type of the action. Currently, there are three options: "issue", "transfer", "retire".
    • id

      @Expose public String id
      A unique ID.
    • transactionId

      @SerializedName("transaction_id") @Expose public String transactionId
      The ID of the transaction in which the action appears.
    • timestamp

      @Expose public Date timestamp
      Time of the action.
    • assetId

      @SerializedName("asset_id") @Expose public String assetId
      The ID of the asset of the tokens held by the action.
    • sourceAccountId

      @SerializedName("source_account_id") @Expose public String sourceAccountId
      The ID of the source account executing the action.
    • destinationAccountId

      @SerializedName("destination_account_id") @Expose public String destinationAccountId
      The ID of the destination account affected by the action.
    • snapshot

      @SerializedName("snapshot") @Expose public Action.Snapshot snapshot
      A copy of the associated tags (asset, source account, destination account, action, and token) as they existed at the time of the transaction.
    • tags

      @SerializedName("tags") @Expose public Map<String,Object> tags
      User-specified key-value data embedded in the action.
  • Constructor Details

    • ActionSum

      public ActionSum()