Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected override void OnParametersSet()
/// <param name="password"></param>
/// <param name="loginType"></param>
/// <returns></returns>
public async Task Login(string ip, string port, string userName, string password, LoginType loginType = LoginType.Http)
public async Task Login(string ip, int port, string userName, string password, LoginType loginType = LoginType.Http)
{
await InvokeVoidAsync("login", Id, ip, port, userName, password, (int)loginType);
}
Expand All @@ -97,4 +97,22 @@ public async Task Logout()
{
await InvokeVoidAsync("logout", Id);
}

/// <summary>
/// 开始实时预览方法
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation comment differs slightly from the interface definition. The interface (IHikVision) uses "开始实时预览画面方法" (Start real-time preview screen method) on line 32, while this implementation uses "开始实时预览方法" (Start real-time preview method). Consider using the same wording as the interface for consistency: "开始实时预览画面方法".

Suggested change
/// 开始实时预览方法
/// 开始实时预览画面方法

Copilot uses AI. Check for mistakes.
/// </summary>
/// <returns></returns>
public async Task StartRealPlay()
{
await InvokeVoidAsync("startRealPlay", Id);
}

/// <summary>
/// 停止实时预览方法
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation comment differs slightly from the interface definition. The interface (IHikVision) uses "停止实时预览画面方法" (Stop real-time preview screen method) on line 38, while this implementation uses "停止实时预览方法" (Stop real-time preview method). Consider using the same wording as the interface for consistency: "停止实时预览画面方法".

Suggested change
/// 停止实时预览方法
/// 停止实时预览画面方法

Copilot uses AI. Check for mistakes.
/// </summary>
/// <returns></returns>
public async Task StopRealPlay()
{
await InvokeVoidAsync("stopRealPlay", Id);
}
}
Loading