module Network.Google.Resource.Games.Events.ListByPlayer
(
EventsListByPlayerResource
, eventsListByPlayer
, EventsListByPlayer
, elbpConsistencyToken
, elbpLanguage
, elbpPageToken
, elbpMaxResults
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type EventsListByPlayerResource =
"games" :>
"v1" :>
"events" :>
QueryParam "consistencyToken" (Textual Int64) :>
QueryParam "language" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] PlayerEventListResponse
data EventsListByPlayer = EventsListByPlayer'
{ _elbpConsistencyToken :: !(Maybe (Textual Int64))
, _elbpLanguage :: !(Maybe Text)
, _elbpPageToken :: !(Maybe Text)
, _elbpMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
eventsListByPlayer
:: EventsListByPlayer
eventsListByPlayer =
EventsListByPlayer'
{ _elbpConsistencyToken = Nothing
, _elbpLanguage = Nothing
, _elbpPageToken = Nothing
, _elbpMaxResults = Nothing
}
elbpConsistencyToken :: Lens' EventsListByPlayer (Maybe Int64)
elbpConsistencyToken
= lens _elbpConsistencyToken
(\ s a -> s{_elbpConsistencyToken = a})
. mapping _Coerce
elbpLanguage :: Lens' EventsListByPlayer (Maybe Text)
elbpLanguage
= lens _elbpLanguage (\ s a -> s{_elbpLanguage = a})
elbpPageToken :: Lens' EventsListByPlayer (Maybe Text)
elbpPageToken
= lens _elbpPageToken
(\ s a -> s{_elbpPageToken = a})
elbpMaxResults :: Lens' EventsListByPlayer (Maybe Int32)
elbpMaxResults
= lens _elbpMaxResults
(\ s a -> s{_elbpMaxResults = a})
. mapping _Coerce
instance GoogleRequest EventsListByPlayer where
type Rs EventsListByPlayer = PlayerEventListResponse
type Scopes EventsListByPlayer =
'["https://www.googleapis.com/auth/games",
"https://www.googleapis.com/auth/plus.login"]
requestClient EventsListByPlayer'{..}
= go _elbpConsistencyToken _elbpLanguage
_elbpPageToken
_elbpMaxResults
(Just AltJSON)
gamesService
where go
= buildClient
(Proxy :: Proxy EventsListByPlayerResource)
mempty