Value HostsTable::NotesAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("notes");
}
Value HostsTable::NotesUrlAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("notes_url");
}
Value HostsTable::ActionUrlAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("action_url");
}
Value HostsTable::IconImageAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("icon_image");
}
Value HostsTable::IconImageAltAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("icon_image_alt");
}
Value HostsTable::StatusmapImageAccessor(const Object::Ptr& object)
{
Dictionary::Ptr custom = static_pointer_cast<Host>(object)->GetCustom();
+
+ if (!custom)
+ return Value();
+
return custom->Get("statusmap_image");
}