From 203785a112052f38c796bb6d9a5cef3a884cdbac Mon Sep 17 00:00:00 2001 From: Jason Elie Bou Kheir <5115126+jasonboukheir@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:27:08 -0700 Subject: [PATCH] feat(indexer): :sparkles: implement `AssetHolding` --- .../CareBoo.AlgoSdk/AlgoApi/Models/AssetHolding.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/AssetHolding.cs b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/AssetHolding.cs index cbe4f0913..fae7b8061 100644 --- a/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/AssetHolding.cs +++ b/Packages/com.careboo.unity-algorand-sdk/CareBoo.AlgoSdk/AlgoApi/Models/AssetHolding.cs @@ -8,13 +8,25 @@ public struct AssetHolding { [AlgoApiKey("amount")] public ulong Amount; + [AlgoApiKey("asset-id")] public ulong AssetId; + [AlgoApiKey("creator")] public Address Creator; + + [AlgoApiKey("deleted")] + public Optional Deleted; + [AlgoApiKey("is-frozen")] public bool IsFrozen; + [AlgoApiKey("opted-in-at-round")] + public Optional OptedInAtRound; + + [AlgoApiKey("opted-out-at-round")] + public Optional OptedOutAtRound; + public bool Equals(AssetHolding other) { return Amount.Equals(other.Amount)