package com.ss.android.ugc.aweme.sticker.data;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public final class DuetStickerStruct implements Serializable {
    @c(LIZ = "stickerContent")
    public String duetString;
    @c(LIZ = "micPermissionOn")
    public boolean openMic;
    @c(LIZ = "invitedToDuetUserIds")
    public List<String> userIdList;
    @c(LIZ = "user_list")
    public List<DuetStickerUserStruct> userList;

    static {
        Covode.recordClassIndex(115600);
    }

    public DuetStickerStruct() {
    }

    public static /* synthetic */ DuetStickerStruct copy$default(DuetStickerStruct duetStickerStruct, List<DuetStickerUserStruct> list, boolean z, String str, List<String> list2, int i, Object obj) {
        if ((i & 1) != 0) {
            list = duetStickerStruct.userList;
        }
        if ((i & 2) != 0) {
            z = duetStickerStruct.openMic;
        }
        if ((i & 4) != 0) {
            str = duetStickerStruct.duetString;
        }
        if ((i & 8) != 0) {
            list2 = duetStickerStruct.userIdList;
        }
        return duetStickerStruct.copy(list, z, str, list2);
    }

    private Object[] getObjects() {
        return new Object[]{this.userList, Boolean.valueOf(this.openMic), this.duetString, this.userIdList};
    }

    public final DuetStickerStruct copy(List<DuetStickerUserStruct> list, boolean z, String str, List<String> list2) {
        M12.LIZ(str, list2);
        return new DuetStickerStruct(list, z, str, list2);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof DuetStickerStruct)) {
            return false;
        }
        return M12.LIZ(((DuetStickerStruct) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("DuetStickerStruct:%s,%s,%s,%s", getObjects());
    }

    public final String getDuetString() {
        return this.duetString;
    }

    public final boolean getOpenMic() {
        return this.openMic;
    }

    public final List<String> getUserIdList() {
        return this.userIdList;
    }

    public final List<DuetStickerUserStruct> getUserList() {
        return this.userList;
    }

    public final void completeSecIdList() {
        this.userIdList.clear();
        List<DuetStickerUserStruct> list = this.userList;
        if (list != null) {
            for (DuetStickerUserStruct duetStickerUserStruct : list) {
                this.userIdList.add(duetStickerUserStruct.LIZLLL);
            }
        }
    }

    public final void setUserIdList(List<String> list) {
        M12.LIZ(list);
        this.userIdList = list;
    }

    public DuetStickerStruct(List<DuetStickerUserStruct> list, boolean z, String str, List<String> list2) {
        M12.LIZ(str, list2);
        this.userList = list;
        this.openMic = z;
        this.duetString = str;
        this.userIdList = list2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DuetStickerStruct(List list, boolean z, String str, List list2, int i, 2HN r7) {
        this((i & 1) != 0 ? null : list, (i & 2) != 0 ? false : z, str, (i & 8) != 0 ? new ArrayList() : list2);
    }
}
