157 lines
4.2 KiB
Smali
157 lines
4.2 KiB
Smali
|
.class Lcom/bugsnag/android/User;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "User.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/bugsnag/android/JsonStream$Streamable;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private email:Ljava/lang/String;
|
||
|
|
||
|
.field private id:Ljava/lang/String;
|
||
|
|
||
|
.field private name:Ljava/lang/String;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Lcom/bugsnag/android/User;)V
|
||
|
.locals 3
|
||
|
.param p1, "u" # Lcom/bugsnag/android/User;
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p1, Lcom/bugsnag/android/User;->id:Ljava/lang/String;
|
||
|
|
||
|
iget-object v1, p1, Lcom/bugsnag/android/User;->email:Ljava/lang/String;
|
||
|
|
||
|
iget-object v2, p1, Lcom/bugsnag/android/User;->name:Ljava/lang/String;
|
||
|
|
||
|
invoke-direct {p0, v0, v1, v2}, Lcom/bugsnag/android/User;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
.param p1, "id" # Ljava/lang/String;
|
||
|
.param p2, "email" # Ljava/lang/String;
|
||
|
.param p3, "name" # Ljava/lang/String;
|
||
|
|
||
|
.prologue
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lcom/bugsnag/android/User;->id:Ljava/lang/String;
|
||
|
|
||
|
iput-object p2, p0, Lcom/bugsnag/android/User;->email:Ljava/lang/String;
|
||
|
|
||
|
iput-object p3, p0, Lcom/bugsnag/android/User;->name:Ljava/lang/String;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public setEmail(Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
.param p1, "email" # Ljava/lang/String;
|
||
|
|
||
|
.prologue
|
||
|
iput-object p1, p0, Lcom/bugsnag/android/User;->email:Ljava/lang/String;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setId(Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
.param p1, "id" # Ljava/lang/String;
|
||
|
|
||
|
.prologue
|
||
|
iput-object p1, p0, Lcom/bugsnag/android/User;->id:Ljava/lang/String;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setName(Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
.param p1, "name" # Ljava/lang/String;
|
||
|
|
||
|
.prologue
|
||
|
iput-object p1, p0, Lcom/bugsnag/android/User;->name:Ljava/lang/String;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public toStream(Lcom/bugsnag/android/JsonStream;)V
|
||
|
.locals 2
|
||
|
.param p1, "writer" # Lcom/bugsnag/android/JsonStream;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
invoke-virtual {p1}, Lcom/bugsnag/android/JsonStream;->beginObject()Lcom/bugsnag/android/JsonWriter;
|
||
|
|
||
|
iget-object v0, p0, Lcom/bugsnag/android/User;->id:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
const-string v0, "id"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/bugsnag/android/JsonStream;->name(Ljava/lang/String;)Lcom/bugsnag/android/JsonStream;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/bugsnag/android/User;->id:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/bugsnag/android/JsonStream;->value(Ljava/lang/String;)Lcom/bugsnag/android/JsonWriter;
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/bugsnag/android/User;->email:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "email"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/bugsnag/android/JsonStream;->name(Ljava/lang/String;)Lcom/bugsnag/android/JsonStream;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/bugsnag/android/User;->email:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/bugsnag/android/JsonStream;->value(Ljava/lang/String;)Lcom/bugsnag/android/JsonWriter;
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lcom/bugsnag/android/User;->name:Ljava/lang/String;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "name"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/bugsnag/android/JsonStream;->name(Ljava/lang/String;)Lcom/bugsnag/android/JsonStream;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/bugsnag/android/User;->name:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/bugsnag/android/JsonStream;->value(Ljava/lang/String;)Lcom/bugsnag/android/JsonWriter;
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual {p1}, Lcom/bugsnag/android/JsonStream;->endObject()Lcom/bugsnag/android/JsonWriter;
|
||
|
|
||
|
return-void
|
||
|
.end method
|