{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Games.TurnBasedMatches.List
(
TurnBasedMatchesListResource
, turnBasedMatchesList
, TurnBasedMatchesList
, tMaxCompletedMatches
, tIncludeMatchData
, tLanguage
, tPageToken
, tMaxResults
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type TurnBasedMatchesListResource =
"games" :>
"v1" :>
"turnbasedmatches" :>
QueryParam "maxCompletedMatches" (Textual Int32) :>
QueryParam "includeMatchData" Bool :>
QueryParam "language" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] TurnBasedMatchList
data TurnBasedMatchesList = TurnBasedMatchesList'
{ _tMaxCompletedMatches :: !(Maybe (Textual Int32))
, _tIncludeMatchData :: !(Maybe Bool)
, _tLanguage :: !(Maybe Text)
, _tPageToken :: !(Maybe Text)
, _tMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
turnBasedMatchesList
:: TurnBasedMatchesList
turnBasedMatchesList =
TurnBasedMatchesList'
{ _tMaxCompletedMatches = Nothing
, _tIncludeMatchData = Nothing
, _tLanguage = Nothing
, _tPageToken = Nothing
, _tMaxResults = Nothing
}
tMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32)
tMaxCompletedMatches
= lens _tMaxCompletedMatches
(\ s a -> s{_tMaxCompletedMatches = a})
. mapping _Coerce
tIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool)
tIncludeMatchData
= lens _tIncludeMatchData
(\ s a -> s{_tIncludeMatchData = a})
tLanguage :: Lens' TurnBasedMatchesList (Maybe Text)
tLanguage
= lens _tLanguage (\ s a -> s{_tLanguage = a})
tPageToken :: Lens' TurnBasedMatchesList (Maybe Text)
tPageToken
= lens _tPageToken (\ s a -> s{_tPageToken = a})
tMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32)
tMaxResults
= lens _tMaxResults (\ s a -> s{_tMaxResults = a}) .
mapping _Coerce
instance GoogleRequest TurnBasedMatchesList where
type Rs TurnBasedMatchesList = TurnBasedMatchList
type Scopes TurnBasedMatchesList =
'["https://www.googleapis.com/auth/games"]
requestClient TurnBasedMatchesList'{..}
= go _tMaxCompletedMatches _tIncludeMatchData
_tLanguage
_tPageToken
_tMaxResults
(Just AltJSON)
gamesService
where go
= buildClient
(Proxy :: Proxy TurnBasedMatchesListResource)
mempty