package com.ss.android.ugc.aweme.im.sdk.chat.data.model;

import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class Parser {
    public final String format;
    public final String type;

    static {
        Covode.recordClassIndex(84111);
    }

    public static /* synthetic */ Parser copy$default(Parser parser, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = parser.type;
        }
        if ((i & 2) != 0) {
            str2 = parser.format;
        }
        return parser.copy(str, str2);
    }

    private Object[] getObjects() {
        return new Object[]{this.type, this.format};
    }

    public final Parser copy(String str, String str2) {
        M12.LIZ(str, str2);
        return new Parser(str, str2);
    }

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

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

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

    public final String getFormat() {
        return this.format;
    }

    public final String getType() {
        return this.type;
    }

    public Parser(String str, String str2) {
        M12.LIZ(str, str2);
        this.type = str;
        this.format = str2;
    }
}
