DUWENINK.IKuai 2024.11.6.15

dotnet add package DUWENINK.IKuai --version 2024.11.6.15                
NuGet\Install-Package DUWENINK.IKuai -Version 2024.11.6.15                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DUWENINK.IKuai" Version="2024.11.6.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DUWENINK.IKuai --version 2024.11.6.15                
#r "nuget: DUWENINK.IKuai, 2024.11.6.15"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DUWENINK.IKuai as a Cake Addin
#addin nuget:?package=DUWENINK.IKuai&version=2024.11.6.15

// Install DUWENINK.IKuai as a Cake Tool
#tool nuget:?package=DUWENINK.IKuai&version=2024.11.6.15                

DUWENINK.Ikuai - 您通往 Ikuai 网络设备的桥梁

厌倦了与 Ikuai 网络设备笨拙的 Web 界面打交道吗?别担心,我的朋友!为您带来 DUWENINK.Ikuai,这个 C# 库将让您与 Ikuai 的互动如同滑冰般流畅。

什么是 DUWENINK.Ikuai?

DUWENINK.Ikuai 是一个强大的 .NET 库,为与 Ikuai 网络设备进行交互提供了无缝的接口。无论您需要监控 LAN 设备、管理 NAT 设置,还是深入探索您的互联网监控 (IM) 记录,这个库都能满足您的需求。

主要功能

  • IkuaiClient:这个类是库的核心,它允许您对 Ikuai 设备进行各种请求,例如:
    • 使用 LanInfo 模型检索 LAN 设备信息
    • 使用 NatInfo 模型访问 NAT 信息
    • 使用 IMInfo 模型和 IMRecordRequest 探索您的 IM 记录
  • 枚举和常量:该库配备了方便的枚举,如 IMType,以及常量,如 StatusCode,帮助您轻松导航 Ikuai 生态系统。
  • 事件处理:使用 ConfigurationUpdatedEvent 时刻关注您的 Ikuai 设备的配置变更。
  • 可扩展性:该库的设计架构和扩展方法使得定制和扩展以满足您的特定需求变得轻而易举。

入门指南

要开始使用 DUWENINK.Ikuai,只需安装 NuGet 包,就可以开始探索 Ikuai 设备的奥秘:

// 创建 IkuaiClient 实例
var client = new IkuaiClient(new IkuaiOption
{
    Host = "192.168.1.1",
    Username = "admin",
    Password = "password"
});

// 检索 LAN 设备信息
var lanInfo = await client.GetLanInfoAsync();
foreach (var device in lanInfo.Devices)
{
    Console.WriteLine($"设备: {device.Name} - {device.IpAddress}");
}

// 获取 IM 记录
var imRecords = await client.GetIMRecordsAsync(new IMRecordRequest
{
    StartTime = DateTime.Now.AddDays(-7),
    EndTime = DateTime.Now,
    IMType = IMType.All
});
foreach (var record in imRecords.Records)
{
    Console.WriteLine($"IM 记录: {record.StartTime} - {record.EndTime} - {record.IMType}");
}

快来探索 DUWENINK.Ikuai 库的无穷可能吧!编码愉快!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.11.6.15 85 11/6/2024
1.1.5 159 8/29/2024
1.1.4 137 7/21/2024
1.1.3 101 7/17/2024
1.1.2 120 6/21/2024
1.0.0 135 5/7/2024
0.1.2 137 5/22/2024
0.1.1 106 5/21/2024
0.1.0 122 5/15/2024

996公司就不要用了,我会告你