2020-05-01 05:47:46 +00:00
|
|
|
package api
|
2017-03-20 00:04:47 +00:00
|
|
|
|
|
|
|
//StatusDeadTime -- structure for deadtime configuration
|
|
|
|
type StatusDeadTime struct {
|
|
|
|
dwell int
|
|
|
|
idle int
|
2020-05-01 05:47:46 +00:00
|
|
|
Cancelcheck int
|
2017-03-20 00:04:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//NewStatusDeadTime -- constructor
|
2017-03-22 22:33:09 +00:00
|
|
|
func NewStatusDeadTime(dwell, idle, cancelcheck int) (p *StatusDeadTime) {
|
2017-03-20 00:04:47 +00:00
|
|
|
p = new(StatusDeadTime)
|
|
|
|
p.dwell = dwell
|
|
|
|
p.idle = idle
|
2020-05-01 05:47:46 +00:00
|
|
|
p.Cancelcheck = cancelcheck
|
2017-03-20 00:04:47 +00:00
|
|
|
return
|
|
|
|
}
|