{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.Venue where
import Data.Aeson (FromJSON (..), ToJSON (..))
import Data.Text (Text)
import GHC.Generics (Generic)
import Telegram.Bot.API.Types.Location
import Telegram.Bot.API.Internal.Utils
data Venue = Venue
{ Venue -> Location
venueLocation :: Location
, Venue -> Text
venueTitle :: Text
, Venue -> Text
venueAddress :: Text
, Venue -> Maybe Text
venueFoursquareId :: Maybe Text
, Venue -> Maybe Text
venueFoursquareType :: Maybe Text
, Venue -> Maybe Text
venueGooglePlaceId :: Maybe Text
, Venue -> Maybe Text
venueGooglePlaceType :: Maybe Text
}
deriving (forall x. Rep Venue x -> Venue
forall x. Venue -> Rep Venue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Venue x -> Venue
$cfrom :: forall x. Venue -> Rep Venue x
Generic, Int -> Venue -> ShowS
[Venue] -> ShowS
Venue -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Venue] -> ShowS
$cshowList :: [Venue] -> ShowS
show :: Venue -> String
$cshow :: Venue -> String
showsPrec :: Int -> Venue -> ShowS
$cshowsPrec :: Int -> Venue -> ShowS
Show)
instance ToJSON Venue where toJSON :: Venue -> Value
toJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON Venue where parseJSON :: Value -> Parser Venue
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON