Services:MetadataHash

From MacroDeckDevWiki

Jump to: navigation, search

A MetadataHash is a Hash that stores metadata about a DataGroup, DataItem, Widget, and so on. It looks like this, though all fields are not required to be present:

 {
   :type => "uuid",
   :creator => "uuid",
   :owner => "uuid",
   :tags => "tags go here",
   :creation => 1234567890,
   :title => "My Funny Post",
   :description => "I did something stupid",
   :datacreator => "uuid"
 }
  • type is the data type of the item/group, expressed as a UUID.
  • creator is the user or group that created the item, expressed as a UUID.
  • owner is the user or group that owns the item, expressed as a UUID.
  • tags are a comma-seperated list of search keywords (tags) to aid in searching.
  • creation is a UNIX timestamp, which is the number of seconds that have elapsed since January 1st, 1970 at 12:00AM.
  • title is a string that contains the title of the item/group (limit: 255 characters)
  • description is a summary of the contents of the item.
  • datacreator is the program, service, widget, etc. that created the item, expressed as a UUID.
Personal tools