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

import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;

public class StreamData$StreamDataOriginMainSDKParams {
    @c(LIZ = "resolution")
    public String resolution;

    static {
        Covode.recordClassIndex(22257);
    }

    public int getHeight() {
        if (TextUtils.isEmpty(this.resolution)) {
            return 0;
        }
        String[] split = TextUtils.split(this.resolution, "x");
        if (split.length > 0) {
            return Integer.parseInt(split[split.length - 1]);
        }
        return 0;
    }

    public int getWidth() {
        if (!TextUtils.isEmpty(this.resolution)) {
            String[] split = TextUtils.split(this.resolution, "x");
            if (split.length > 0) {
                return Integer.parseInt(split[0]);
            }
        }
        return 0;
    }
}
