RawBlock.smali
.class public Linfo/blockchain/api/data/RawBlock;
.super Ljava/lang/Object;
.source "RawBlock.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 bits:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "bits"
.end annotation
.end field
.field private blockIndex:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "block_index"
.end annotation
.end field
.field private fee:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "fee"
.end annotation
.end field
.field private hash:Ljava/lang/String;
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "hash"
.end annotation
.end field
.field private height:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "height"
.end annotation
.end field
.field private mainChain:Z
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "main_chain"
.end annotation
.end field
.field private merkleRoot:Ljava/lang/String;
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "mrkl_root"
.end annotation
.end field
.field private nonce:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "nonce"
.end annotation
.end field
.field private prevBlock:Ljava/lang/String;
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "prev_block"
.end annotation
.end field
.field private receivedTime:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "received_time"
.end annotation
.end field
.field private relayedBy:Ljava/lang/String;
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "relayed_by"
.end annotation
.end field
.field private size:I
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "size"
.end annotation
.end field
.field private time:J
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "time"
.end annotation
.end field
.field private tx:Ljava/util/ArrayList;
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "tx"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Linfo/blockchain/api/data/Transaction;",
">;"
}
.end annotation
.end field
.field private txCount:I
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "n_tx"
.end annotation
.end field
.field private ver:I
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonProperty;
value = "ver"
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static fromJson(Ljava/lang/String;)Linfo/blockchain/api/data/RawBlock;
.registers 3
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonIgnore;
.end annotation
.prologue
.line 201
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/RawBlock;
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/RawBlock;
return-object v0
.end method
# virtual methods
.method public getBits()J
.registers 3
.prologue
.line 100
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->bits:J
return-wide v0
.end method
.method public getBlockIndex()J
.registers 3
.prologue
.line 72
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->blockIndex:J
return-wide v0
.end method
.method public getFee()J
.registers 3
.prologue
.line 104
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->fee:J
return-wide v0
.end method
.method public getHash()Ljava/lang/String;
.registers 2
.prologue
.line 76
iget-object v0, p0, Linfo/blockchain/api/data/RawBlock;->hash:Ljava/lang/String;
return-object v0
.end method
.method public getHeight()J
.registers 3
.prologue
.line 80
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->height:J
return-wide v0
.end method
.method public getMerkleRoot()Ljava/lang/String;
.registers 2
.prologue
.line 96
iget-object v0, p0, Linfo/blockchain/api/data/RawBlock;->merkleRoot:Ljava/lang/String;
return-object v0
.end method
.method public getNonce()J
.registers 3
.prologue
.line 108
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->nonce:J
return-wide v0
.end method
.method public getPrevBlock()Ljava/lang/String;
.registers 2
.prologue
.line 92
iget-object v0, p0, Linfo/blockchain/api/data/RawBlock;->prevBlock:Ljava/lang/String;
return-object v0
.end method
.method public getReceivedTime()J
.registers 3
.prologue
.line 124
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->receivedTime:J
return-wide v0
.end method
.method public getRelayedBy()Ljava/lang/String;
.registers 2
.prologue
.line 128
iget-object v0, p0, Linfo/blockchain/api/data/RawBlock;->relayedBy:Ljava/lang/String;
return-object v0
.end method
.method public getSize()I
.registers 2
.prologue
.line 116
iget v0, p0, Linfo/blockchain/api/data/RawBlock;->size:I
return v0
.end method
.method public getTime()J
.registers 3
.prologue
.line 84
iget-wide v0, p0, Linfo/blockchain/api/data/RawBlock;->time:J
return-wide v0
.end method
.method public getTx()Ljava/util/ArrayList;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/ArrayList",
"<",
"Linfo/blockchain/api/data/Transaction;",
">;"
}
.end annotation
.prologue
.line 132
iget-object v0, p0, Linfo/blockchain/api/data/RawBlock;->tx:Ljava/util/ArrayList;
return-object v0
.end method
.method public getTxCount()I
.registers 2
.prologue
.line 112
iget v0, p0, Linfo/blockchain/api/data/RawBlock;->txCount:I
return v0
.end method
.method public getVer()I
.registers 2
.prologue
.line 88
iget v0, p0, Linfo/blockchain/api/data/RawBlock;->ver:I
return v0
.end method
.method public isMainChain()Z
.registers 2
.prologue
.line 120
iget-boolean v0, p0, Linfo/blockchain/api/data/RawBlock;->mainChain:Z
return v0
.end method
.method public setBits(J)V
.registers 4
.prologue
.line 164
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->bits:J
.line 165
return-void
.end method
.method public setBlockIndex(J)V
.registers 4
.prologue
.line 136
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->blockIndex:J
.line 137
return-void
.end method
.method public setFee(J)V
.registers 4
.prologue
.line 168
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->fee:J
.line 169
return-void
.end method
.method public setHash(Ljava/lang/String;)V
.registers 2
.prologue
.line 140
iput-object p1, p0, Linfo/blockchain/api/data/RawBlock;->hash:Ljava/lang/String;
.line 141
return-void
.end method
.method public setHeight(J)V
.registers 4
.prologue
.line 144
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->height:J
.line 145
return-void
.end method
.method public setMainChain(Z)V
.registers 2
.prologue
.line 184
iput-boolean p1, p0, Linfo/blockchain/api/data/RawBlock;->mainChain:Z
.line 185
return-void
.end method
.method public setMerkleRoot(Ljava/lang/String;)V
.registers 2
.prologue
.line 160
iput-object p1, p0, Linfo/blockchain/api/data/RawBlock;->merkleRoot:Ljava/lang/String;
.line 161
return-void
.end method
.method public setNonce(J)V
.registers 4
.prologue
.line 172
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->nonce:J
.line 173
return-void
.end method
.method public setPrevBlock(Ljava/lang/String;)V
.registers 2
.prologue
.line 156
iput-object p1, p0, Linfo/blockchain/api/data/RawBlock;->prevBlock:Ljava/lang/String;
.line 157
return-void
.end method
.method public setReceivedTime(J)V
.registers 4
.prologue
.line 188
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->receivedTime:J
.line 189
return-void
.end method
.method public setRelayedBy(Ljava/lang/String;)V
.registers 2
.prologue
.line 192
iput-object p1, p0, Linfo/blockchain/api/data/RawBlock;->relayedBy:Ljava/lang/String;
.line 193
return-void
.end method
.method public setSize(I)V
.registers 2
.prologue
.line 180
iput p1, p0, Linfo/blockchain/api/data/RawBlock;->size:I
.line 181
return-void
.end method
.method public setTime(J)V
.registers 4
.prologue
.line 148
iput-wide p1, p0, Linfo/blockchain/api/data/RawBlock;->time:J
.line 149
return-void
.end method
.method public setTx(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 196
iput-object p1, p0, Linfo/blockchain/api/data/RawBlock;->tx:Ljava/util/ArrayList;
.line 197
return-void
.end method
.method public setTxCount(I)V
.registers 2
.prologue
.line 176
iput p1, p0, Linfo/blockchain/api/data/RawBlock;->txCount:I
.line 177
return-void
.end method
.method public setVer(I)V
.registers 2
.prologue
.line 152
iput p1, p0, Linfo/blockchain/api/data/RawBlock;->ver:I
.line 153
return-void
.end method
.method public toJson()Ljava/lang/String;
.registers 2
.annotation runtime Lcom/fasterxml/jackson/annotation/JsonIgnore;
.end annotation
.prologue
.line 206
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