d.smali
.class public Lsg/bigolive/revenue64/component/gift/bean/d;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lsg/bigo/svcapi/proto/Marshallable;
# instance fields
.field public a:I
.field public b:S
# direct methods
.method public constructor <init>()V
.registers 1
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hashCode()I
.registers 2
.line 45
iget v0, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->a:I
return v0
.end method
.method public marshall(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
.registers 3
.line 28
iget v0, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->a:I
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
.line 29
iget-short v0, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->b:S
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
return-object p1
.end method
.method public size()I
.registers 2
const/4 v0, 0x6
return v0
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 50
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "VGiftVersion{giftId="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v1, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->a:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", giftVersion="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-short v1, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->b:S
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public unmarshall(Ljava/nio/ByteBuffer;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lsg/bigo/svcapi/proto/InvalidProtocolData;
}
.end annotation
.line 36
:try_start_0
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I
move-result v0
iput v0, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->a:I
.line 37
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getShort()S
move-result p1
iput-short p1, p0, Lsg/bigolive/revenue64/component/gift/bean/d;->b:S
:try_end_c
.catch Ljava/nio/BufferUnderflowException; {:try_start_0 .. :try_end_c} :catch_d
return-void
:catch_d
move-exception p1
.line 39
new-instance v0, Lsg/bigo/svcapi/proto/InvalidProtocolData;
invoke-direct {v0, p1}, Lsg/bigo/svcapi/proto/InvalidProtocolData;-><init>(Ljava/lang/Exception;)V
throw v0
.end method