gogol-games-0.3.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.Finish

Contents

Description

Finish a turn-based match. Each player should make this call once, after all results are in. Only the player whose turn it is may make the first call to Finish, and can pass in the final match state.

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

Synopsis

REST Resource

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

A resource alias for games.turnBasedMatches.finish method which the TurnBasedMatchesFinish request conforms to.

Creating a Request

turnBasedMatchesFinish Source #

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

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

data TurnBasedMatchesFinish Source #

Finish a turn-based match. Each player should make this call once, after all results are in. Only the player whose turn it is may make the first call to Finish, and can pass in the final match state.

See: turnBasedMatchesFinish smart constructor.

Instances

Eq TurnBasedMatchesFinish Source # 
Data TurnBasedMatchesFinish Source # 

Methods

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

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

toConstr :: TurnBasedMatchesFinish -> Constr #

dataTypeOf :: TurnBasedMatchesFinish -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TurnBasedMatchesFinish Source # 
Generic TurnBasedMatchesFinish Source # 
GoogleRequest TurnBasedMatchesFinish Source # 
type Rep TurnBasedMatchesFinish Source # 
type Rep TurnBasedMatchesFinish = D1 (MetaData "TurnBasedMatchesFinish" "Network.Google.Resource.Games.TurnBasedMatches.Finish" "gogol-games-0.3.0-8BCKppY4rzpLLml8wyBtKz" False) (C1 (MetaCons "TurnBasedMatchesFinish'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tbmfConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_tbmfPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TurnBasedMatchResults))) ((:*:) (S1 (MetaSel (Just Symbol "_tbmfLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tbmfMatchId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes TurnBasedMatchesFinish Source # 
type Scopes TurnBasedMatchesFinish = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs TurnBasedMatchesFinish Source # 

Request Lenses

tbmfConsistencyToken :: Lens' TurnBasedMatchesFinish (Maybe Int64) Source #

The last-seen mutation timestamp.

tbmfLanguage :: Lens' TurnBasedMatchesFinish (Maybe Text) Source #

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