package com.bytedance.android.livesdkapi.depend.model.live;

import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.ArrayList;
import java.util.List;

public class LiveCoreSDKData {
    @c(LIZ = "pull_data")
    public PullData pullData;

    static {
        Covode.recordClassIndex(22220);
    }

    public static class Options {
        @c(LIZ = "default_preview_quality")
        public Quality defaultPreviewQuality;
        @c(LIZ = "default_quality")
        public Quality defaultQuality;
        @c(LIZ = "qualities")
        public List<Quality> qualityList;

        static {
            Covode.recordClassIndex(22221);
        }

        public Quality getDefaultQuality() {
            return this.defaultQuality;
        }

        public List<Quality> getQualityList() {
            return this.qualityList;
        }

        public void setDefaultQuality(Quality quality) {
            this.defaultQuality = quality;
        }

        public void setQualityList(List<Quality> list) {
            this.qualityList = list;
        }
    }

    public static class PullData {
        @c(LIZ = "options")
        public Options options;
        @c(LIZ = "stream_data")
        public String streamData;

        static {
            Covode.recordClassIndex(22222);
        }

        public Options getOptions() {
            return this.options;
        }

        public String getStreamData() {
            return this.streamData;
        }

        public void setOptions(Options options2) {
            this.options = options2;
        }

        public void setStreamData(String str) {
            this.streamData = str;
        }
    }

    public PullData getPullData() {
        return this.pullData;
    }

    public static class Quality implements Parcelable {
        public static final Parcelable.Creator<Quality> CREATOR = new Parcelable.Creator<Quality>() {
            static {
                Covode.recordClassIndex(22224);
            }

            public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
                return new Quality[i];
            }

            public final /* synthetic */ Object createFromParcel(Parcel parcel) {
                return new Quality(parcel);
            }
        };
        @c(LIZ = "name")
        public String name;
        public List<Room> roomList = new ArrayList();
        @c(LIZ = "sdk_key")
        public String sdkKey;

        public int describeContents() {
            return 0;
        }

        static {
            Covode.recordClassIndex(22223);
        }

        public Quality() {
        }

        public void readFromParcel(Parcel parcel) {
            this.name = parcel.readString();
            this.sdkKey = parcel.readString();
            ArrayList arrayList = new ArrayList();
            this.roomList = arrayList;
            parcel.readList(arrayList, Room.class.getClassLoader());
        }

        public Quality(Parcel parcel) {
            this.name = parcel.readString();
            this.sdkKey = parcel.readString();
            ArrayList arrayList = new ArrayList();
            this.roomList = arrayList;
            parcel.readList(arrayList, Room.class.getClassLoader());
        }

        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(this.name);
            parcel.writeString(this.sdkKey);
            parcel.writeList(this.roomList);
        }
    }

    public Quality getDefaultQuality() {
        PullData pullData2 = this.pullData;
        if (pullData2 == null || pullData2.getOptions() == null) {
            return null;
        }
        return this.pullData.getOptions().defaultQuality;
    }

    public List<Quality> getQualityList() {
        PullData pullData2 = this.pullData;
        if (pullData2 == null || pullData2.getOptions() == null) {
            return null;
        }
        return this.pullData.getOptions().getQualityList();
    }

    public void setPullData(PullData pullData2) {
        this.pullData = pullData2;
    }
}
