59 lines
1.5 KiB
Smali
59 lines
1.5 KiB
Smali
.class public Lcsdk/glucustomersupport/NotificationCountEvent;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcsdk/glucustomersupport/util/ISerializableJsonObject;
|
|
|
|
|
|
# instance fields
|
|
.field public final count:I
|
|
|
|
.field public final error:Ljava/lang/Throwable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(ILjava/lang/Throwable;)V
|
|
.locals 0
|
|
|
|
.line 14
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lcsdk/glucustomersupport/NotificationCountEvent;->count:I
|
|
|
|
iput-object p2, p0, Lcsdk/glucustomersupport/NotificationCountEvent;->error:Ljava/lang/Throwable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public write(Lorg/json/JSONStringer;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
iget v0, p0, Lcsdk/glucustomersupport/NotificationCountEvent;->count:I
|
|
|
|
.line 21
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "count"
|
|
|
|
invoke-static {p1, v1, v0}, Lcsdk/glucustomersupport/util/JsonUtil;->optKeyValue(Lorg/json/JSONStringer;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
const-string v0, "error"
|
|
|
|
iget-object v1, p0, Lcsdk/glucustomersupport/NotificationCountEvent;->error:Ljava/lang/Throwable;
|
|
|
|
.line 22
|
|
invoke-static {p1, v0, v1}, Lcsdk/glucustomersupport/util/JsonUtil;->optKeyValue(Lorg/json/JSONStringer;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|