Skip to content

Commit e8bcc7b

Browse files
author
Ibrahim Ethem Gursoy
committed
Add LoginUserModel and PTZ models
1 parent 0acecba commit e8bcc7b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Models/LoginUserModel.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Newtonsoft.Json;
2+
3+
namespace DeviceStatusCheckerService.Models;
4+
5+
public class LoginUserModel
6+
{
7+
[JsonProperty("ip")]
8+
public string? ip { get; set; }
9+
[JsonProperty("user")]
10+
public string? user { get; set; }
11+
[JsonProperty("pass")]
12+
public string? pass { get; set; }
13+
}

Models/StartPTZModel.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
namespace DeviceStatusCheckerService.Models
2+
{
3+
public class StartPTZModel
4+
{
5+
public LoginUserModel? auth { set; get; }
6+
public string? profileToken { set; get; }
7+
public Onvif.Core.Client.Common.PTZSpeed? ptz { set; get; }
8+
}
9+
10+
public class StopPTZModel
11+
{
12+
public LoginUserModel? auth { set; get; }
13+
public string? profileToken { set; get; }
14+
}
15+
16+
public class GoToHomePTZModel
17+
{
18+
public LoginUserModel? auth { set; get; }
19+
public string? profileToken { set; get; }
20+
}
21+
}

0 commit comments

Comments
 (0)