133 lines
3.7 KiB
Java
133 lines
3.7 KiB
Java
package com.facebook.share.model;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.text.TextUtils;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class GameRequestContent implements ShareModel {
|
|
public static final Parcelable.Creator<GameRequestContent> CREATOR = new Parcelable.Creator<GameRequestContent>() { // from class: com.facebook.share.model.GameRequestContent.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public GameRequestContent createFromParcel(Parcel parcel) {
|
|
return new GameRequestContent(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public GameRequestContent[] newArray(int i) {
|
|
return new GameRequestContent[i];
|
|
}
|
|
};
|
|
private final ActionType actionType;
|
|
private final String data;
|
|
private final Filters filters;
|
|
private final String message;
|
|
private final String objectId;
|
|
private final List<String> recipients;
|
|
private final List<String> suggestions;
|
|
private final String title;
|
|
|
|
public enum ActionType {
|
|
SEND,
|
|
ASKFOR,
|
|
TURN
|
|
}
|
|
|
|
public static class Builder implements ShareModelBuilder<GameRequestContent, Builder> {
|
|
private String a;
|
|
private List<String> b;
|
|
private String c;
|
|
private String d;
|
|
private ActionType e;
|
|
private String f;
|
|
private Filters g;
|
|
private List<String> h;
|
|
}
|
|
|
|
public enum Filters {
|
|
APP_USERS,
|
|
APP_NON_USERS
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public ActionType getActionType() {
|
|
return this.actionType;
|
|
}
|
|
|
|
public String getData() {
|
|
return this.data;
|
|
}
|
|
|
|
public Filters getFilters() {
|
|
return this.filters;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return this.message;
|
|
}
|
|
|
|
public String getObjectId() {
|
|
return this.objectId;
|
|
}
|
|
|
|
public List<String> getRecipients() {
|
|
return this.recipients;
|
|
}
|
|
|
|
public List<String> getSuggestions() {
|
|
return this.suggestions;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return this.title;
|
|
}
|
|
|
|
public String getTo() {
|
|
if (getRecipients() != null) {
|
|
return TextUtils.join(",", getRecipients());
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.message);
|
|
parcel.writeStringList(this.recipients);
|
|
parcel.writeString(this.title);
|
|
parcel.writeString(this.data);
|
|
parcel.writeSerializable(this.actionType);
|
|
parcel.writeString(this.objectId);
|
|
parcel.writeSerializable(this.filters);
|
|
parcel.writeStringList(this.suggestions);
|
|
}
|
|
|
|
private GameRequestContent(Builder builder) {
|
|
this.message = builder.a;
|
|
this.recipients = builder.b;
|
|
this.title = builder.d;
|
|
this.data = builder.c;
|
|
this.actionType = builder.e;
|
|
this.objectId = builder.f;
|
|
this.filters = builder.g;
|
|
this.suggestions = builder.h;
|
|
}
|
|
|
|
GameRequestContent(Parcel parcel) {
|
|
this.message = parcel.readString();
|
|
this.recipients = parcel.createStringArrayList();
|
|
this.title = parcel.readString();
|
|
this.data = parcel.readString();
|
|
this.actionType = (ActionType) parcel.readSerializable();
|
|
this.objectId = parcel.readString();
|
|
this.filters = (Filters) parcel.readSerializable();
|
|
this.suggestions = parcel.createStringArrayList();
|
|
parcel.readStringList(this.suggestions);
|
|
}
|
|
}
|