.class public Lcom/discord/models/domain/ModelVoiceRegion; .super Ljava/lang/Object; .source "ModelVoiceRegion.java" # interfaces .implements Lcom/discord/models/domain/Model; # instance fields .field public deprecated:Z .field public id:Ljava/lang/String; .field public name:Ljava/lang/String; .field public optimal:Z .field public sampleHostname:Ljava/lang/String; .field public samplePort:I # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public assignField(Lcom/discord/models/domain/Model$JsonReader;)V .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->nextName()Ljava/lang/String; move-result-object v0 invoke-virtual {v0}, Ljava/lang/String;->hashCode()I move-result v1 const/4 v2, 0x5 const/4 v3, 0x4 const/4 v4, 0x3 const/4 v5, 0x2 const/4 v6, 0x1 sparse-switch v1, :sswitch_data_0 goto :goto_0 :sswitch_0 const-string v1, "sample_port" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x3 goto :goto_1 :sswitch_1 const-string v1, "sample_hostname" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x4 goto :goto_1 :sswitch_2 const-string v1, "name" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_1 :sswitch_3 const-string v1, "id" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x0 goto :goto_1 :sswitch_4 const-string v1, "optimal" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x2 goto :goto_1 :sswitch_5 const-string v1, "deprecated" invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x5 goto :goto_1 :cond_0 :goto_0 const/4 v0, -0x1 :goto_1 if-eqz v0, :cond_6 if-eq v0, v6, :cond_5 if-eq v0, v5, :cond_4 if-eq v0, v4, :cond_3 if-eq v0, v3, :cond_2 if-eq v0, v2, :cond_1 invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->skipValue()V goto :goto_2 :cond_1 iget-boolean v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->deprecated:Z invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z move-result p1 iput-boolean p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->deprecated:Z goto :goto_2 :cond_2 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String; invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextString(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String; goto :goto_2 :cond_3 iget v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextInt(I)I move-result p1 iput p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I goto :goto_2 :cond_4 iget-boolean v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->optimal:Z invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBoolean(Z)Z move-result p1 iput-boolean p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->optimal:Z goto :goto_2 :cond_5 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String; invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextString(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String; goto :goto_2 :cond_6 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String; invoke-virtual {p1, v0}, Lcom/discord/models/domain/Model$JsonReader;->nextString(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 iput-object p1, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String; :goto_2 return-void :sswitch_data_0 .sparse-switch -0x614b9a4d -> :sswitch_5 -0x4a79827e -> :sswitch_4 0xd1b -> :sswitch_3 0x337a8b -> :sswitch_2 0x317d728 -> :sswitch_1 0x920d5f6 -> :sswitch_0 .end sparse-switch .end method .method public canEqual(Ljava/lang/Object;)Z .locals 0 instance-of p1, p1, Lcom/discord/models/domain/ModelVoiceRegion; return p1 .end method .method public equals(Ljava/lang/Object;)Z .locals 4 const/4 v0, 0x1 if-ne p1, p0, :cond_0 return v0 :cond_0 instance-of v1, p1, Lcom/discord/models/domain/ModelVoiceRegion; const/4 v2, 0x0 if-nez v1, :cond_1 return v2 :cond_1 check-cast p1, Lcom/discord/models/domain/ModelVoiceRegion; invoke-virtual {p1, p0}, Lcom/discord/models/domain/ModelVoiceRegion;->canEqual(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_2 return v2 :cond_2 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String; move-result-object v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String; move-result-object v3 if-nez v1, :cond_3 if-eqz v3, :cond_4 goto :goto_0 :cond_3 invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_4 :goto_0 return v2 :cond_4 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String; move-result-object v3 if-nez v1, :cond_5 if-eqz v3, :cond_6 goto :goto_1 :cond_5 invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_6 :goto_1 return v2 :cond_6 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isOptimal()Z move-result v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->isOptimal()Z move-result v3 if-eq v1, v3, :cond_7 return v2 :cond_7 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I move-result v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I move-result v3 if-eq v1, v3, :cond_8 return v2 :cond_8 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String; move-result-object v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String; move-result-object v3 if-nez v1, :cond_9 if-eqz v3, :cond_a goto :goto_2 :cond_9 invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_a :goto_2 return v2 :cond_a invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isDeprecated()Z move-result v1 invoke-virtual {p1}, Lcom/discord/models/domain/ModelVoiceRegion;->isDeprecated()Z move-result p1 if-eq v1, p1, :cond_b return v2 :cond_b return v0 .end method .method public getId()Ljava/lang/String; .locals 1 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->id:Ljava/lang/String; return-object v0 .end method .method public getName()Ljava/lang/String; .locals 1 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->name:Ljava/lang/String; return-object v0 .end method .method public getSampleHostname()Ljava/lang/String; .locals 1 iget-object v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->sampleHostname:Ljava/lang/String; return-object v0 .end method .method public getSamplePort()I .locals 1 iget v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->samplePort:I return v0 .end method .method public hashCode()I .locals 6 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String; move-result-object v0 const/16 v1, 0x2b if-nez v0, :cond_0 const/16 v0, 0x2b goto :goto_0 :cond_0 invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result v0 :goto_0 const/16 v2, 0x3b add-int/2addr v0, v2 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String; move-result-object v3 mul-int/lit8 v0, v0, 0x3b if-nez v3, :cond_1 const/16 v3, 0x2b goto :goto_1 :cond_1 invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I move-result v3 :goto_1 add-int/2addr v0, v3 mul-int/lit8 v0, v0, 0x3b invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isOptimal()Z move-result v3 const/16 v4, 0x4f const/16 v5, 0x61 if-eqz v3, :cond_2 const/16 v3, 0x4f goto :goto_2 :cond_2 const/16 v3, 0x61 :goto_2 add-int/2addr v0, v3 mul-int/lit8 v0, v0, 0x3b invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I move-result v3 add-int/2addr v3, v0 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String; move-result-object v0 mul-int/lit8 v3, v3, 0x3b if-nez v0, :cond_3 goto :goto_3 :cond_3 invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result v1 :goto_3 add-int/2addr v3, v1 mul-int/lit8 v3, v3, 0x3b invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isDeprecated()Z move-result v0 if-eqz v0, :cond_4 goto :goto_4 :cond_4 const/16 v4, 0x61 :goto_4 add-int/2addr v3, v4 return v3 .end method .method public isDeprecated()Z .locals 1 iget-boolean v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->deprecated:Z return v0 .end method .method public isOptimal()Z .locals 1 iget-boolean v0, p0, Lcom/discord/models/domain/ModelVoiceRegion;->optimal:Z return v0 .end method .method public toString()Ljava/lang/String; .locals 2 const-string v0, "ModelVoiceRegion(id=" invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getId()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ", name=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ", optimal=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isOptimal()Z move-result v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; const-string v1, ", samplePort=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSamplePort()I move-result v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, ", sampleHostname=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->getSampleHostname()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ", deprecated=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p0}, Lcom/discord/models/domain/ModelVoiceRegion;->isDeprecated()Z move-result v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; const-string v1, ")" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method