ONVIF::...ilities(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

✨ ONVIF::Device::Elements::GetCapabilities ✨

okay so bestie, let me put you onto this one πŸ’… this is a little Perl data type class situation β€” like, it's the class that represents the XML Schema defined element GetCapabilities from the namespace http://www.onvif.org/ver10/device/wsdl. that's the whole vibe of it. it's giving "I'm a Perl class that knows how to hold a single GetCapabilities element" and honestly? iconic. πŸŽ€


🌸 PROPERTIES 🌸

so the way this works is you've got these properties, and you access them with the get_PROPERTY / set_PROPERTY methods. lowkey simple, highkey useful. 🫢

  • Category β€” this is the one property, and here's how you play with it:
$element->set_Category($data);
$element->get_Category();

like, you set it, you get it. that's the whole relationship. no cap. ✨


πŸ’– METHODS πŸ’–

πŸ¦‹ new

my $element = ONVIF::Device::Elements::GetCapabilities->new($data);

this is the constructor, bestie β€” the main character of the whole page honestly πŸ”₯ you call new on ONVIF::Device::Elements::GetCapabilities and you pass it $data, and the following data structure may be passed to new():

{
  Category => $some_value, # CapabilityCategory
},

so yeah, you hand it a hashref-ish looking thing with Category pointing at $some_value, and the comment there tells you it's a CapabilityCategory. that's the tea. πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL. that's it, that's the author line, and honestly respect to the machine that made it. πŸ™ˆ


and that's a wrap, bestie! 🌈 this whole page is perl v5.42.3 energy, dated 1980-01-01, and it lives under the name ONVIF::...ilities(3). slay, periodt. πŸ’œπŸ§š

πŸ“¦ where this page comes from