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

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

Data TurnBasedMatchesFinish Source # 
Instance details

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

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

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

Generic TurnBasedMatchesFinish Source # 
Instance details

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

Associated Types

type Rep TurnBasedMatchesFinish :: Type -> Type #

GoogleRequest TurnBasedMatchesFinish Source # 
Instance details

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

type Rep TurnBasedMatchesFinish Source # 
Instance details

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

type Rep TurnBasedMatchesFinish = D1 (MetaData "TurnBasedMatchesFinish" "Network.Google.Resource.Games.TurnBasedMatches.Finish" "gogol-games-0.4.0-EPjClsFfNAGupIHqlLfHm" False) (C1 (MetaCons "TurnBasedMatchesFinish'" PrefixI True) (S1 (MetaSel (Just "_tbmfPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TurnBasedMatchResults) :*: (S1 (MetaSel (Just "_tbmfLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tbmfMatchId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes TurnBasedMatchesFinish Source # 
Instance details

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

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

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

Request Lenses

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

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