You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
709 B
26 lines
709 B
|
4 months ago
|
using System;
|
||
|
|
using CoreAgent.Domain.Models.Common;
|
||
|
|
using MediatR;
|
||
|
|
|
||
|
|
namespace CoreAgent.Application.Commands.RanAPI;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 设置发送增益命令
|
||
|
|
/// </summary>
|
||
|
|
public class SetTxGainCommand : IRequest<ApiActionResult<bool>>
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 增益设置字典,key为端口号(int),value为增益值(double)
|
||
|
|
/// </summary>
|
||
|
|
public Dictionary<int, double> GainSettings { get; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 构造函数
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="gainSettings">增益设置字典</param>
|
||
|
|
public SetTxGainCommand(Dictionary<int, double> gainSettings)
|
||
|
|
{
|
||
|
|
GainSettings = gainSettings ?? throw new ArgumentNullException(nameof(gainSettings));
|
||
|
|
}
|
||
|
|
}
|