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

import X.2HN;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.effectmanager.effect.model.template.CheckUpdateVersionModelTemplate;
import java.io.Serializable;

public final class CheckUpdateVersionModel extends CheckUpdateVersionModelTemplate implements Serializable {
    public final transient com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel;

    static {
        Covode.recordClassIndex(125378);
    }

    public CheckUpdateVersionModel() {
        this((com.ss.ugc.effectplatform.model.CheckUpdateVersionModel) null, 1, (2HN) null);
    }

    public final com.ss.ugc.effectplatform.model.CheckUpdateVersionModel getKUpdateModel() {
        return this.kUpdateModel;
    }

    public final String getCursor() {
        String cursor;
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 == null || (cursor = kUpdateModel2.getCursor()) == null) {
            return super.getCursor();
        }
        return cursor;
    }

    public final String getSorting_position() {
        String sorting_position;
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 == null || (sorting_position = kUpdateModel2.getSorting_position()) == null) {
            return super.getSorting_position();
        }
        return sorting_position;
    }

    public final String getVersion() {
        String version;
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 == null || (version = kUpdateModel2.getVersion()) == null) {
            return super.getVersion();
        }
        return version;
    }

    public final void setCursor(String str) {
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 != null) {
            kUpdateModel2.setCursor(str);
        }
        super.setCursor(str);
    }

    public final void setSorting_position(String str) {
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 != null) {
            kUpdateModel2.setSorting_position(str);
        }
        super.setSorting_position(str);
    }

    public final void setVersion(String str) {
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 != null) {
            kUpdateModel2.setVersion(str);
        }
        super.setVersion(str);
    }

    public CheckUpdateVersionModel(com.ss.ugc.effectplatform.model.CheckUpdateVersionModel checkUpdateVersionModel) {
        super(checkUpdateVersionModel);
        this.kUpdateModel = checkUpdateVersionModel;
        com.ss.ugc.effectplatform.model.CheckUpdateVersionModel kUpdateModel2 = getKUpdateModel();
        if (kUpdateModel2 != null) {
            String cursor = kUpdateModel2.getCursor();
            if (cursor != null) {
                super.setCursor(cursor);
            }
            String sorting_position = kUpdateModel2.getSorting_position();
            if (sorting_position != null) {
                super.setSorting_position(sorting_position);
            }
            String version = kUpdateModel2.getVersion();
            if (version != null) {
                super.setVersion(version);
            }
        }
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ CheckUpdateVersionModel(com.ss.ugc.effectplatform.model.CheckUpdateVersionModel checkUpdateVersionModel, int i, 2HN r4) {
        this((i & 1) != 0 ? null : checkUpdateVersionModel);
    }
}
