Browse Source

去除冗余文件 已经修改命名空间

master
root 4 days ago
parent
commit
eb92e6d421
  1. 2
      CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs
  2. 1
      CoreAgent.Domain/Contexts/CellularNetworkContext.cs
  3. 4
      CoreAgent.Domain/CoreAgent.Domain.csproj
  4. 2
      CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs
  5. 20
      CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs
  6. 27
      CoreAgent.Domain/Models/Network/CellularNetworkStatus.cs
  7. 1
      CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs

2
CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs

@ -1,4 +1,4 @@
using CoreAgent.Domain.Models.Network;
using MediatR; using MediatR;
namespace CoreAgent.Application.Commands.CellularNetwork; namespace CoreAgent.Application.Commands.CellularNetwork;

1
CoreAgent.Domain/Contexts/CellularNetworkContext.cs

@ -1,5 +1,4 @@
using CoreAgent.Domain.Interfaces.Network; using CoreAgent.Domain.Interfaces.Network;
using CoreAgent.Domain.Models.Network;
using CoreAgent.Domain.Models.System; using CoreAgent.Domain.Models.System;
namespace CoreAgent.Domain.Contexts; namespace CoreAgent.Domain.Contexts;

4
CoreAgent.Domain/CoreAgent.Domain.csproj

@ -11,4 +11,8 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Models\Network\" />
</ItemGroup>
</Project> </Project>

2
CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs

@ -1,4 +1,4 @@
using CoreAgent.Domain.Models.Network;
namespace CoreAgent.Domain.Interfaces.Network; namespace CoreAgent.Domain.Interfaces.Network;

20
CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs

@ -1,20 +0,0 @@
namespace CoreAgent.Domain.Models.Network;
/// <summary>
/// 蜂窝网络配置
/// </summary>
public class CellularNetworkConfig
{
/// <summary>
/// APN名称
/// </summary>
public string Apn { get; set; }
/// <summary>
/// 频段
/// </summary>
public string[] Band { get; set; }
public string Plmn { get; set; }
}

27
CoreAgent.Domain/Models/Network/CellularNetworkStatus.cs

@ -1,27 +0,0 @@
namespace CoreAgent.Domain.Models.Network;
/// <summary>
/// 蜂窝网络状态
/// </summary>
public class CellularNetworkStatus
{
/// <summary>
/// 是否启用
/// </summary>
public bool IsEnabled { get; set; }
/// <summary>
/// 连接状态
/// </summary>
public string ConnectionState { get; set; }
/// <summary>
/// 信号强度
/// </summary>
public int SignalStrength { get; set; }
/// <summary>
/// 运营商名称
/// </summary>
public string CarrierName { get; set; }
}

1
CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs

@ -4,7 +4,6 @@ using CoreAgent.Domain.Entities;
using CoreAgent.Domain.Interfaces; using CoreAgent.Domain.Interfaces;
using CoreAgent.Domain.Interfaces.Network; using CoreAgent.Domain.Interfaces.Network;
using CoreAgent.Domain.Interfaces.System.Command; using CoreAgent.Domain.Interfaces.System.Command;
using CoreAgent.Domain.Models.Network;
using CoreAgent.Domain.Models.System; using CoreAgent.Domain.Models.System;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;

Loading…
Cancel
Save