Skip to content

Commit

Permalink
inputs method added
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Dec 25, 2023
1 parent 8902e4e commit ba8bcf1
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/get_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func getDeviceStructByName(name string) (interface{}, error) {
return &device.SetClientCertificateMode{}, nil
case "GetRelayOutputs":
return &device.GetRelayOutputs{}, nil
case "GetDigitalInputs":
return &device.GetDigitalInputs{}, nil
case "SetRelayOutputSettings":
return &device.SetRelayOutputSettings{}, nil
case "SetRelayOutputState":
Expand Down
9 changes: 9 additions & 0 deletions device/function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions device/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,14 @@ type GetRelayOutputsResponse struct {
RelayOutputs onvif.RelayOutput
}

type GetDigitalInputs struct {
XMLName string `xml:"tmd:GetDigitalInputs"`
}

type GetDigitalInputsResponse struct {
DigitalInputs onvif.DigitalInput
}

type SetRelayOutputSettings struct {
XMLName string `xml:"tds:SetRelayOutputSettings"`
RelayOutputToken onvif.ReferenceToken `xml:"tds:RelayOutputToken"`
Expand Down
9 changes: 9 additions & 0 deletions deviceio/function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions deviceio/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,14 @@ type GetRelayOutputsResponse struct {
RelayOutputs onvif.RelayOutput
}

type GetDigitalInputs struct {
XMLName string `xml:"tmd:GetDigitalInputs"`
}

type GetDigitalInputsResponse struct {
DigitalInputs onvif.DigitalInput
}

type SetRelayOutputSettings struct {
XMLName string `xml:"tds:SetRelayOutputSettings"`
RelayOutputToken onvif.ReferenceToken `xml:"tds:RelayOutputToken"`
Expand Down
1 change: 1 addition & 0 deletions event/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ type QueryExpression QueryExpressionType

// TopicExpressionType struct for wsnt:TopicExpression
type TopicExpressionType struct { //wsnt http://docs.oasis-open.org/wsn/b-2.xsd
Dialect xsd.String `xml:"Dialect,attr"`
TopicKinds xsd.String `xml:",chardata"`
}

Expand Down
1 change: 1 addition & 0 deletions mappings.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions names.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions xsd/onvif/onvif.go
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,17 @@ type RelayOutputSettings struct {
IdleState RelayIdleState `xml:"IdleState"`
}

type DigitalInput struct {
Token ReferenceToken `xml:"token,attr"`
IdleState InputIdleState `xml:"IdleState,attr"`
}

// TODO:enumeration
type InputToken xsd.String

// TODO:enumeration
type InputIdleState xsd.String

// TODO:enumeration
type RelayIdleState xsd.String

Expand Down

0 comments on commit ba8bcf1

Please sign in to comment.