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

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

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

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

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

    private CmdDevice() {
        super(null);
    }

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

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

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

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

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

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