package com.seewo.sdk;

import com.seewo.sdk.interfaces.ISDKNetRemoteHelper;
import com.seewo.sdk.internal.command.netremote.CmdGetIIpRemoteStatus;
import com.seewo.sdk.internal.command.netremote.CmdNotifyPublishCompleted;
import com.seewo.sdk.internal.command.netremote.CmdSetIIpRemoteStatus;
import com.seewo.sdk.internal.response.netremote.RespGetIIpRemoteState;
import com.seewo.sdk.model.SDKIIpRemoteState;
import com.seewo.sdk.util.ParseUtil;

/* JADX INFO: loaded from: classes.dex */
public class SDKNetRemoteHelper implements ISDKNetRemoteHelper {
    public static final SDKNetRemoteHelper I = new SDKNetRemoteHelper();

    @Override // com.seewo.sdk.interfaces.ISDKNetRemoteHelper
    public SDKIIpRemoteState getIIpRemoteStatus() {
        return ((RespGetIIpRemoteState) ParseUtil.decodeJSON(OpenSDK.getInstance().sendCommand(new CmdGetIIpRemoteStatus()), RespGetIIpRemoteState.class)).state;
    }

    @Override // com.seewo.sdk.interfaces.ISDKNetRemoteHelper
    public void notifyPublishCompleted() {
        OpenSDK.getInstance().sendCommand(new CmdNotifyPublishCompleted());
    }

    @Override // com.seewo.sdk.interfaces.ISDKNetRemoteHelper
    public void setIIpRemoteStatus(SDKIIpRemoteState sDKIIpRemoteState) {
        OpenSDK.getInstance().sendCommand(new CmdSetIIpRemoteStatus(sDKIIpRemoteState));
    }
}
