-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat(HikVision): add instance method #781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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); | ||||||
| } | ||||||
|
|
@@ -97,4 +97,22 @@ public async Task Logout() | |||||
| { | ||||||
| await InvokeVoidAsync("logout", Id); | ||||||
| } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// 开始实时预览方法 | ||||||
| /// </summary> | ||||||
| /// <returns></returns> | ||||||
| public async Task StartRealPlay() | ||||||
| { | ||||||
| await InvokeVoidAsync("startRealPlay", Id); | ||||||
| } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// 停止实时预览方法 | ||||||
|
||||||
| /// 停止实时预览方法 | |
| /// 停止实时预览画面方法 |
There was a problem hiding this comment.
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: "开始实时预览画面方法".