package com.red.circle.live.app.command.mic;

import com.red.circle.live.app.dto.cmd.MicUpDownCmd;
import com.red.circle.live.domain.gateway.LiveMicrophoneGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 下麦克风.
 *
 * @author pengliang on 2023/12/8
 */
@Component
@RequiredArgsConstructor
public class LiveMicGoDownCmdExe {

  private final LiveMicrophoneGateway liveMicrophoneGateway;

  public void execute(MicUpDownCmd cmd) {
    liveMicrophoneGateway.goDown(cmd.getRoomId(), cmd.getMickIndex(), cmd.requiredReqUserId());
  }

}
