Add action container structs with descriptor methods.
This commit is contained in:
15
v2alpha/soap/soap.go
Normal file
15
v2alpha/soap/soap.go
Normal file
@ -0,0 +1,15 @@
|
||||
// Package soap defines basic types used by SOAP packages.
|
||||
package soap
|
||||
|
||||
// SOAPAction defines the interface for the convenience self-describing action request/response
|
||||
// struct types.
|
||||
type SOAPAction interface {
|
||||
// ServiceType returns Service type, e.g. "urn:schemas-upnp-org:service:Foo:1".
|
||||
ServiceType() string
|
||||
// ActionName returns Action name, e.g. "SetBar".
|
||||
ActionName() string
|
||||
// RefRequest returns reference to the action request member.
|
||||
RefRequest() any
|
||||
// RefResponse returns reference to the action response member.
|
||||
RefResponse() any
|
||||
}
|
Reference in New Issue
Block a user