.class public final Lio/sentry/protocol/Geo; .super Ljava/lang/Object; .source "Geo.java" # interfaces .implements Lio/sentry/JsonUnknown; .implements Lio/sentry/JsonSerializable; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lio/sentry/protocol/Geo$JsonKeys;, Lio/sentry/protocol/Geo$Deserializer; } .end annotation # instance fields .field private city:Ljava/lang/String; .field private countryCode:Ljava/lang/String; .field private region: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 ()V .locals 0 .line 30 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public constructor (Lio/sentry/protocol/Geo;)V .locals 1 .line 32 invoke-direct {p0}, Ljava/lang/Object;->()V .line 33 iget-object v0, p1, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; iput-object v0, p0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; .line 34 iget-object v0, p1, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; iput-object v0, p0, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; .line 35 iget-object p1, p1, Lio/sentry/protocol/Geo;->region:Ljava/lang/String; iput-object p1, p0, Lio/sentry/protocol/Geo;->region:Ljava/lang/String; return-void .end method .method static synthetic access$002(Lio/sentry/protocol/Geo;Ljava/lang/String;)Ljava/lang/String; .locals 0 .line 16 iput-object p1, p0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; return-object p1 .end method .method static synthetic access$102(Lio/sentry/protocol/Geo;Ljava/lang/String;)Ljava/lang/String; .locals 0 .line 16 iput-object p1, p0, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; return-object p1 .end method .method static synthetic access$202(Lio/sentry/protocol/Geo;Ljava/lang/String;)Ljava/lang/String; .locals 0 .line 16 iput-object p1, p0, Lio/sentry/protocol/Geo;->region:Ljava/lang/String; return-object p1 .end method .method public static fromMap(Ljava/util/Map;)Lio/sentry/protocol/Geo; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;)", "Lio/sentry/protocol/Geo;" } .end annotation .line 45 new-instance v0, Lio/sentry/protocol/Geo; invoke-direct {v0}, Lio/sentry/protocol/Geo;->()V .line 46 invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p0 invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_6 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/util/Map$Entry; .line 47 invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v2 .line 48 invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; invoke-virtual {v1}, Ljava/lang/String;->hashCode()I invoke-virtual {v1}, Ljava/lang/String;->hashCode()I move-result v3 const/4 v4, -0x1 sparse-switch v3, :sswitch_data_0 goto :goto_1 :sswitch_0 const-string v3, "country_code" invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_0 goto :goto_1 :cond_0 const/4 v4, 0x2 goto :goto_1 :sswitch_1 const-string v3, "city" invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_1 goto :goto_1 :cond_1 const/4 v4, 0x1 goto :goto_1 :sswitch_2 const-string v3, "region" invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_2 goto :goto_1 :cond_2 const/4 v4, 0x0 :goto_1 const/4 v1, 0x0 packed-switch v4, :pswitch_data_0 goto :goto_0 .line 53 :pswitch_0 instance-of v3, v2, Ljava/lang/String; if-eqz v3, :cond_3 move-object v1, v2 check-cast v1, Ljava/lang/String; :cond_3 iput-object v1, v0, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; goto :goto_0 .line 50 :pswitch_1 instance-of v3, v2, Ljava/lang/String; if-eqz v3, :cond_4 move-object v1, v2 check-cast v1, Ljava/lang/String; :cond_4 iput-object v1, v0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; goto :goto_0 .line 56 :pswitch_2 instance-of v3, v2, Ljava/lang/String; if-eqz v3, :cond_5 move-object v1, v2 check-cast v1, Ljava/lang/String; :cond_5 iput-object v1, v0, Lio/sentry/protocol/Geo;->region:Ljava/lang/String; goto :goto_0 :cond_6 return-object v0 nop :sswitch_data_0 .sparse-switch -0x37b7d90c -> :sswitch_2 0x2e996b -> :sswitch_1 0x58475cf6 -> :sswitch_0 .end sparse-switch :pswitch_data_0 .packed-switch 0x0 :pswitch_2 :pswitch_1 :pswitch_0 .end packed-switch .end method # virtual methods .method public getCity()Ljava/lang/String; .locals 0 iget-object p0, p0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; return-object p0 .end method .method public getCountryCode()Ljava/lang/String; .locals 0 iget-object p0, p0, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; return-object p0 .end method .method public getRegion()Ljava/lang/String; .locals 0 iget-object p0, p0, Lio/sentry/protocol/Geo;->region: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/protocol/Geo;->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 141 invoke-interface {p1}, Lio/sentry/ObjectWriter;->beginObject()Lio/sentry/ObjectWriter; iget-object v0, p0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; if-eqz v0, :cond_0 const-string v0, "city" .line 143 invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter; move-result-object v0 iget-object v1, p0, Lio/sentry/protocol/Geo;->city: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/protocol/Geo;->countryCode:Ljava/lang/String; if-eqz v0, :cond_1 const-string v0, "country_code" .line 146 invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter; move-result-object v0 iget-object v1, p0, Lio/sentry/protocol/Geo;->countryCode: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/protocol/Geo;->region:Ljava/lang/String; if-eqz v0, :cond_2 const-string v0, "region" .line 149 invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter; move-result-object v0 iget-object v1, p0, Lio/sentry/protocol/Geo;->region: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/protocol/Geo;->unknown:Ljava/util/Map; if-eqz v0, :cond_3 .line 152 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/protocol/Geo;->unknown:Ljava/util/Map; .line 153 invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v2 .line 154 invoke-interface {p1, v1}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter; .line 155 invoke-interface {p1, p2, v2}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter; goto :goto_0 .line 158 :cond_3 invoke-interface {p1}, Lio/sentry/ObjectWriter;->endObject()Lio/sentry/ObjectWriter; return-void .end method .method public setCity(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lio/sentry/protocol/Geo;->city:Ljava/lang/String; return-void .end method .method public setCountryCode(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lio/sentry/protocol/Geo;->countryCode:Ljava/lang/String; return-void .end method .method public setRegion(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lio/sentry/protocol/Geo;->region: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/protocol/Geo;->unknown:Ljava/util/Map; return-void .end method