ONVIF::...:Message(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

✨ 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 for perl v5.42.3, dated 1980-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