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

import com.seewo.sdk.internal.command.CmdBase;
import d.e.g.p.f.b;
import d.e.g.p.f.c;

/* JADX INFO: loaded from: classes.dex */
public class CmdDevice extends CmdBase implements b {

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private static d.e.g.p.f.a<CmdDevice> f2694g = c.a();

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private SDKDeviceType f2695f;

    private CmdDevice() {
        super(null);
    }

    public static CmdDevice obtain(SDKDeviceType sDKDeviceType) {
        CmdDevice cmdDeviceA = f2694g.a();
        if (cmdDeviceA == null) {
            cmdDeviceA = new CmdDevice();
        }
        cmdDeviceA.f2695f = sDKDeviceType;
        return cmdDeviceA;
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, d.e.g.p.f.b
    public void clear() {
        super.clear();
        this.f2695f = null;
    }

    public SDKDeviceType getType() {
        return this.f2695f;
    }

    @Override // com.seewo.sdk.internal.command.CmdBase, d.e.g.p.f.b
    public void recycle() {
        f2694g.recycle(this);
    }

    public void setType(SDKDeviceType sDKDeviceType) {
        this.f2695f = sDKDeviceType;
    }

    public static CmdDevice obtain(SDKDeviceType sDKDeviceType, Object obj) {
        CmdDevice cmdDeviceObtain = obtain(sDKDeviceType);
        cmdDeviceObtain.setData(obj);
        return cmdDeviceObtain;
    }
}
