VKApiUserFull$Relative.smali
.class public Lcom/vk/sdk/api/model/VKApiUserFull$Relative;
.super Lcom/vk/sdk/api/model/VKApiModel;
.source "VKApiUserFull.java"
# interfaces
.implements Landroid/os/Parcelable;
.implements Lcom/vk/sdk/api/model/a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vk/sdk/api/model/VKApiUserFull;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Relative"
.end annotation
# static fields
.field public static b:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/vk/sdk/api/model/VKApiUserFull$Relative;",
">;"
}
.end annotation
.end field
# instance fields
.field public c:I
.field public d:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 1
new-instance v0, Lcom/vk/sdk/api/model/J;
invoke-direct {v0}, Lcom/vk/sdk/api/model/J;-><init>()V
sput-object v0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->b:Landroid/os/Parcelable$Creator;
return-void
.end method
.method private constructor <init>(Landroid/os/Parcel;)V
.registers 3
.line 2
invoke-direct {p0}, Lcom/vk/sdk/api/model/VKApiModel;-><init>()V
.line 3
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
move-result v0
iput v0, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->c:I
.line 4
invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->d:Ljava/lang/String;
return-void
.end method
.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/vk/sdk/api/model/G;)V
.registers 3
.line 1
invoke-direct {p0, p1}, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;-><init>(Landroid/os/Parcel;)V
return-void
.end method
# virtual methods
.method public bridge synthetic a(Lorg/json/JSONObject;)Lcom/vk/sdk/api/model/VKApiModel;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/json/JSONException;
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->a(Lorg/json/JSONObject;)Lcom/vk/sdk/api/model/VKApiUserFull$Relative;
move-result-object p1
return-object p1
.end method
.method public a(Lorg/json/JSONObject;)Lcom/vk/sdk/api/model/VKApiUserFull$Relative;
.registers 3
const-string v0, "id"
.line 2
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v0
iput v0, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->c:I
const-string v0, "name"
.line 3
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->d:Ljava/lang/String;
return-object p0
.end method
.method public describeContents()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.registers 3
.line 1
iget p2, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->c:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
.line 2
iget-object p2, p0, Lcom/vk/sdk/api/model/VKApiUserFull$Relative;->d:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
return-void
.end method