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

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 CmdShare extends CmdBase implements SDKPoolObject {
    private static SDKPool<CmdShare> sPool = SDKPools.pool();
    private SDKShareType mType;

    private CmdShare() {
        super(null);
    }

    public static CmdShare obtain(SDKShareType sDKShareType) {
        CmdShare cmdShareObtain = sPool.obtain();
        if (cmdShareObtain == null) {
            cmdShareObtain = new CmdShare();
        }
        cmdShareObtain.mType = sDKShareType;
        return cmdShareObtain;
    }

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

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

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

    public void setType(SDKShareType sDKShareType) {
        this.mType = sDKShareType;
    }

    public static CmdShare obtain(SDKShareType sDKShareType, Object obj) {
        CmdShare cmdShareObtain = obtain(sDKShareType);
        cmdShareObtain.setData(obj);
        return cmdShareObtain;
    }
}
