gogol-games-0.1.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.TakeTurn

Contents

Description

Commit the results of a player turn.

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

Synopsis

REST Resource

type TurnBasedMatchesTakeTurnResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("turn" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchTurn :> Put '[JSON] TurnBasedMatch)))))))) Source #

A resource alias for games.turnBasedMatches.takeTurn method which the TurnBasedMatchesTakeTurn request conforms to.

Creating a Request

turnBasedMatchesTakeTurn Source #

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

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

data TurnBasedMatchesTakeTurn Source #

Commit the results of a player turn.

See: turnBasedMatchesTakeTurn smart constructor.

Instances

Eq TurnBasedMatchesTakeTurn Source # 
Data TurnBasedMatchesTakeTurn Source # 

Methods

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

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

toConstr :: TurnBasedMatchesTakeTurn -> Constr #

dataTypeOf :: TurnBasedMatchesTakeTurn -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TurnBasedMatchesTakeTurn Source # 
Generic TurnBasedMatchesTakeTurn Source # 
GoogleRequest TurnBasedMatchesTakeTurn Source # 
type Rep TurnBasedMatchesTakeTurn Source # 
type Rep TurnBasedMatchesTakeTurn = D1 (MetaData "TurnBasedMatchesTakeTurn" "Network.Google.Resource.Games.TurnBasedMatches.TakeTurn" "gogol-games-0.1.0-Ie5bQD7CsWE1e0aKgiwDY3" False) (C1 (MetaCons "TurnBasedMatchesTakeTurn'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tbmttConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_tbmttPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TurnBasedMatchTurn))) ((:*:) (S1 (MetaSel (Just Symbol "_tbmttLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tbmttMatchId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes TurnBasedMatchesTakeTurn Source # 
type Scopes TurnBasedMatchesTakeTurn = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs TurnBasedMatchesTakeTurn Source # 

Request Lenses

tbmttLanguage :: Lens' TurnBasedMatchesTakeTurn (Maybe Text) Source #

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