gogol-games-0.1.1: Google Play Game Services SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Games.TurnBasedMatches.List

Contents

Description

Returns turn-based matches the player is or was involved in.

See: Google Play Game Services API Reference for games.turnBasedMatches.list.

Synopsis

REST Resource

type TurnBasedMatchesListResource = "games" :> ("v1" :> ("turnbasedmatches" :> (QueryParam "maxCompletedMatches" (Textual Int32) :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "includeMatchData" Bool :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] TurnBasedMatchList))))))))) Source #

A resource alias for games.turnBasedMatches.list method which the TurnBasedMatchesList request conforms to.

Creating a Request

turnBasedMatchesList :: TurnBasedMatchesList Source #

Creates a value of TurnBasedMatchesList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data TurnBasedMatchesList Source #

Returns turn-based matches the player is or was involved in.

See: turnBasedMatchesList smart constructor.

Instances

Eq TurnBasedMatchesList Source # 
Data TurnBasedMatchesList Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TurnBasedMatchesList -> c TurnBasedMatchesList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TurnBasedMatchesList #

toConstr :: TurnBasedMatchesList -> Constr #

dataTypeOf :: TurnBasedMatchesList -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TurnBasedMatchesList) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TurnBasedMatchesList) #

gmapT :: (forall b. Data b => b -> b) -> TurnBasedMatchesList -> TurnBasedMatchesList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TurnBasedMatchesList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TurnBasedMatchesList -> r #

gmapQ :: (forall d. Data d => d -> u) -> TurnBasedMatchesList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TurnBasedMatchesList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TurnBasedMatchesList -> m TurnBasedMatchesList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TurnBasedMatchesList -> m TurnBasedMatchesList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TurnBasedMatchesList -> m TurnBasedMatchesList #

Show TurnBasedMatchesList Source # 
Generic TurnBasedMatchesList Source # 
GoogleRequest TurnBasedMatchesList Source # 
type Rep TurnBasedMatchesList Source # 
type Rep TurnBasedMatchesList = D1 (MetaData "TurnBasedMatchesList" "Network.Google.Resource.Games.TurnBasedMatches.List" "gogol-games-0.1.1-51s1M5pkrSC2hZZaHOnQh5" False) (C1 (MetaCons "TurnBasedMatchesList'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_turMaxCompletedMatches") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))) ((:*:) (S1 (MetaSel (Just Symbol "_turConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_turIncludeMatchData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) (S1 (MetaSel (Just Symbol "_turLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_turPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_turMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))))
type Scopes TurnBasedMatchesList Source # 
type Scopes TurnBasedMatchesList = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs TurnBasedMatchesList Source # 

Request Lenses

turMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32) Source #

The maximum number of completed or canceled matches to return in the response. If not set, all matches returned could be completed or canceled.

turConsistencyToken :: Lens' TurnBasedMatchesList (Maybe Int64) Source #

The last-seen mutation timestamp.

turIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool) Source #

True if match data should be returned in the response. Note that not all data will necessarily be returned if include_match_data is true; the server may decide to only return data for some of the matches to limit download size for the client. The remainder of the data for these matches will be retrievable on request.

turLanguage :: Lens' TurnBasedMatchesList (Maybe Text) Source #

The preferred language to use for strings returned by this method.

turPageToken :: Lens' TurnBasedMatchesList (Maybe Text) Source #

The token returned by the previous request.

turMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32) Source #

The maximum number of matches to return in the response, used for paging. For any response, the actual number of matches to return may be less than the specified maxResults.