93 lines
2.0 KiB
Java
93 lines
2.0 KiB
Java
package com.twitter.sdk.android.tweetcomposer.internal;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class CardData {
|
|
private static Serializer a;
|
|
|
|
public static class Builder {
|
|
private String a;
|
|
private String b;
|
|
private String c;
|
|
private String d;
|
|
private String e;
|
|
private String f;
|
|
private String g;
|
|
private String h;
|
|
private String i;
|
|
private String j;
|
|
private String k;
|
|
private String l;
|
|
|
|
public Builder a(String str) {
|
|
this.k = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder b(String str) {
|
|
this.j = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder c(String str) {
|
|
this.i = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder d(String str) {
|
|
this.a = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder e(String str) {
|
|
this.e = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder f(String str) {
|
|
this.g = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder g(String str) {
|
|
this.h = str;
|
|
return this;
|
|
}
|
|
|
|
public Builder h(String str) {
|
|
this.b = str;
|
|
return this;
|
|
}
|
|
|
|
public CardData a() {
|
|
return new CardData(this.a, this.b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l);
|
|
}
|
|
}
|
|
|
|
static class Serializer {
|
|
private final Gson a = new Gson();
|
|
|
|
Serializer() {
|
|
}
|
|
|
|
String a(CardData cardData) {
|
|
return this.a.toJson(cardData);
|
|
}
|
|
}
|
|
|
|
Serializer a() {
|
|
if (a == null) {
|
|
a = new Serializer();
|
|
}
|
|
return a;
|
|
}
|
|
|
|
public String toString() {
|
|
return a().a(this);
|
|
}
|
|
|
|
private CardData(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, String str12) {
|
|
}
|
|
}
|