package com.ifpdos.debugmenu.event;

import android.text.Spanned;
import java.util.Arrays;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public class ViewEvent {

    public static class RefreshCMEICode {
        public final String mValue;

        public RefreshCMEICode(String str) {
            this.mValue = str;
        }
    }

    public static class RefreshCTEICode {
        public final String mValue;

        public RefreshCTEICode(String str) {
            this.mValue = str;
        }
    }

    public static class RefreshInfo {
    }

    public static class RefreshSerialNumber {
        public final String mValue;

        public RefreshSerialNumber(String str) {
            this.mValue = str;
        }
    }

    public static class RefreshView {
    }

    public static class TextAndColor {
        public int color;
        public String text;

        public TextAndColor() {
        }

        public int getColor() {
            return this.color;
        }

        public String getText() {
            return this.text;
        }

        public void setColor(int i2) {
            this.color = i2;
        }

        public void setText(String str) {
            this.text = str;
        }

        public TextAndColor(String str, int i2) {
            this.text = str;
            this.color = i2;
        }
    }

    public static class UpdateSourceValue {
        public final String mSourceName;
        public final int mValue;

        public UpdateSourceValue(String str, int i2) {
            this.mValue = i2;
            this.mSourceName = str;
        }
    }

    public static class UpdateViewEnable {
        public final boolean isEnabled;
        public final int viewId;

        public UpdateViewEnable(int i2, boolean z) {
            this.viewId = i2;
            this.isEnabled = z;
        }
    }

    public static class UpdateViewSelection {
        public final int selection;
        public final int viewId;

        public UpdateViewSelection(int i2, int i3) {
            this.viewId = i2;
            this.selection = i3;
        }
    }

    private ViewEvent() {
    }

    public static class AppendViewEntries {
        public final List<CharSequence> entriesCharList;
        public final String[] entriesStringArray;
        public final int viewId;

        public AppendViewEntries(int i2, List<CharSequence> list) {
            this.viewId = i2;
            this.entriesCharList = list;
            this.entriesStringArray = null;
        }

        public AppendViewEntries(int i2, String[] strArr) {
            this.viewId = i2;
            this.entriesStringArray = (String[]) Arrays.copyOf(strArr, strArr.length);
            this.entriesCharList = null;
        }
    }

    public static class UpdateViewChoiceText {
        public final String choiceText;
        public final Spanned html;
        public final int viewId;

        public UpdateViewChoiceText(int i2, String str) {
            this.viewId = i2;
            this.choiceText = str;
            this.html = null;
        }

        public UpdateViewChoiceText(int i2, Spanned spanned) {
            this.viewId = i2;
            this.html = spanned;
            this.choiceText = null;
        }
    }

    public static class UpdateViewEntries {
        public final List<CharSequence> entriesCharList;
        public final String[] entriesStringArray;
        public final int entriesStringArrayId;
        public final int viewId;

        public UpdateViewEntries(int i2, List<CharSequence> list) {
            this.viewId = i2;
            this.entriesCharList = list;
            this.entriesStringArray = null;
            this.entriesStringArrayId = -1;
        }

        public UpdateViewEntries(int i2, String[] strArr) {
            this.viewId = i2;
            this.entriesStringArray = (String[]) Arrays.copyOf(strArr, strArr.length);
            this.entriesStringArrayId = -1;
            this.entriesCharList = null;
        }

        public UpdateViewEntries(int i2, int i3) {
            this.viewId = i2;
            this.entriesStringArrayId = i3;
            this.entriesStringArray = null;
            this.entriesCharList = null;
        }
    }
}
