提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author 47081 |
|
7 |
* @version 1.0 |
|
8 |
* @description 时间段结构 |
|
9 |
* @date 2020/10/19 |
|
10 |
*/ |
|
11 |
public class SDK_TSECT extends NetSDKLib.SdkStructure { |
|
12 |
/** |
|
13 |
* 当表示录像时间段时,按位表示四个使能,从低位到高位分别表示动检录象、报警录象、普通录象、动检和报警同时发生才录像 |
|
14 |
* 当表示布撤防时间段时, 表示使能 |
|
15 |
* 当表示推送时间段时, 表示使能:1表示使能,0表示非使能 |
|
16 |
*/ |
|
17 |
public int bEnable; |
|
18 |
public int iBeginHour; |
|
19 |
public int iBeginMin; |
|
20 |
public int iBeginSec; |
|
21 |
public int iEndHour; |
|
22 |
public int iEndMin; |
|
23 |
public int iEndSec; |
|
24 |
|
|
25 |
/* |
|
26 |
* 设置时间 |
|
27 |
*/ |
|
28 |
public void setTime(int bEnable, int beginHour, int beginMinute, int beginSecond, int endHour, int endMinute, int endSecond) { |
|
29 |
this.bEnable = bEnable; |
|
30 |
this.iBeginHour = beginHour; |
|
31 |
this.iBeginMin = beginMinute; |
|
32 |
this.iBeginSec = beginSecond; |
|
33 |
this.iEndHour = endHour; |
|
34 |
this.iEndMin = endMinute; |
|
35 |
this.iEndSec = endSecond; |
|
36 |
} |
|
37 |
|
|
38 |
@Override |
|
39 |
public String toString() { |
|
40 |
return String.format("enable:%d,%02d:%02d:%02d-%02d:%02d:%02d", bEnable, iBeginHour, iBeginMin, iBeginSec, iEndHour, iEndMin, iEndSec); |
|
41 |
} |
|
42 |
} |