Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- API Declaration
- Resources
- Types
- Card
- Space
- KeyValue
- WidgetMarkup
- OnClick
- Annotation
- Image
- KeyValueIcon
- ActionParameter
- Membership
- ActionResponseType
- Empty
- DeprecatedEvent
- MembershipState
- CardHeaderImageStyle
- TextParagraph
- Button
- UserMentionMetadataType
- ListSpacesResponse
- User
- SpaceType
- OpenLink
- AnnotationType
- ImageButtonIcon
- CardAction
- Xgafv
- DeprecatedEventType
- ActionResponse
- FormAction
- ListMembershipsResponse
- Message
- CardHeader
- TextButton
- Thread
- UserMentionMetadata
- ImageButton
- Section
- UserType
Enables bots to fetch information and perform actions in Hangouts Chat.
Synopsis
- chatService :: ServiceConfig
- type ChatAPI = SpacesMembersListResource :<|> (SpacesMembersGetResource :<|> (SpacesMessagesGetResource :<|> (SpacesMessagesCreateResource :<|> (SpacesMessagesDeleteResource :<|> (SpacesMessagesUpdateResource :<|> (SpacesListResource :<|> SpacesGetResource))))))
- module Network.Google.Resource.Chat.Spaces.Get
- module Network.Google.Resource.Chat.Spaces.List
- module Network.Google.Resource.Chat.Spaces.Members.Get
- module Network.Google.Resource.Chat.Spaces.Members.List
- module Network.Google.Resource.Chat.Spaces.Messages.Create
- module Network.Google.Resource.Chat.Spaces.Messages.Delete
- module Network.Google.Resource.Chat.Spaces.Messages.Get
- module Network.Google.Resource.Chat.Spaces.Messages.Update
- data Card
- card :: Card
- cCardActions :: Lens' Card [CardAction]
- cName :: Lens' Card (Maybe Text)
- cHeader :: Lens' Card (Maybe CardHeader)
- cSections :: Lens' Card [Section]
- data Space
- space :: Space
- sName :: Lens' Space (Maybe Text)
- sDisplayName :: Lens' Space (Maybe Text)
- sType :: Lens' Space (Maybe SpaceType)
- data KeyValue
- keyValue :: KeyValue
- kvOnClick :: Lens' KeyValue (Maybe OnClick)
- kvTopLabel :: Lens' KeyValue (Maybe Text)
- kvIcon :: Lens' KeyValue (Maybe KeyValueIcon)
- kvButton :: Lens' KeyValue (Maybe Button)
- kvContent :: Lens' KeyValue (Maybe Text)
- kvIconURL :: Lens' KeyValue (Maybe Text)
- kvContentMultiline :: Lens' KeyValue (Maybe Bool)
- kvBottomLabel :: Lens' KeyValue (Maybe Text)
- data WidgetMarkup
- widgetMarkup :: WidgetMarkup
- wmKeyValue :: Lens' WidgetMarkup (Maybe KeyValue)
- wmImage :: Lens' WidgetMarkup (Maybe Image)
- wmButtons :: Lens' WidgetMarkup [Button]
- wmTextParagraph :: Lens' WidgetMarkup (Maybe TextParagraph)
- data OnClick
- onClick :: OnClick
- ocAction :: Lens' OnClick (Maybe FormAction)
- ocOpenLink :: Lens' OnClick (Maybe OpenLink)
- data Annotation
- annotation :: Annotation
- aLength :: Lens' Annotation (Maybe Int32)
- aType :: Lens' Annotation (Maybe AnnotationType)
- aUserMention :: Lens' Annotation (Maybe UserMentionMetadata)
- aStartIndex :: Lens' Annotation (Maybe Int32)
- data Image
- image :: Image
- iOnClick :: Lens' Image (Maybe OnClick)
- iAspectRatio :: Lens' Image (Maybe Double)
- iImageURL :: Lens' Image (Maybe Text)
- data KeyValueIcon
- = KVIIconUnspecified
- | KVIAirplane
- | KVIBookmark
- | KVIBus
- | KVICar
- | KVIClock
- | KVIConfirmationNumberIcon
- | KVIDollar
- | KVIDescription
- | KVIEmail
- | KVIEventPerformer
- | KVIEventSeat
- | KVIFlightArrival
- | KVIFlightDeParture
- | KVIHotel
- | KVIHotelRoomType
- | KVIInvite
- | KVIMapPin
- | KVIMembership
- | KVIMultiplePeople
- | KVIOffer
- | KVIPerson
- | KVIPhone
- | KVIRestaurantIcon
- | KVIShoppingCart
- | KVIStar
- | KVIStore
- | KVITicket
- | KVITrain
- | KVIVideoCamera
- | KVIVideoPlay
- data ActionParameter
- actionParameter :: ActionParameter
- apValue :: Lens' ActionParameter (Maybe Text)
- apKey :: Lens' ActionParameter (Maybe Text)
- data Membership
- membership :: Membership
- mState :: Lens' Membership (Maybe MembershipState)
- mName :: Lens' Membership (Maybe Text)
- mMember :: Lens' Membership (Maybe User)
- mCreateTime :: Lens' Membership (Maybe UTCTime)
- data ActionResponseType
- data Empty
- empty :: Empty
- data DeprecatedEvent
- deprecatedEvent :: DeprecatedEvent
- deSpace :: Lens' DeprecatedEvent (Maybe Space)
- deToken :: Lens' DeprecatedEvent (Maybe Text)
- deAction :: Lens' DeprecatedEvent (Maybe FormAction)
- deEventTime :: Lens' DeprecatedEvent (Maybe UTCTime)
- deUser :: Lens' DeprecatedEvent (Maybe User)
- deConfigCompleteRedirectURL :: Lens' DeprecatedEvent (Maybe Text)
- deType :: Lens' DeprecatedEvent (Maybe DeprecatedEventType)
- deMessage :: Lens' DeprecatedEvent (Maybe Message)
- deThreadKey :: Lens' DeprecatedEvent (Maybe Text)
- data MembershipState
- data CardHeaderImageStyle
- data TextParagraph
- textParagraph :: TextParagraph
- tpText :: Lens' TextParagraph (Maybe Text)
- data Button
- button :: Button
- bTextButton :: Lens' Button (Maybe TextButton)
- bImageButton :: Lens' Button (Maybe ImageButton)
- data UserMentionMetadataType
- data ListSpacesResponse
- listSpacesResponse :: ListSpacesResponse
- lsrNextPageToken :: Lens' ListSpacesResponse (Maybe Text)
- lsrSpaces :: Lens' ListSpacesResponse [Space]
- data User
- user :: User
- uName :: Lens' User (Maybe Text)
- uDisplayName :: Lens' User (Maybe Text)
- uType :: Lens' User (Maybe UserType)
- data SpaceType
- data OpenLink
- openLink :: OpenLink
- olURL :: Lens' OpenLink (Maybe Text)
- data AnnotationType
- data ImageButtonIcon
- = IBIIconUnspecified
- | IBIAirplane
- | IBIBookmark
- | IBIBus
- | IBICar
- | IBIClock
- | IBIConfirmationNumberIcon
- | IBIDollar
- | IBIDescription
- | IBIEmail
- | IBIEventPerformer
- | IBIEventSeat
- | IBIFlightArrival
- | IBIFlightDeParture
- | IBIHotel
- | IBIHotelRoomType
- | IBIInvite
- | IBIMapPin
- | IBIMembership
- | IBIMultiplePeople
- | IBIOffer
- | IBIPerson
- | IBIPhone
- | IBIRestaurantIcon
- | IBIShoppingCart
- | IBIStar
- | IBIStore
- | IBITicket
- | IBITrain
- | IBIVideoCamera
- | IBIVideoPlay
- data CardAction
- cardAction :: CardAction
- caOnClick :: Lens' CardAction (Maybe OnClick)
- caActionLabel :: Lens' CardAction (Maybe Text)
- data Xgafv
- data DeprecatedEventType
- data ActionResponse
- actionResponse :: ActionResponse
- arURL :: Lens' ActionResponse (Maybe Text)
- arType :: Lens' ActionResponse (Maybe ActionResponseType)
- data FormAction
- formAction :: FormAction
- faActionMethodName :: Lens' FormAction (Maybe Text)
- faParameters :: Lens' FormAction [ActionParameter]
- data ListMembershipsResponse
- listMembershipsResponse :: ListMembershipsResponse
- lmrNextPageToken :: Lens' ListMembershipsResponse (Maybe Text)
- lmrMemberships :: Lens' ListMembershipsResponse [Membership]
- data Message
- message :: Message
- mesAnnotations :: Lens' Message [Annotation]
- mesSpace :: Lens' Message (Maybe Space)
- mesText :: Lens' Message (Maybe Text)
- mesSender :: Lens' Message (Maybe User)
- mesName :: Lens' Message (Maybe Text)
- mesPreviewText :: Lens' Message (Maybe Text)
- mesCards :: Lens' Message [Card]
- mesActionResponse :: Lens' Message (Maybe ActionResponse)
- mesArgumentText :: Lens' Message (Maybe Text)
- mesThread :: Lens' Message (Maybe Thread)
- mesFallbackText :: Lens' Message (Maybe Text)
- mesCreateTime :: Lens' Message (Maybe UTCTime)
- data CardHeader
- cardHeader :: CardHeader
- chSubtitle :: Lens' CardHeader (Maybe Text)
- chImageURL :: Lens' CardHeader (Maybe Text)
- chTitle :: Lens' CardHeader (Maybe Text)
- chImageStyle :: Lens' CardHeader (Maybe CardHeaderImageStyle)
- data TextButton
- textButton :: TextButton
- tbOnClick :: Lens' TextButton (Maybe OnClick)
- tbText :: Lens' TextButton (Maybe Text)
- data Thread
- thread :: Thread
- tName :: Lens' Thread (Maybe Text)
- data UserMentionMetadata
- userMentionMetadata :: UserMentionMetadata
- ummUser :: Lens' UserMentionMetadata (Maybe User)
- ummType :: Lens' UserMentionMetadata (Maybe UserMentionMetadataType)
- data ImageButton
- imageButton :: ImageButton
- ibOnClick :: Lens' ImageButton (Maybe OnClick)
- ibIcon :: Lens' ImageButton (Maybe ImageButtonIcon)
- ibName :: Lens' ImageButton (Maybe Text)
- ibIconURL :: Lens' ImageButton (Maybe Text)
- data Section
- section :: Section
- sWidgets :: Lens' Section [WidgetMarkup]
- sHeader :: Lens' Section (Maybe Text)
- data UserType
Service Configuration
chatService :: ServiceConfig Source #
Default request referring to version v1
of the Hangouts Chat API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type ChatAPI = SpacesMembersListResource :<|> (SpacesMembersGetResource :<|> (SpacesMessagesGetResource :<|> (SpacesMessagesCreateResource :<|> (SpacesMessagesDeleteResource :<|> (SpacesMessagesUpdateResource :<|> (SpacesListResource :<|> SpacesGetResource)))))) Source #
Represents the entirety of the methods and resources available for the Hangouts Chat API service.
Resources
chat.spaces.get
chat.spaces.list
chat.spaces.members.get
chat.spaces.members.list
chat.spaces.messages.create
chat.spaces.messages.delete
chat.spaces.messages.get
chat.spaces.messages.update
Types
Card
A card is a UI element that can contain UI widgets such as texts, images.
See: card
smart constructor.
Instances
Eq Card Source # | |
Data Card Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Card -> c Card # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Card # dataTypeOf :: Card -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Card) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Card) # gmapT :: (forall b. Data b => b -> b) -> Card -> Card # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Card -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Card -> r # gmapQ :: (forall d. Data d => d -> u) -> Card -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Card -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Card -> m Card # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Card -> m Card # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Card -> m Card # | |
Show Card Source # | |
Generic Card Source # | |
ToJSON Card Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Card Source # | |
type Rep Card Source # | |
Defined in Network.Google.Chat.Types.Product type Rep Card = D1 (MetaData "Card" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "Card'" PrefixI True) ((S1 (MetaSel (Just "_cCardActions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CardAction])) :*: S1 (MetaSel (Just "_cName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cHeader") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CardHeader)) :*: S1 (MetaSel (Just "_cSections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Section]))))) |
Creates a value of Card
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cCardActions :: Lens' Card [CardAction] Source #
The actions of this card.
cHeader :: Lens' Card (Maybe CardHeader) Source #
The header of the card. A header usually contains a title and an image.
Space
A room or DM in Hangouts Chat.
See: space
smart constructor.
Instances
Eq Space Source # | |
Data Space Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Space -> c Space # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Space # dataTypeOf :: Space -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Space) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Space) # gmapT :: (forall b. Data b => b -> b) -> Space -> Space # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Space -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Space -> r # gmapQ :: (forall d. Data d => d -> u) -> Space -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Space -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Space -> m Space # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Space -> m Space # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Space -> m Space # | |
Show Space Source # | |
Generic Space Source # | |
ToJSON Space Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Space Source # | |
type Rep Space Source # | |
Defined in Network.Google.Chat.Types.Product type Rep Space = D1 (MetaData "Space" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "Space'" PrefixI True) (S1 (MetaSel (Just "_sName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SpaceType))))) |
Creates a value of Space
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sName :: Lens' Space (Maybe Text) Source #
Resource name of the space, in the form "spaces/*". Example: spaces/AAAAMpdlehYs
sDisplayName :: Lens' Space (Maybe Text) Source #
Output only. The display name (only if the space is a room).
KeyValue
A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.
See: keyValue
smart constructor.
Instances
Creates a value of KeyValue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
kvOnClick :: Lens' KeyValue (Maybe OnClick) Source #
The onclick action. Only the top label, bottom label and content region are clickable.
kvTopLabel :: Lens' KeyValue (Maybe Text) Source #
The text of the top label. Formatted text supported.
kvIcon :: Lens' KeyValue (Maybe KeyValueIcon) Source #
An enum value that will be replaced by the Chat API with the corresponding icon image.
kvButton :: Lens' KeyValue (Maybe Button) Source #
A button that can be clicked to trigger an action.
kvContent :: Lens' KeyValue (Maybe Text) Source #
The text of the content. Formatted text supported and always required.
kvBottomLabel :: Lens' KeyValue (Maybe Text) Source #
The text of the bottom label. Formatted text supported.
WidgetMarkup
data WidgetMarkup Source #
A widget is a UI element that presents texts, images, etc.
See: widgetMarkup
smart constructor.
Instances
widgetMarkup :: WidgetMarkup Source #
Creates a value of WidgetMarkup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
wmKeyValue :: Lens' WidgetMarkup (Maybe KeyValue) Source #
Display a key value item in this widget.
wmButtons :: Lens' WidgetMarkup [Button] Source #
A list of buttons. Buttons is also oneof data and only one of these fields should be set.
wmTextParagraph :: Lens' WidgetMarkup (Maybe TextParagraph) Source #
Display a text paragraph in this widget.
OnClick
An onclick action (e.g. open a link).
See: onClick
smart constructor.
Instances
Eq OnClick Source # | |
Data OnClick Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OnClick -> c OnClick # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OnClick # toConstr :: OnClick -> Constr # dataTypeOf :: OnClick -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OnClick) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OnClick) # gmapT :: (forall b. Data b => b -> b) -> OnClick -> OnClick # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OnClick -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OnClick -> r # gmapQ :: (forall d. Data d => d -> u) -> OnClick -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> OnClick -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> OnClick -> m OnClick # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OnClick -> m OnClick # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OnClick -> m OnClick # | |
Show OnClick Source # | |
Generic OnClick Source # | |
ToJSON OnClick Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON OnClick Source # | |
type Rep OnClick Source # | |
Defined in Network.Google.Chat.Types.Product type Rep OnClick = D1 (MetaData "OnClick" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "OnClick'" PrefixI True) (S1 (MetaSel (Just "_ocAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FormAction)) :*: S1 (MetaSel (Just "_ocOpenLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OpenLink)))) |
Creates a value of OnClick
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ocAction :: Lens' OnClick (Maybe FormAction) Source #
A form action will be trigger by this onclick if specified.
ocOpenLink :: Lens' OnClick (Maybe OpenLink) Source #
This onclick triggers an open link action if specified.
Annotation
data Annotation Source #
Annotations associated with the plain-text body of the message. Example plain-text message body: ``` Hello 'FooBot how are you!" ``` The corresponding annotations metadata: ``` "annotations":[{ "type":"USER_MENTION", "startIndex":6, "length":7, "userMention": { "user": { "name":"users/107946847022116401880", "displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" }, "type":"MENTION" } }] ```
See: annotation
smart constructor.
Instances
annotation :: Annotation Source #
Creates a value of Annotation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aLength :: Lens' Annotation (Maybe Int32) Source #
Length of the substring in the plain-text message body this annotation corresponds to.
aType :: Lens' Annotation (Maybe AnnotationType) Source #
The type of this annotation.
aUserMention :: Lens' Annotation (Maybe UserMentionMetadata) Source #
The metadata of user mention.
aStartIndex :: Lens' Annotation (Maybe Int32) Source #
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
Image
An image that is specified by a URL and can have an onclick action.
See: image
smart constructor.
Instances
Eq Image Source # | |
Data Image Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Image -> c Image # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Image # dataTypeOf :: Image -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Image) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Image) # gmapT :: (forall b. Data b => b -> b) -> Image -> Image # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQ :: (forall d. Data d => d -> u) -> Image -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Image -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # | |
Show Image Source # | |
Generic Image Source # | |
ToJSON Image Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Image Source # | |
type Rep Image Source # | |
Defined in Network.Google.Chat.Types.Product type Rep Image = D1 (MetaData "Image" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "Image'" PrefixI True) (S1 (MetaSel (Just "_iOnClick") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OnClick)) :*: (S1 (MetaSel (Just "_iAspectRatio") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double))) :*: S1 (MetaSel (Just "_iImageURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Image
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
KeyValueIcon
data KeyValueIcon Source #
An enum value that will be replaced by the Chat API with the corresponding icon image.
KVIIconUnspecified | ICON_UNSPECIFIED |
KVIAirplane | AIRPLANE |
KVIBookmark | BOOKMARK |
KVIBus | BUS |
KVICar | CAR |
KVIClock | CLOCK |
KVIConfirmationNumberIcon | CONFIRMATION_NUMBER_ICON |
KVIDollar | DOLLAR |
KVIDescription | DESCRIPTION |
KVIEmail | |
KVIEventPerformer | EVENT_PERFORMER |
KVIEventSeat | EVENT_SEAT |
KVIFlightArrival | FLIGHT_ARRIVAL |
KVIFlightDeParture | FLIGHT_DEPARTURE |
KVIHotel | HOTEL |
KVIHotelRoomType | HOTEL_ROOM_TYPE |
KVIInvite | INVITE |
KVIMapPin | MAP_PIN |
KVIMembership | MEMBERSHIP |
KVIMultiplePeople | MULTIPLE_PEOPLE |
KVIOffer | OFFER |
KVIPerson | PERSON |
KVIPhone | PHONE |
KVIRestaurantIcon | RESTAURANT_ICON |
KVIShoppingCart | SHOPPING_CART |
KVIStar | STAR |
KVIStore | STORE |
KVITicket | TICKET |
KVITrain | TRAIN |
KVIVideoCamera | VIDEO_CAMERA |
KVIVideoPlay | VIDEO_PLAY |
Instances
ActionParameter
data ActionParameter Source #
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.
See: actionParameter
smart constructor.
Instances
actionParameter :: ActionParameter Source #
Creates a value of ActionParameter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apKey :: Lens' ActionParameter (Maybe Text) Source #
The name of the parameter for the action script.
Membership
data Membership Source #
Represents a membership relation in Hangouts Chat.
See: membership
smart constructor.
Instances
membership :: Membership Source #
Creates a value of Membership
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mState :: Lens' Membership (Maybe MembershipState) Source #
State of the membership.
mName :: Lens' Membership (Maybe Text) Source #
Resource name of the membership, in the form "spaces/*/members/*". Example: spaces/AAAAMpdlehY/members/105115627578887013105
mCreateTime :: Lens' Membership (Maybe UTCTime) Source #
The creation time of the membership a.k.a the time at which the member joined the space, if applicable.
ActionResponseType
data ActionResponseType Source #
The type of bot response.
TypeUnspecified |
|
NewMessage |
|
UpdateMessage |
|
RequestConfig |
|
Instances
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
See: empty
smart constructor.
Instances
Eq Empty Source # | |
Data Empty Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Empty -> c Empty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Empty # dataTypeOf :: Empty -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Empty) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Empty) # gmapT :: (forall b. Data b => b -> b) -> Empty -> Empty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQ :: (forall d. Data d => d -> u) -> Empty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Empty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # | |
Show Empty Source # | |
Generic Empty Source # | |
ToJSON Empty Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Empty Source # | |
type Rep Empty Source # | |
DeprecatedEvent
data DeprecatedEvent Source #
Hangouts Chat events.
See: deprecatedEvent
smart constructor.
Instances
deprecatedEvent :: DeprecatedEvent Source #
Creates a value of DeprecatedEvent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
deToken :: Lens' DeprecatedEvent (Maybe Text) Source #
A secret value that bots can use to verify if a request is from Google. The token is randomly generated by Google, remains static, and can be obtained from the Hangouts Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page.
deAction :: Lens' DeprecatedEvent (Maybe FormAction) Source #
The form action data associated with an interactive card that was clicked. Only populated for CARD_CLICKED events. See the Interactive Cards guide for more information.
deEventTime :: Lens' DeprecatedEvent (Maybe UTCTime) Source #
The timestamp indicating when the event was dispatched.
deConfigCompleteRedirectURL :: Lens' DeprecatedEvent (Maybe Text) Source #
The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Hangouts Chat. See the Authorizing access to 3p services guide for more information.
deType :: Lens' DeprecatedEvent (Maybe DeprecatedEventType) Source #
The type of the event.
deMessage :: Lens' DeprecatedEvent (Maybe Message) Source #
The message that triggered the event, if applicable.
deThreadKey :: Lens' DeprecatedEvent (Maybe Text) Source #
The bot-defined key for the thread related to the event. See the thread_key field of the `spaces.message.create` request for more information.
MembershipState
data MembershipState Source #
State of the membership.
MembershipStateUnspecified |
|
Joined |
|
Invited |
|
NotAMember |
|
Instances
CardHeaderImageStyle
data CardHeaderImageStyle Source #
The image's type (e.g. square border or circular border).
CHISImageStyleUnspecified | IMAGE_STYLE_UNSPECIFIED |
CHISImage |
|
CHISAvatar |
|
Instances
TextParagraph
data TextParagraph Source #
A paragraph of text. Formatted text supported.
See: textParagraph
smart constructor.
Instances
textParagraph :: TextParagraph Source #
Creates a value of TextParagraph
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Button
A button. Can be a text button or an image button.
See: button
smart constructor.
Instances
Eq Button Source # | |
Data Button Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Button -> c Button # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Button # toConstr :: Button -> Constr # dataTypeOf :: Button -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Button) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Button) # gmapT :: (forall b. Data b => b -> b) -> Button -> Button # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Button -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Button -> r # gmapQ :: (forall d. Data d => d -> u) -> Button -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Button -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Button -> m Button # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Button -> m Button # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Button -> m Button # | |
Show Button Source # | |
Generic Button Source # | |
ToJSON Button Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Button Source # | |
type Rep Button Source # | |
Defined in Network.Google.Chat.Types.Product type Rep Button = D1 (MetaData "Button" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "Button'" PrefixI True) (S1 (MetaSel (Just "_bTextButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TextButton)) :*: S1 (MetaSel (Just "_bImageButton") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ImageButton)))) |
Creates a value of Button
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bTextButton :: Lens' Button (Maybe TextButton) Source #
A button with text and onclick action.
bImageButton :: Lens' Button (Maybe ImageButton) Source #
A button with image and onclick action.
UserMentionMetadataType
data UserMentionMetadataType Source #
The type of user mention.
UMMTTypeUnspecified |
|
UMMTAdd |
|
UMMTMention |
|
Instances
ListSpacesResponse
data ListSpacesResponse Source #
Instances
listSpacesResponse :: ListSpacesResponse Source #
Creates a value of ListSpacesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsrNextPageToken :: Lens' ListSpacesResponse (Maybe Text) Source #
Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed.
lsrSpaces :: Lens' ListSpacesResponse [Space] Source #
List of spaces in the requested (or first) page.
User
A user in Hangouts Chat.
See: user
smart constructor.
Instances
Eq User Source # | |
Data User Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> User -> c User # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c User # dataTypeOf :: User -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c User) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c User) # gmapT :: (forall b. Data b => b -> b) -> User -> User # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> User -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> User -> r # gmapQ :: (forall d. Data d => d -> u) -> User -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> User -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> User -> m User # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> User -> m User # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> User -> m User # | |
Show User Source # | |
Generic User Source # | |
ToJSON User Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON User Source # | |
type Rep User Source # | |
Defined in Network.Google.Chat.Types.Product type Rep User = D1 (MetaData "User" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "User'" PrefixI True) (S1 (MetaSel (Just "_uName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserType))))) |
Creates a value of User
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
SpaceType
Output only. The type of a space.
STTypeUnspecified | TYPE_UNSPECIFIED |
STRoom |
|
STDM |
|
Instances
OpenLink
A link that opens a new window.
See: openLink
smart constructor.
Instances
Eq OpenLink Source # | |
Data OpenLink Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OpenLink -> c OpenLink # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OpenLink # toConstr :: OpenLink -> Constr # dataTypeOf :: OpenLink -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OpenLink) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OpenLink) # gmapT :: (forall b. Data b => b -> b) -> OpenLink -> OpenLink # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OpenLink -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OpenLink -> r # gmapQ :: (forall d. Data d => d -> u) -> OpenLink -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> OpenLink -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> OpenLink -> m OpenLink # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OpenLink -> m OpenLink # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OpenLink -> m OpenLink # | |
Show OpenLink Source # | |
Generic OpenLink Source # | |
ToJSON OpenLink Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON OpenLink Source # | |
type Rep OpenLink Source # | |
Defined in Network.Google.Chat.Types.Product |
AnnotationType
data AnnotationType Source #
The type of this annotation.
AnnotationTypeUnspecified |
|
UserMention |
|
Instances
ImageButtonIcon
data ImageButtonIcon Source #
The icon specified by an enum that indices to an icon provided by Chat API.
IBIIconUnspecified | ICON_UNSPECIFIED |
IBIAirplane | AIRPLANE |
IBIBookmark | BOOKMARK |
IBIBus | BUS |
IBICar | CAR |
IBIClock | CLOCK |
IBIConfirmationNumberIcon | CONFIRMATION_NUMBER_ICON |
IBIDollar | DOLLAR |
IBIDescription | DESCRIPTION |
IBIEmail | |
IBIEventPerformer | EVENT_PERFORMER |
IBIEventSeat | EVENT_SEAT |
IBIFlightArrival | FLIGHT_ARRIVAL |
IBIFlightDeParture | FLIGHT_DEPARTURE |
IBIHotel | HOTEL |
IBIHotelRoomType | HOTEL_ROOM_TYPE |
IBIInvite | INVITE |
IBIMapPin | MAP_PIN |
IBIMembership | MEMBERSHIP |
IBIMultiplePeople | MULTIPLE_PEOPLE |
IBIOffer | OFFER |
IBIPerson | PERSON |
IBIPhone | PHONE |
IBIRestaurantIcon | RESTAURANT_ICON |
IBIShoppingCart | SHOPPING_CART |
IBIStar | STAR |
IBIStore | STORE |
IBITicket | TICKET |
IBITrain | TRAIN |
IBIVideoCamera | VIDEO_CAMERA |
IBIVideoPlay | VIDEO_PLAY |
Instances
CardAction
data CardAction Source #
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
See: cardAction
smart constructor.
Instances
cardAction :: CardAction Source #
Creates a value of CardAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caActionLabel :: Lens' CardAction (Maybe Text) Source #
The label used to be displayed in the action menu item.
Xgafv
V1 error format.
Instances
DeprecatedEventType
data DeprecatedEventType Source #
The type of the event.
DETUnspecified |
|
DETMessage |
|
DETAddedToSpace |
|
DETRemovedFromSpace |
|
DETCardClicked |
|
Instances
ActionResponse
data ActionResponse Source #
Parameters that a bot can use to configure how it's response is posted.
See: actionResponse
smart constructor.
Instances
actionResponse :: ActionResponse Source #
Creates a value of ActionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
arURL :: Lens' ActionResponse (Maybe Text) Source #
URL for users to auth or config. (Only for REQUEST_CONFIG response types.)
arType :: Lens' ActionResponse (Maybe ActionResponseType) Source #
The type of bot response.
FormAction
data FormAction Source #
A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.
See: formAction
smart constructor.
Instances
formAction :: FormAction Source #
Creates a value of FormAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
faActionMethodName :: Lens' FormAction (Maybe Text) Source #
Apps Script function to invoke when the containing element is clicked/activated.
faParameters :: Lens' FormAction [ActionParameter] Source #
List of action parameters.
ListMembershipsResponse
data ListMembershipsResponse Source #
Instances
listMembershipsResponse :: ListMembershipsResponse Source #
Creates a value of ListMembershipsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lmrNextPageToken :: Lens' ListMembershipsResponse (Maybe Text) Source #
Continuation token to retrieve the next page of results. It will be empty for the last page of results.
lmrMemberships :: Lens' ListMembershipsResponse [Membership] Source #
List of memberships in the requested (or first) page.
Message
A message in Hangouts Chat.
See: message
smart constructor.
Instances
Creates a value of Message
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mesAnnotations :: Lens' Message [Annotation] Source #
Output only. Annotations associated with the text in this message.
mesName :: Lens' Message (Maybe Text) Source #
Resource name, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
mesPreviewText :: Lens' Message (Maybe Text) Source #
Text for generating preview chips. This text will not be displayed to the user, but any links to images, web pages, videos, etc. included here will generate preview chips.
mesCards :: Lens' Message [Card] Source #
Rich, formatted and interactive cards that can be used to display UI elements such as: formatted texts, buttons, clickable images. Cards are normally displayed below the plain-text body of the message.
mesActionResponse :: Lens' Message (Maybe ActionResponse) Source #
Input only. Parameters that a bot can use to configure how its response is posted.
mesArgumentText :: Lens' Message (Maybe Text) Source #
Plain-text body of the message with all bot mentions stripped out.
mesFallbackText :: Lens' Message (Maybe Text) Source #
A plain-text description of the message's cards, used when the actual cards cannot be displayed (e.g. mobile notifications).
mesCreateTime :: Lens' Message (Maybe UTCTime) Source #
Output only. The time at which the message was created in Hangouts Chat server.
CardHeader
data CardHeader Source #
Instances
cardHeader :: CardHeader Source #
Creates a value of CardHeader
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chSubtitle :: Lens' CardHeader (Maybe Text) Source #
The subtitle of the card header.
chImageURL :: Lens' CardHeader (Maybe Text) Source #
The URL of the image in the card header.
chTitle :: Lens' CardHeader (Maybe Text) Source #
The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines.
chImageStyle :: Lens' CardHeader (Maybe CardHeaderImageStyle) Source #
The image's type (e.g. square border or circular border).
TextButton
data TextButton Source #
A button with text and onclick action.
See: textButton
smart constructor.
Instances
textButton :: TextButton Source #
Creates a value of TextButton
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Thread
A thread in Hangouts Chat.
See: thread
smart constructor.
Instances
Eq Thread Source # | |
Data Thread Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Thread -> c Thread # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Thread # toConstr :: Thread -> Constr # dataTypeOf :: Thread -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Thread) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Thread) # gmapT :: (forall b. Data b => b -> b) -> Thread -> Thread # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Thread -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Thread -> r # gmapQ :: (forall d. Data d => d -> u) -> Thread -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Thread -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Thread -> m Thread # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Thread -> m Thread # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Thread -> m Thread # | |
Show Thread Source # | |
Generic Thread Source # | |
ToJSON Thread Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Thread Source # | |
type Rep Thread Source # | |
Defined in Network.Google.Chat.Types.Product |
tName :: Lens' Thread (Maybe Text) Source #
Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAMpdlehY/threads/UMxbHmzDlr4
UserMentionMetadata
data UserMentionMetadata Source #
Annotation metadata for user mentions (').
See: userMentionMetadata
smart constructor.
Instances
userMentionMetadata :: UserMentionMetadata Source #
Creates a value of UserMentionMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ummType :: Lens' UserMentionMetadata (Maybe UserMentionMetadataType) Source #
The type of user mention.
ImageButton
data ImageButton Source #
An image button with an onclick action.
See: imageButton
smart constructor.
Instances
imageButton :: ImageButton Source #
Creates a value of ImageButton
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ibIcon :: Lens' ImageButton (Maybe ImageButtonIcon) Source #
The icon specified by an enum that indices to an icon provided by Chat API.
ibName :: Lens' ImageButton (Maybe Text) Source #
The name of this image_button which will be used for accessibility. Default value will be provided if developers don't specify.
Section
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).
See: section
smart constructor.
Instances
Eq Section Source # | |
Data Section Source # | |
Defined in Network.Google.Chat.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Section -> c Section # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Section # toConstr :: Section -> Constr # dataTypeOf :: Section -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Section) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Section) # gmapT :: (forall b. Data b => b -> b) -> Section -> Section # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Section -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Section -> r # gmapQ :: (forall d. Data d => d -> u) -> Section -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Section -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Section -> m Section # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Section -> m Section # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Section -> m Section # | |
Show Section Source # | |
Generic Section Source # | |
ToJSON Section Source # | |
Defined in Network.Google.Chat.Types.Product | |
FromJSON Section Source # | |
type Rep Section Source # | |
Defined in Network.Google.Chat.Types.Product type Rep Section = D1 (MetaData "Section" "Network.Google.Chat.Types.Product" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "Section'" PrefixI True) (S1 (MetaSel (Just "_sWidgets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [WidgetMarkup])) :*: S1 (MetaSel (Just "_sHeader") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) |
UserType
User type.
UTTypeUnspecified |
|
UTHuman |
|
UTBot |
|