package com.ss.android.ugc.effectmanager.effect.model.template;

import X.2HN;
import com.bytedance.covode.number.Covode;
import com.ss.ugc.effectplatform.model.EffectCategoryModel;
import com.ss.ugc.effectplatform.model.UrlModel;
import java.util.List;

public class EffectCategoryModelTemplate extends EffectCategoryModel {
    public boolean isDefault;
    public final transient EffectCategoryModel kCategoryModel;
    public String tagsUpdateTime;

    static {
        Covode.recordClassIndex(125426);
    }

    public EffectCategoryModelTemplate() {
        this((EffectCategoryModel) null, 1, (2HN) null);
    }

    public EffectCategoryModel getKCategoryModel() {
        return this.kCategoryModel;
    }

    public boolean isDefault() {
        EffectCategoryModel kCategoryModel2 = getKCategoryModel();
        if (kCategoryModel2 != null) {
            return kCategoryModel2.is_default();
        }
        return super.is_default();
    }

    public String getTagsUpdateTime() {
        String tags_updated_at;
        EffectCategoryModel kCategoryModel2 = getKCategoryModel();
        if (kCategoryModel2 == null || (tags_updated_at = kCategoryModel2.getTags_updated_at()) == null) {
            return super.getTags_updated_at();
        }
        return tags_updated_at;
    }

    public void setDefault(boolean z) {
        this.isDefault = z;
        EffectCategoryModel kCategoryModel2 = getKCategoryModel();
        if (kCategoryModel2 != null) {
            kCategoryModel2.set_default(z);
        }
        super.set_default(z);
    }

    public void setTagsUpdateTime(String str) {
        this.tagsUpdateTime = str;
        EffectCategoryModel kCategoryModel2 = getKCategoryModel();
        if (kCategoryModel2 != null) {
            kCategoryModel2.setTags_updated_at(str);
        }
        super.setTags_updated_at(str);
    }

    public EffectCategoryModelTemplate(EffectCategoryModel effectCategoryModel) {
        super((String) null, (String) null, (String) null, (UrlModel) null, (UrlModel) null, (List) null, (List) null, (String) null, false, (String) null, 1023, (2HN) null);
        this.kCategoryModel = effectCategoryModel;
    }

    public void setIsDefault(boolean z) {
        EffectCategoryModel kCategoryModel2 = getKCategoryModel();
        if (kCategoryModel2 != null) {
            kCategoryModel2.set_default(is_default());
        }
        super.set_default(is_default());
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ EffectCategoryModelTemplate(EffectCategoryModel effectCategoryModel, int i, 2HN r4) {
        this((i & 1) != 0 ? null : effectCategoryModel);
    }
}
