package com.ss.android.ugc.aweme.discover.model;

import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.base.model.UrlModel;
import java.io.Serializable;

public final class MediaSourceButtonStruct implements Serializable {
    @c(LIZ = "aid")
    public String aid;
    @c(LIZ = "button_type")
    public int buttonType = 1;
    @c(LIZ = "eid")
    public String eid;
    @c(LIZ = "icon")
    public final UrlModel icon;
    @c(LIZ = "has_perchase_url")
    public boolean isBuy;
    @c(LIZ = "name")
    public final String name = "";
    @c(LIZ = "schema")
    public String schema = "";

    static {
        Covode.recordClassIndex(65167);
    }

    public final String getAid() {
        return this.aid;
    }

    public final int getButtonType() {
        return this.buttonType;
    }

    public final String getEid() {
        return this.eid;
    }

    public final UrlModel getIcon() {
        return this.icon;
    }

    public final String getName() {
        return this.name;
    }

    public final String getSchema() {
        return this.schema;
    }

    public final boolean isBuy() {
        return this.isBuy;
    }

    public final boolean isOrigin() {
        if (this.buttonType == 1) {
            return true;
        }
        return false;
    }

    public final boolean isMiniApp() {
        if (this.buttonType == 2) {
            return true;
        }
        return false;
    }

    public final boolean isMix() {
        if (this.buttonType == 3) {
            return true;
        }
        return false;
    }

    public final void setAid(String str) {
        this.aid = str;
    }

    public final void setButtonType(int i) {
        this.buttonType = i;
    }

    public final void setBuy(boolean z) {
        this.isBuy = z;
    }

    public final void setEid(String str) {
        this.eid = str;
    }

    public final void setSchema(String str) {
        this.schema = str;
    }
}
