diff --git a/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs b/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs index 6ea2697..4364ba7 100644 --- a/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs +++ b/CoreAgent.Application/Commands/CellularNetwork/StartCellularNetworkCommand.cs @@ -1,4 +1,4 @@ -using CoreAgent.Domain.Models.Network; + using MediatR; namespace CoreAgent.Application.Commands.CellularNetwork; diff --git a/CoreAgent.Domain/Contexts/CellularNetworkContext.cs b/CoreAgent.Domain/Contexts/CellularNetworkContext.cs index c9f1c88..80cd9d0 100644 --- a/CoreAgent.Domain/Contexts/CellularNetworkContext.cs +++ b/CoreAgent.Domain/Contexts/CellularNetworkContext.cs @@ -1,5 +1,4 @@ using CoreAgent.Domain.Interfaces.Network; -using CoreAgent.Domain.Models.Network; using CoreAgent.Domain.Models.System; namespace CoreAgent.Domain.Contexts; diff --git a/CoreAgent.Domain/CoreAgent.Domain.csproj b/CoreAgent.Domain/CoreAgent.Domain.csproj index 358f371..0ef5678 100644 --- a/CoreAgent.Domain/CoreAgent.Domain.csproj +++ b/CoreAgent.Domain/CoreAgent.Domain.csproj @@ -11,4 +11,8 @@ + + + + diff --git a/CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs b/CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs index d077b83..75697f9 100644 --- a/CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs +++ b/CoreAgent.Domain/Interfaces/Network/ICellularNetworkService.cs @@ -1,4 +1,4 @@ -using CoreAgent.Domain.Models.Network; + namespace CoreAgent.Domain.Interfaces.Network; diff --git a/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs b/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs deleted file mode 100644 index c8f14ce..0000000 --- a/CoreAgent.Domain/Models/Network/CellularNetworkConfig.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace CoreAgent.Domain.Models.Network; - -/// -/// 蜂窝网络配置 -/// -public class CellularNetworkConfig -{ - /// - /// APN名称 - /// - public string Apn { get; set; } - - /// - /// 频段 - /// - public string[] Band { get; set; } - - - public string Plmn { get; set; } -} \ No newline at end of file diff --git a/CoreAgent.Domain/Models/Network/CellularNetworkStatus.cs b/CoreAgent.Domain/Models/Network/CellularNetworkStatus.cs deleted file mode 100644 index 5b61a5d..0000000 --- a/CoreAgent.Domain/Models/Network/CellularNetworkStatus.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace CoreAgent.Domain.Models.Network; - -/// -/// 蜂窝网络状态 -/// -public class CellularNetworkStatus -{ - /// - /// 是否启用 - /// - public bool IsEnabled { get; set; } - - /// - /// 连接状态 - /// - public string ConnectionState { get; set; } - - /// - /// 信号强度 - /// - public int SignalStrength { get; set; } - - /// - /// 运营商名称 - /// - public string CarrierName { get; set; } -} \ No newline at end of file diff --git a/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs b/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs index 5793065..5636a9f 100644 --- a/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs +++ b/CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs @@ -4,7 +4,6 @@ using CoreAgent.Domain.Entities; using CoreAgent.Domain.Interfaces; using CoreAgent.Domain.Interfaces.Network; using CoreAgent.Domain.Interfaces.System.Command; -using CoreAgent.Domain.Models.Network; using CoreAgent.Domain.Models.System; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options;