{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Text.HTML5.MetaData.Schema.BusinessEvent where

--  Valid: 2016-02-03 (Schema.rdfs.org)

import Text.HTML5.MetaData.Class
import Text.HTML5.MetaData.Type
import Data.Text
import Data.Typeable
import {-# SOURCE #-} qualified Text.HTML5.MetaData.Schema.Thing
import {-# SOURCE #-} qualified Text.HTML5.MetaData.Schema.Event

-- | Event type: Business event.
--
--   [@id@] BusinessEvent
--
--   [@label@] Business Event
--
--   [@comment@] Event type: Business event.
--
--   [@ancestors@] @'Thing','Event'@
--
--   [@subtypes@]
--
--   [@supertypes@] @'Event'@
--
--   [@url@] <http://schema.org/BusinessEvent>
data BusinessEvent = BusinessEvent { aggregateRating :: AggregateRating
                                   , attendee :: Attendee
                                   , doorTime :: DoorTime
                                   , duration :: Duration
                                   , endDate :: EndDate
                                   , eventStatus :: EventStatus
                                   , inLanguage :: InLanguage
                                   , location :: Location
                                   , offers :: Offers
                                   , organizer :: Organizer
                                   , performer :: Performer
                                   , previousStartDate :: PreviousStartDate
                                   , recordedIn :: RecordedIn
                                   , review :: Review
                                   , startDate :: StartDate
                                   , subEvent :: SubEvent
                                   , superEvent :: SuperEvent
                                   , typicalAgeRange :: TypicalAgeRange
                                   , workFeatured :: WorkFeatured
                                   , workPerformed :: WorkPerformed
                                   , additionalType :: AdditionalType
                                   , alternateName :: AlternateName
                                   , description :: Description
                                   , image :: Image
                                   , mainEntityOfPage :: MainEntityOfPage
                                   , name :: Name
                                   , potentialAction :: PotentialAction
                                   , sameAs :: SameAs
                                   , url :: Url
                                   }
                     deriving (Show, Read, Eq, Typeable)

instance MetaData BusinessEvent where
  _label         = const "Business Event"
  _comment_plain = const "Event type: Business event."
  _comment       = const "Event type: Business event."
  _url           = const "http://schema.org/BusinessEvent"
  _ancestors     = const [typeOf (undefined :: Text.HTML5.MetaData.Schema.Thing.Thing)
                         ,typeOf (undefined :: Text.HTML5.MetaData.Schema.Event.Event)]
  _subtypes      = const []
  _supertypes    = const [typeOf (undefined :: Text.HTML5.MetaData.Schema.Event.Event)]