package com.seewo.adbcommons.model;

import android.os.Parcel;
import android.os.Parcelable;
import com.seewo.adbcommons.model.base.BaseCmdMsg;
import com.seewo.adbcommons.model.base.BaseCmdMsgRemote;

/* JADX INFO: loaded from: classes.dex */
public class CmdScreenLock extends BaseCmdMsgRemote {
    public static final Parcelable.Creator<CmdScreenLock> CREATOR = new Parcelable.Creator<CmdScreenLock>() { // from class: com.seewo.adbcommons.model.CmdScreenLock.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CmdScreenLock createFromParcel(Parcel parcel) {
            return new CmdScreenLock(parcel);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public CmdScreenLock[] newArray(int i2) {
            return new CmdScreenLock[i2];
        }
    };
    public static final int EVENT_CODE_GET_PASSWD = 2;
    public static final int EVENT_CODE_LOCK_SCREEN = 0;
    public static final int EVENT_CODE_SET_PASSWD = 1;
    public int mEventCode;
    public String mPassword;

    public CmdScreenLock() {
        this.mPassword = "";
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    @Override // com.seewo.adbcommons.model.base.BaseCmdMsg
    protected int getActionIDFromChild() {
        return 106;
    }

    @Override // com.seewo.adbcommons.model.base.BaseCmdMsg
    protected void handleDecode(BaseCmdMsg baseCmdMsg) {
        CmdScreenLock cmdScreenLock = (CmdScreenLock) baseCmdMsg;
        this.mEventCode = cmdScreenLock.mEventCode;
        this.mPassword = cmdScreenLock.mPassword;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.mEventCode);
        parcel.writeString(this.mPassword);
    }

    protected CmdScreenLock(Parcel parcel) {
        this.mPassword = "";
        this.mEventCode = parcel.readInt();
        this.mPassword = parcel.readString();
    }
}
