ONVIF::...:Message(3)
β¨ ONVIF::Media::Elements::Message β¨
Okay bestie, so this page lives in the User Contributed Perl Documentation section of the manual β the manual name is like ONVIF::...:Message(3) and it's giving very much "auto-generated Perl module, but make it fashion." π
πΈ NAME πΈ
ONVIF::Media::Elements::Message β say it with me, it's a mouthful, but we move. π
π¦ DESCRIPTION π¦
So this is a Perl data type class for the XML Schema defined element Message, and it comes from the namespace http://www.onvif.org/ver10/schema. That's it, that's the vibe. It's a little Perl wrapper holding your XML element data, no cap. β¨
π PROPERTIES π
These are the properties you can actually touch, and the way you touch them is with get_PROPERTY / set_PROPERTY methods, iykyk. Four of them, all iconic:
Sourceβ get it and set it like this:
$element->set_Source($data);
$element->get_Source();
Keyβ same energy, different name:
$element->set_Key($data);
$element->get_Key();
Dataβ yes bestie, the actual data:
$element->set_Data($data);
$element->get_Data();
Extensionβ the bonus round, the little extra:
$element->set_Extension($data);
$element->get_Extension();
π₯ METHODS π₯
π new
my $element = ONVIF::Media::Elements::Message->new($data);
This is the constructor, the main character of the whole page honestly. You hand it $data and it hands you back your element. π«Ά
And here's the data structure you're allowed to pass to new() β copy it exactly, don't freestyle it, fr fr:
{
Source => { # ONVIF::Media::Types::ItemList
SimpleItem => ,
ElementItem => {
},
Extension => { # ONVIF::Media::Types::ItemListExtension
},
},
Key => { # ONVIF::Media::Types::ItemList
SimpleItem => ,
ElementItem => {
},
Extension => { # ONVIF::Media::Types::ItemListExtension
},
},
Data => { # ONVIF::Media::Types::ItemList
SimpleItem => ,
ElementItem => {
},
Extension => { # ONVIF::Media::Types::ItemListExtension
},
},
Extension => { # ONVIF::Media::Types::MessageExtension
},
},
Notice how Source, Key and Data are all ONVIF::Media::Types::ItemList, and each of those has a SimpleItem, an ElementItem and an Extension (that last one being ONVIF::Media::Types::ItemListExtension). The top-level Extension is different though β that one's an ONVIF::Media::Types::MessageExtension. Don't mix them up, I'm begging. π
π AUTHOR π
Generated by SOAP::WSDL. Not a human, not a vibe, just a code generator doing its thing. π
Alright bestie, that's the whole page β every property, every method, every nested type, nothing skipped. π
Little sign-off from the footer: this doc is forperl v5.42.3, dated1980-01-01(yes, the date is a whole mood π). Slay, go build your XML elements, and remember: icon behavior only. β¨ππ§
π¦ where this page comes from
- nixpkgs unstable: zoneminder 1.38.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms