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

import X.2HN;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.List;

public class UrlModel extends UrlModelTemplate implements Parcelable, Serializable {
    public static final Parcelable.Creator<UrlModel> CREATOR = new UrlModel$Companion$CREATOR$1();
    public static final Companion Companion = new Companion((2HN) null);
    public final transient com.ss.ugc.effectplatform.model.UrlModel urlModel;

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

    public static final class Companion {
        static {
            Covode.recordClassIndex(125287);
        }

        public Companion() {
        }

        public /* synthetic */ Companion(2HN r1) {
            this();
        }
    }

    public com.ss.ugc.effectplatform.model.UrlModel getUrlModel() {
        return this.urlModel;
    }

    public List<String> getUrlList() {
        return super.getUrlList();
    }

    static {
        Covode.recordClassIndex(125286);
    }

    public String getUri() {
        String uri;
        com.ss.ugc.effectplatform.model.UrlModel urlModel2 = getUrlModel();
        if (urlModel2 == null || (uri = urlModel2.getUri()) == null) {
            return super.getUri();
        }
        return uri;
    }

    public List<String> getUrl_list() {
        List<String> url_list;
        com.ss.ugc.effectplatform.model.UrlModel urlModel2 = getUrlModel();
        if (urlModel2 == null || (url_list = urlModel2.getUrl_list()) == null) {
            return super.getUrl_list();
        }
        return url_list;
    }

    public void setUrlList(List<String> list) {
        M12.LIZ(list);
        super.setUrlList(list);
    }

    public void setUri(String str) {
        com.ss.ugc.effectplatform.model.UrlModel urlModel2 = getUrlModel();
        if (urlModel2 != null) {
            urlModel2.setUri(str);
        }
        super.setUri(str);
    }

    public void setUrl_list(List<String> list) {
        M12.LIZ(list);
        com.ss.ugc.effectplatform.model.UrlModel urlModel2 = getUrlModel();
        if (urlModel2 != null) {
            urlModel2.setUrl_list(list);
        }
        super.setUrl_list(list);
    }

    public UrlModel(com.ss.ugc.effectplatform.model.UrlModel urlModel2) {
        super(urlModel2);
        this.urlModel = urlModel2;
        com.ss.ugc.effectplatform.model.UrlModel urlModel3 = getUrlModel();
        if (urlModel3 != null) {
            String uri = urlModel3.getUri();
            if (uri != null) {
                super.setUri(uri);
            }
            List<String> url_list = urlModel3.getUrl_list();
            if (url_list != null) {
                super.setUrl_list(url_list);
            }
        }
    }

    public void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        if (getUrlModel() != null) {
            com.ss.ugc.effectplatform.model.UrlModel urlModel2 = getUrlModel();
            if (urlModel2 != null) {
                urlModel2.writeToParcel(parcel, i);
                return;
            }
            return;
        }
        super.writeToParcel(parcel, i);
    }

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