MultiAddressBalance.smali

.class public Linfo/blockchain/api/data/MultiAddressBalance;
.super Ljava/lang/Object;
.source "MultiAddressBalance.java"


# instance fields
.field private finalBalance:Ljava/math/BigInteger;
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "final_balance"
    .end annotation
.end field

.field private totalReceived:Ljava/math/BigInteger;
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "total_received"
    .end annotation
.end field

.field private totalSent:Ljava/math/BigInteger;
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "total_sent"
    .end annotation
.end field

.field private txCount:I
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "n_tx"
    .end annotation
.end field

.field private txCountFiltered:I
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "n_tx_filtered"
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static fromJson(Ljava/lang/String;)Linfo/blockchain/api/data/MultiAddressBalance;
    .registers 3
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonIgnore;
    .end annotation

    .prologue
    .line 70
    new-instance v0, Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-direct {v0}, Lcom/fasterxml/jackson/databind/ObjectMapper;-><init>()V

    const-class v1, Linfo/blockchain/api/data/MultiAddressBalance;

    invoke-virtual {v0, p0, v1}, Lcom/fasterxml/jackson/databind/ObjectMapper;->readValue(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Linfo/blockchain/api/data/MultiAddressBalance;

    return-object v0
.end method


# virtual methods
.method public getFinalBalance()Ljava/math/BigInteger;
    .registers 2

    .prologue
    .line 45
    iget-object v0, p0, Linfo/blockchain/api/data/MultiAddressBalance;->finalBalance:Ljava/math/BigInteger;

    return-object v0
.end method

.method public getTotalReceived()Ljava/math/BigInteger;
    .registers 2

    .prologue
    .line 37
    iget-object v0, p0, Linfo/blockchain/api/data/MultiAddressBalance;->totalReceived:Ljava/math/BigInteger;

    return-object v0
.end method

.method public getTotalSent()Ljava/math/BigInteger;
    .registers 2

    .prologue
    .line 41
    iget-object v0, p0, Linfo/blockchain/api/data/MultiAddressBalance;->totalSent:Ljava/math/BigInteger;

    return-object v0
.end method

.method public getTxCount()I
    .registers 2

    .prologue
    .line 29
    iget v0, p0, Linfo/blockchain/api/data/MultiAddressBalance;->txCount:I

    return v0
.end method

.method public getTxCountFiltered()I
    .registers 2

    .prologue
    .line 61
    iget v0, p0, Linfo/blockchain/api/data/MultiAddressBalance;->txCountFiltered:I

    return v0
.end method

.method public setFinalBalance(Ljava/math/BigInteger;)V
    .registers 2

    .prologue
    .line 49
    iput-object p1, p0, Linfo/blockchain/api/data/MultiAddressBalance;->finalBalance:Ljava/math/BigInteger;

    .line 50
    return-void
.end method

.method public setTotalReceived(Ljava/math/BigInteger;)V
    .registers 2

    .prologue
    .line 53
    iput-object p1, p0, Linfo/blockchain/api/data/MultiAddressBalance;->totalReceived:Ljava/math/BigInteger;

    .line 54
    return-void
.end method

.method public setTotalSent(Ljava/math/BigInteger;)V
    .registers 2

    .prologue
    .line 57
    iput-object p1, p0, Linfo/blockchain/api/data/MultiAddressBalance;->totalSent:Ljava/math/BigInteger;

    .line 58
    return-void
.end method

.method public setTxCount(I)V
    .registers 2

    .prologue
    .line 33
    iput p1, p0, Linfo/blockchain/api/data/MultiAddressBalance;->txCount:I

    .line 34
    return-void
.end method

.method public setTxCountFiltered(I)V
    .registers 2

    .prologue
    .line 65
    iput p1, p0, Linfo/blockchain/api/data/MultiAddressBalance;->txCountFiltered:I

    .line 66
    return-void
.end method

.method public toJson()Ljava/lang/String;
    .registers 2
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonIgnore;
    .end annotation

    .prologue
    .line 75
    new-instance v0, Lcom/fasterxml/jackson/databind/ObjectMapper;

    invoke-direct {v0}, Lcom/fasterxml/jackson/databind/ObjectMapper;-><init>()V

    invoke-virtual {v0, p0}, Lcom/fasterxml/jackson/databind/ObjectMapper;->writeValueAsString(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method