XpubFull.smali

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


# annotations
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonAutoDetect;
    creatorVisibility = .enum Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;->NONE:Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;
    fieldVisibility = .enum Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;->NONE:Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;
    getterVisibility = .enum Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;->NONE:Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;
    isGetterVisibility = .enum Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;->NONE:Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;
    setterVisibility = .enum Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;->NONE:Lcom/fasterxml/jackson/annotation/JsonAutoDetect$Visibility;
.end annotation

.annotation runtime Lcom/fasterxml/jackson/annotation/JsonIgnoreProperties;
    ignoreUnknown = true
.end annotation

.annotation runtime Lcom/fasterxml/jackson/annotation/JsonInclude;
    value = .enum Lcom/fasterxml/jackson/annotation/JsonInclude$Include;->NON_NULL:Lcom/fasterxml/jackson/annotation/JsonInclude$Include;
.end annotation


# instance fields
.field private accountIndex:I
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "account_index"
    .end annotation
.end field

.field private address:Ljava/lang/String;
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "address"
    .end annotation
.end field

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

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

.field private gapLimit:I
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "gap_limit"
    .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 txs:Ljava/util/ArrayList;
    .annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
        value = "txs"
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Linfo/blockchain/api/data/Transaction;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Linfo/blockchain/api/data/AddressSummary;Ljava/util/ArrayList;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Linfo/blockchain/api/data/AddressSummary;",
            "Ljava/util/ArrayList",
            "<",
            "Linfo/blockchain/api/data/Transaction;",
            ">;)V"
        }
    .end annotation

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

    .line 131
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getAddress()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Linfo/blockchain/api/data/XpubFull;->address:Ljava/lang/String;

    .line 132
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getTxCount()I

    move-result v0

    iput v0, p0, Linfo/blockchain/api/data/XpubFull;->txCount:I

    .line 133
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getAccountIndex()I

    move-result v0

    iput v0, p0, Linfo/blockchain/api/data/XpubFull;->accountIndex:I

    .line 134
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getChangeIndex()I

    move-result v0

    iput v0, p0, Linfo/blockchain/api/data/XpubFull;->changeIndex:I

    .line 135
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getFinalBalance()Ljava/math/BigInteger;

    move-result-object v0

    iput-object v0, p0, Linfo/blockchain/api/data/XpubFull;->finalBalance:Ljava/math/BigInteger;

    .line 136
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getGapLimit()I

    move-result v0

    iput v0, p0, Linfo/blockchain/api/data/XpubFull;->gapLimit:I

    .line 137
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getTotalReceived()Ljava/math/BigInteger;

    move-result-object v0

    iput-object v0, p0, Linfo/blockchain/api/data/XpubFull;->totalReceived:Ljava/math/BigInteger;

    .line 138
    invoke-virtual {p1}, Linfo/blockchain/api/data/AddressSummary;->getTotalSent()Ljava/math/BigInteger;

    move-result-object v0

    iput-object v0, p0, Linfo/blockchain/api/data/XpubFull;->totalSent:Ljava/math/BigInteger;

    .line 139
    iput-object p2, p0, Linfo/blockchain/api/data/XpubFull;->txs:Ljava/util/ArrayList;

    .line 140
    return-void
.end method

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

    .prologue
    .line 122
    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/AddressFull;

    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/AddressFull;

    return-object v0
.end method


# virtual methods
.method public getAccountIndex()I
    .registers 2

    .prologue
    .line 77
    iget v0, p0, Linfo/blockchain/api/data/XpubFull;->accountIndex:I

    return v0
.end method

.method public getAddress()Ljava/lang/String;
    .registers 2

    .prologue
    .line 49
    iget-object v0, p0, Linfo/blockchain/api/data/XpubFull;->address:Ljava/lang/String;

    return-object v0
.end method

.method public getChangeIndex()I
    .registers 2

    .prologue
    .line 73
    iget v0, p0, Linfo/blockchain/api/data/XpubFull;->changeIndex:I

    return v0
.end method

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

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

    return-object v0
.end method

.method public getGapLimit()I
    .registers 2

    .prologue
    .line 105
    iget v0, p0, Linfo/blockchain/api/data/XpubFull;->gapLimit:I

    return v0
.end method

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

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

    return-object v0
.end method

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

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

    return-object v0
.end method

.method public getTxCount()I
    .registers 2

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

    return v0
.end method

.method public getTxs()Ljava/util/ArrayList;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Linfo/blockchain/api/data/Transaction;",
            ">;"
        }
    .end annotation

    .prologue
    .line 113
    iget-object v0, p0, Linfo/blockchain/api/data/XpubFull;->txs:Ljava/util/ArrayList;

    return-object v0
.end method

.method public setAccountIndex(I)V
    .registers 2

    .prologue
    .line 101
    iput p1, p0, Linfo/blockchain/api/data/XpubFull;->accountIndex:I

    .line 102
    return-void
.end method

.method public setAddress(Ljava/lang/String;)V
    .registers 2

    .prologue
    .line 85
    iput-object p1, p0, Linfo/blockchain/api/data/XpubFull;->address:Ljava/lang/String;

    .line 86
    return-void
.end method

.method public setChangeIndex(I)V
    .registers 2

    .prologue
    .line 97
    iput p1, p0, Linfo/blockchain/api/data/XpubFull;->changeIndex:I

    .line 98
    return-void
.end method

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

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

    .line 82
    return-void
.end method

.method public setGapLimit(I)V
    .registers 2

    .prologue
    .line 109
    iput p1, p0, Linfo/blockchain/api/data/XpubFull;->gapLimit:I

    .line 110
    return-void
.end method

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

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

    .line 90
    return-void
.end method

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

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

    .line 94
    return-void
.end method

.method public setTxCount(I)V
    .registers 2

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

    .line 58
    return-void
.end method

.method public setTxs(Ljava/util/ArrayList;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Linfo/blockchain/api/data/Transaction;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 117
    iput-object p1, p0, Linfo/blockchain/api/data/XpubFull;->txs:Ljava/util/ArrayList;

    .line 118
    return-void
.end method

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

    .prologue
    .line 127
    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