Rabbit-R1/switch port/smali/smali_classes3/io/sentry/UserFeedback.smali
2024-05-21 17:08:36 -04:00

342 lines
8.8 KiB
Smali

.class public final Lio/sentry/UserFeedback;
.super Ljava/lang/Object;
.source "UserFeedback.java"
# interfaces
.implements Lio/sentry/JsonUnknown;
.implements Lio/sentry/JsonSerializable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/sentry/UserFeedback$JsonKeys;,
Lio/sentry/UserFeedback$Deserializer;
}
.end annotation
# instance fields
.field private comments:Ljava/lang/String;
.field private email:Ljava/lang/String;
.field private final eventId:Lio/sentry/protocol/SentryId;
.field private name:Ljava/lang/String;
.field private unknown:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lio/sentry/protocol/SentryId;)V
.locals 1
const/4 v0, 0x0
.line 27
invoke-direct {p0, p1, v0, v0, v0}, Lio/sentry/UserFeedback;-><init>(Lio/sentry/protocol/SentryId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Lio/sentry/protocol/SentryId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 39
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lio/sentry/UserFeedback;->eventId:Lio/sentry/protocol/SentryId;
iput-object p2, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
iput-object p3, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
iput-object p4, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public getComments()Ljava/lang/String;
.locals 0
iget-object p0, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
return-object p0
.end method
.method public getEmail()Ljava/lang/String;
.locals 0
iget-object p0, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
return-object p0
.end method
.method public getEventId()Lio/sentry/protocol/SentryId;
.locals 0
iget-object p0, p0, Lio/sentry/UserFeedback;->eventId:Lio/sentry/protocol/SentryId;
return-object p0
.end method
.method public getName()Ljava/lang/String;
.locals 0
iget-object p0, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
return-object p0
.end method
.method public getUnknown()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object p0, p0, Lio/sentry/UserFeedback;->unknown:Ljava/util/Map;
return-object p0
.end method
.method public serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 152
invoke-interface {p1}, Lio/sentry/ObjectWriter;->beginObject()Lio/sentry/ObjectWriter;
const-string v0, "event_id"
.line 153
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
iget-object v0, p0, Lio/sentry/UserFeedback;->eventId:Lio/sentry/protocol/SentryId;
.line 154
invoke-virtual {v0, p1, p2}, Lio/sentry/protocol/SentryId;->serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
iget-object v0, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
if-eqz v0, :cond_0
const-string v0, "name"
.line 156
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
move-result-object v0
iget-object v1, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
invoke-interface {v0, v1}, Lio/sentry/ObjectWriter;->value(Ljava/lang/String;)Lio/sentry/ObjectWriter;
:cond_0
iget-object v0, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
if-eqz v0, :cond_1
const-string v0, "email"
.line 159
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
move-result-object v0
iget-object v1, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
invoke-interface {v0, v1}, Lio/sentry/ObjectWriter;->value(Ljava/lang/String;)Lio/sentry/ObjectWriter;
:cond_1
iget-object v0, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
if-eqz v0, :cond_2
const-string v0, "comments"
.line 162
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
move-result-object v0
iget-object v1, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
invoke-interface {v0, v1}, Lio/sentry/ObjectWriter;->value(Ljava/lang/String;)Lio/sentry/ObjectWriter;
:cond_2
iget-object v0, p0, Lio/sentry/UserFeedback;->unknown:Ljava/util/Map;
if-eqz v0, :cond_3
.line 165
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iget-object v2, p0, Lio/sentry/UserFeedback;->unknown:Ljava/util/Map;
.line 166
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
.line 167
invoke-interface {p1, v1}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
move-result-object v1
invoke-interface {v1, p2, v2}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
goto :goto_0
.line 170
:cond_3
invoke-interface {p1}, Lio/sentry/ObjectWriter;->endObject()Lio/sentry/ObjectWriter;
return-void
.end method
.method public setComments(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
return-void
.end method
.method public setEmail(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
return-void
.end method
.method public setName(Ljava/lang/String;)V
.locals 0
iput-object p1, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
return-void
.end method
.method public setUnknown(Ljava/util/Map;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
iput-object p1, p0, Lio/sentry/UserFeedback;->unknown:Ljava/util/Map;
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 111
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "UserFeedback{eventId="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lio/sentry/UserFeedback;->eventId:Lio/sentry/protocol/SentryId;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", name=\'"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lio/sentry/UserFeedback;->name:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\', email=\'"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lio/sentry/UserFeedback;->email:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\', comments=\'"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object p0, p0, Lio/sentry/UserFeedback;->comments:Ljava/lang/String;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v0, "\'}"
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method