Class ResourceRef
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.PathResponse
-
- com.algorand.algosdk.v2.client.model.ResourceRef
-
public class ResourceRef extends PathResponse
ResourceRef names a single resource. Only one of the fields should be set.
-
-
Field Summary
Fields Modifier and Type Field Description Address
address
Long
applicationId
(p) Application id whose GlobalState may be read by the executing ApprovalProgram or ClearStateProgram.Long
assetId
(s) Asset whose AssetParams may be read by the executing ApprovalProgram or ClearStateProgram.BoxReference
box
BoxReference names a box by its name and the application ID it belongs to.HoldingRef
holding
HoldingRef names a holding by referring to an Address and Asset it belongs to.LocalsRef
local
LocalsRef names a local state by referring to an Address and App it belongs to.
-
Constructor Summary
Constructors Constructor Description ResourceRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
address()
void
address(String address)
(d) Account whose balance record is accessible by the executing ApprovalProgram or ClearStateProgram.boolean
equals(Object o)
-
Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
-
-
-
-
Field Detail
-
address
public Address address
-
applicationId
public Long applicationId
(p) Application id whose GlobalState may be read by the executing ApprovalProgram or ClearStateProgram.
-
assetId
public Long assetId
(s) Asset whose AssetParams may be read by the executing ApprovalProgram or ClearStateProgram.
-
box
public BoxReference box
BoxReference names a box by its name and the application ID it belongs to.
-
holding
public HoldingRef holding
HoldingRef names a holding by referring to an Address and Asset it belongs to.
-
local
public LocalsRef local
LocalsRef names a local state by referring to an Address and App it belongs to.
-
-
Method Detail
-
address
public void address(String address) throws NoSuchAlgorithmException
(d) Account whose balance record is accessible by the executing ApprovalProgram or ClearStateProgram.- Throws:
NoSuchAlgorithmException
-
address
public String address() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-