package com.seewo.sdk.internal.command.pcremote;

import com.seewo.sdk.internal.command.CmdBase;
import com.seewo.sdk.util.pool.SDKPool;
import com.seewo.sdk.util.pool.SDKPoolObject;
import com.seewo.sdk.util.pool.SDKPools;

/* JADX INFO: loaded from: classes.dex */
public class CmdPcRemote extends CmdBase implements SDKPoolObject {
    private static SDKPool<CmdPcRemote> sPool = SDKPools.pool();
    private SDKPcRemoteType mType;

    private CmdPcRemote() {
        super(null);
    }

    public static CmdPcRemote obtain(SDKPcRemoteType sDKPcRemoteType) {
        CmdPcRemote cmdPcRemoteObtain = sPool.obtain();
        if (cmdPcRemoteObtain == null) {
            cmdPcRemoteObtain = new CmdPcRemote();
        }
        cmdPcRemoteObtain.mType = sDKPcRemoteType;
        return cmdPcRemoteObtain;
    }

    public static CmdPcRemote obtain(SDKPcRemoteType sDKPcRemoteType, Object obj) {
        CmdPcRemote cmdPcRemoteObtain = obtain(sDKPcRemoteType);
        cmdPcRemoteObtain.setData(obj);
        return cmdPcRemoteObtain;
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, com.seewo.sdk.util.pool.SDKPoolObject
    public void recycle() {
        sPool.recycle(this);
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, com.seewo.sdk.util.pool.SDKPoolObject
    public void clear() {
        super.clear();
        this.mType = null;
    }

    public SDKPcRemoteType getType() {
        return this.mType;
    }

    public void setType(SDKPcRemoteType sDKPcRemoteType) {
        this.mType = sDKPcRemoteType;
    }
}
