PhotoRoom v4.8.2版本的 MD5 值为:c40a01bb3380c0f75c0cb6ac6760f295
以下内容为反编译后的 Team.java 源代码,内容仅作参考
package com.photoroom.models;
import androidx.annotation.Keep;
import com.appboy.Constants;
import com.photoroom.models.TeamMember;
import com.squareup.moshi.g;
import com.sun.jna.Function;
import g1.n;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.t0;
import v30.r;
import v30.s;
@t0
@pu.a
@Keep
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\b\n\u0002\b\u001c\b\u0087\b\u0018\u0000 <2\u00020\u0001:\u0001=Bu\u0012\u0006\u0010\u0016\u001a\u00020\u0002\u0012\u0006\u0010\u0017\u001a\u00020\u0002\u0012\u0006\u0010\u0018\u001a\u00020\u0002\u0012\b\b\u0001\u0010\u0019\u001a\u00020\u0004\u0012\b\b\u0002\u0010\u001a\u001a\u00020\u0002\u0012\u000e\b\u0003\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\r0\f\u0012\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u000f\u0012\b\b\u0002\u0010\u001d\u001a\u00020\u0004\u0012\n\b\u0003\u0010\u001e\u001a\u0004\u0018\u00010\u0012\u0012\u000e\b\u0003\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00140\f¢\u0006\u0004\b9\u0010:B\u0011\b\u0016\u0012\u0006\u0010\u0017\u001a\u00020\u0002¢\u0006\u0004\b9\u0010;J\u0006\u0010\u0003\u001a\u00020\u0002J\u0006\u0010\u0005\u001a\u00020\u0004J\u0006\u0010\u0006\u001a\u00020\u0002J\t\u0010\u0007\u001a\u00020\u0002HÆ\u0003J\t\u0010\b\u001a\u00020\u0002HÆ\u0003J\t\u0010\t\u001a\u00020\u0002HÆ\u0003J\t\u0010\n\u001a\u00020\u0004HÆ\u0003J\t\u0010\u000b\u001a\u00020\u0002HÆ\u0003J\u000f\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\r0\fHÆ\u0003J\u000b\u0010\u0010\u001a\u0004\u0018\u00010\u000fHÆ\u0003J\t\u0010\u0011\u001a\u00020\u0004HÆ\u0003J\u000b\u0010\u0013\u001a\u0004\u0018\u00010\u0012HÆ\u0003J\u000f\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00140\fHÆ\u0003J}\u0010 \u001a\u00020\u00002\b\b\u0002\u0010\u0016\u001a\u00020\u00022\b\b\u0002\u0010\u0017\u001a\u00020\u00022\b\b\u0002\u0010\u0018\u001a\u00020\u00022\b\b\u0003\u0010\u0019\u001a\u00020\u00042\b\b\u0002\u0010\u001a\u001a\u00020\u00022\u000e\b\u0003\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\r0\f2\n\b\u0002\u0010\u001c\u001a\u0004\u0018\u00010\u000f2\b\b\u0002\u0010\u001d\u001a\u00020\u00042\n\b\u0003\u0010\u001e\u001a\u0004\u0018\u00010\u00122\u000e\b\u0003\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00140\fHÆ\u0001J\t\u0010!\u001a\u00020\u0002HÖ\u0001J\t\u0010#\u001a\u00020\"HÖ\u0001J\u0013\u0010%\u001a\u00020\u00042\b\u0010$\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\u0017\u0010\u0016\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0016\u0010&\u001a\u0004\b'\u0010(R\u0017\u0010\u0017\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0017\u0010&\u001a\u0004\b)\u0010(R\u0017\u0010\u0018\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u0018\u0010&\u001a\u0004\b*\u0010(R\u0017\u0010\u0019\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\u0019\u0010+\u001a\u0004\b\u0019\u0010,R\u0017\u0010\u001a\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b\u001a\u0010&\u001a\u0004\b-\u0010(R\u001d\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\r0\f8\u0006¢\u0006\f\n\u0004\b\u001b\u0010.\u001a\u0004\b/\u00100R\u0019\u0010\u001c\u001a\u0004\u0018\u00010\u000f8\u0006¢\u0006\f\n\u0004\b\u001c\u00101\u001a\u0004\b2\u00103R\u0017\u0010\u001d\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b\u001d\u0010+\u001a\u0004\b4\u0010,R\u0019\u0010\u001e\u001a\u0004\u0018\u00010\u00128\u0006¢\u0006\f\n\u0004\b\u001e\u00105\u001a\u0004\b6\u00107R\u001d\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00140\f8\u0006¢\u0006\f\n\u0004\b\u001f\u0010.\u001a\u0004\b8\u00100¨\u0006>"}, d2 = {"Lcom/photoroom/models/Team;", "", "", "getShareLink", "", "isPro", "getAdminEmail", "component1", "component2", "component3", "component4", "component5", "", "Lcom/photoroom/models/TeamMember$User;", "component6", "Lcom/photoroom/models/TeamSubscription;", "component7", "component8", "Ljava/util/Date;", "component9", "Lcom/photoroom/models/TeamMember$Invitation;", "component10", "id", "name", "defaultJoinCode", "isAdmin", "description", "userMembers", "subscription", "showTeamTemplatesOnly", "createdAt", "invitedMembers", "copy", "toString", "", "hashCode", "other", "equals", "Ljava/lang/String;", "getId", "()Ljava/lang/String;", "getName", "getDefaultJoinCode", "Z", "()Z", "getDescription", "Ljava/util/List;", "getUserMembers", "()Ljava/util/List;", "Lcom/photoroom/models/TeamSubscription;", "getSubscription", "()Lcom/photoroom/models/TeamSubscription;", "getShowTeamTemplatesOnly", "Ljava/util/Date;", "getCreatedAt", "()Ljava/util/Date;", "getInvitedMembers", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/util/List;Lcom/photoroom/models/TeamSubscription;ZLjava/util/Date;Ljava/util/List;)V", "(Ljava/lang/String;)V", "Companion", Constants.APPBOY_PUSH_CONTENT_KEY, "app_release"}, k = 1, mv = {1, 9, 0})
@n
public final class Team {
@r
public static final String CACHE_DATA_DIRECTORY = "data";
@r
public static final String CACHE_TEAMS_FILE = "cache_teams.json";
@s
private final Date createdAt;
@r
private final String defaultJoinCode;
@r
private final String description;
@r
private final String f36091id;
@r
private final List<TeamMember.Invitation> invitedMembers;
private final boolean isAdmin;
@r
private final String name;
private final boolean showTeamTemplatesOnly;
@s
private final TeamSubscription subscription;
@r
private final List<TeamMember.User> userMembers;
@r
public static final a Companion = new a(null);
public static final int $stable = 8;
public static final class a {
private a() {
}
public a(k kVar) {
this();
}
}
public Team(@r String name) {
this("", name, "", false, null, null, null, false, null, null, 1008, null);
t.i(name, "name");
}
public Team(@r String id2, @r String name, @r String defaultJoinCode, @g(name = "is_admin") boolean z11, @r String description, @g(name = "members") @r List<TeamMember.User> userMembers, @s TeamSubscription teamSubscription, boolean z12, @g(name = "createdAt") @s Date date, @g(name = "invitations") @r List<TeamMember.Invitation> invitedMembers) {
t.i(id2, "id");
t.i(name, "name");
t.i(defaultJoinCode, "defaultJoinCode");
t.i(description, "description");
t.i(userMembers, "userMembers");
t.i(invitedMembers, "invitedMembers");
this.f36091id = id2;
this.name = name;
this.defaultJoinCode = defaultJoinCode;
this.isAdmin = z11;
this.description = description;
this.userMembers = userMembers;
this.subscription = teamSubscription;
this.showTeamTemplatesOnly = z12;
this.createdAt = date;
this.invitedMembers = invitedMembers;
}
public Team(String str, String str2, String str3, boolean z11, String str4, List list, TeamSubscription teamSubscription, boolean z12, Date date, List list2, int i11, k kVar) {
this(str, str2, str3, z11, (i11 & 16) != 0 ? "" : str4, (i11 & 32) != 0 ? new ArrayList() : list, (i11 & 64) != 0 ? null : teamSubscription, (i11 & 128) != 0 ? false : z12, (i11 & Function.MAX_NARGS) != 0 ? null : date, (i11 & 512) != 0 ? new ArrayList() : list2);
}
@r
public final String component1() {
return this.f36091id;
}
@r
public final List<TeamMember.Invitation> component10() {
return this.invitedMembers;
}
@r
public final String component2() {
return this.name;
}
@r
public final String component3() {
return this.defaultJoinCode;
}
public final boolean component4() {
return this.isAdmin;
}
@r
public final String component5() {
return this.description;
}
@r
public final List<TeamMember.User> component6() {
return this.userMembers;
}
@s
public final TeamSubscription component7() {
return this.subscription;
}
public final boolean component8() {
return this.showTeamTemplatesOnly;
}
@s
public final Date component9() {
return this.createdAt;
}
@r
public final Team copy(@r String id2, @r String name, @r String defaultJoinCode, @g(name = "is_admin") boolean z11, @r String description, @g(name = "members") @r List<TeamMember.User> userMembers, @s TeamSubscription teamSubscription, boolean z12, @g(name = "createdAt") @s Date date, @g(name = "invitations") @r List<TeamMember.Invitation> invitedMembers) {
t.i(id2, "id");
t.i(name, "name");
t.i(defaultJoinCode, "defaultJoinCode");
t.i(description, "description");
t.i(userMembers, "userMembers");
t.i(invitedMembers, "invitedMembers");
return new Team(id2, name, defaultJoinCode, z11, description, userMembers, teamSubscription, z12, date, invitedMembers);
}
public boolean equals(@s Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof Team) {
Team team = (Team) obj;
return t.d(this.f36091id, team.f36091id) && t.d(this.name, team.name) && t.d(this.defaultJoinCode, team.defaultJoinCode) && this.isAdmin == team.isAdmin && t.d(this.description, team.description) && t.d(this.userMembers, team.userMembers) && t.d(this.subscription, team.subscription) && this.showTeamTemplatesOnly == team.showTeamTemplatesOnly && t.d(this.createdAt, team.createdAt) && t.d(this.invitedMembers, team.invitedMembers);
}
return false;
}
@r
public final String getAdminEmail() {
Object obj;
String email;
Iterator<T> it = this.userMembers.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (((TeamMember.User) obj).isAdmin()) {
break;
}
}
TeamMember.User user = (TeamMember.User) obj;
return (user == null || (email = user.getEmail()) == null) ? "" : email;
}
@s
public final Date getCreatedAt() {
return this.createdAt;
}
@r
public final String getDefaultJoinCode() {
return this.defaultJoinCode;
}
@r
public final String getDescription() {
return this.description;
}
@r
public final String getId() {
return this.f36091id;
}
@r
public final List<TeamMember.Invitation> getInvitedMembers() {
return this.invitedMembers;
}
@r
public final String getName() {
return this.name;
}
@r
public final String getShareLink() {
String format = String.format("https://app.photoroom.com/join/%s", Arrays.copyOf(new Object[]{this.defaultJoinCode}, 1));
t.h(format, "format(this, *args)");
return format;
}
public final boolean getShowTeamTemplatesOnly() {
return this.showTeamTemplatesOnly;
}
@s
public final TeamSubscription getSubscription() {
return this.subscription;
}
@r
public final List<TeamMember.User> getUserMembers() {
return this.userMembers;
}
public int hashCode() {
int hashCode = ((((this.f36091id.hashCode() * 31) + this.name.hashCode()) * 31) + this.defaultJoinCode.hashCode()) * 31;
boolean z11 = this.isAdmin;
int i11 = z11;
if (z11 != 0) {
i11 = 1;
}
int hashCode2 = (((((hashCode + i11) * 31) + this.description.hashCode()) * 31) + this.userMembers.hashCode()) * 31;
TeamSubscription teamSubscription = this.subscription;
int hashCode3 = (hashCode2 + (teamSubscription == null ? 0 : teamSubscription.hashCode())) * 31;
boolean z12 = this.showTeamTemplatesOnly;
int i12 = (hashCode3 + (z12 ? 1 : z12 ? 1 : 0)) * 31;
Date date = this.createdAt;
return ((i12 + (date != null ? date.hashCode() : 0)) * 31) + this.invitedMembers.hashCode();
}
public final boolean isAdmin() {
return this.isAdmin;
}
public final boolean isPro() {
TeamSubscription teamSubscription = this.subscription;
if (teamSubscription != null) {
return teamSubscription.getCurrentPeriodEnd().after(new Date());
}
return false;
}
@r
public String toString() {
String str = this.f36091id;
String str2 = this.name;
String str3 = this.defaultJoinCode;
boolean z11 = this.isAdmin;
String str4 = this.description;
List<TeamMember.User> list = this.userMembers;
TeamSubscription teamSubscription = this.subscription;
boolean z12 = this.showTeamTemplatesOnly;
Date date = this.createdAt;
List<TeamMember.Invitation> list2 = this.invitedMembers;
return "Team(id=" + str + ", name=" + str2 + ", defaultJoinCode=" + str3 + ", isAdmin=" + z11 + ", description=" + str4 + ", userMembers=" + list + ", subscription=" + teamSubscription + ", showTeamTemplatesOnly=" + z12 + ", createdAt=" + date + ", invitedMembers=" + list2 + ")";
}
}