gogol-games-0.4.0: 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 "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 # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

Data TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

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 # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

Generic TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

Associated Types

type Rep TurnBasedMatchesList :: Type -> Type #

GoogleRequest TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

Associated Types

type Rs TurnBasedMatchesList :: Type #

type Scopes TurnBasedMatchesList :: [Symbol] #

type Rep TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

type Rep TurnBasedMatchesList = D1 (MetaData "TurnBasedMatchesList" "Network.Google.Resource.Games.TurnBasedMatches.List" "gogol-games-0.4.0-EPjClsFfNAGupIHqlLfHm" False) (C1 (MetaCons "TurnBasedMatchesList'" PrefixI True) ((S1 (MetaSel (Just "_tMaxCompletedMatches") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_tIncludeMatchData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_tLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))))))
type Scopes TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

type Scopes TurnBasedMatchesList = "https://www.googleapis.com/auth/games" ': ([] :: [Symbol])
type Rs TurnBasedMatchesList Source # 
Instance details

Defined in Network.Google.Resource.Games.TurnBasedMatches.List

Request Lenses

tMaxCompletedMatches :: 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.

tIncludeMatchData :: 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.

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

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

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

The token returned by the previous request.

tMaxResults :: 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.