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.LeaveTurn

Contents

Description

Leave a turn-based match during the current player's turn, without canceling the match.

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

Synopsis

REST Resource

type TurnBasedMatchesLeaveTurnResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("leaveTurn" :> (QueryParam "matchVersion" (Textual Int32) :> (QueryParam "language" Text :> (QueryParam "pendingParticipantId" Text :> (QueryParam "alt" AltJSON :> Put '[JSON] TurnBasedMatch)))))))) Source #

A resource alias for games.turnBasedMatches.leaveTurn method which the TurnBasedMatchesLeaveTurn request conforms to.

Creating a Request

turnBasedMatchesLeaveTurn Source #

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

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

data TurnBasedMatchesLeaveTurn Source #

Leave a turn-based match during the current player's turn, without canceling the match.

See: turnBasedMatchesLeaveTurn smart constructor.

Instances
Eq TurnBasedMatchesLeaveTurn Source # 
Instance details

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

Data TurnBasedMatchesLeaveTurn Source # 
Instance details

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

Methods

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

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

toConstr :: TurnBasedMatchesLeaveTurn -> Constr #

dataTypeOf :: TurnBasedMatchesLeaveTurn -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TurnBasedMatchesLeaveTurn Source # 
Instance details

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

Generic TurnBasedMatchesLeaveTurn Source # 
Instance details

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

Associated Types

type Rep TurnBasedMatchesLeaveTurn :: Type -> Type #

GoogleRequest TurnBasedMatchesLeaveTurn Source # 
Instance details

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

type Rep TurnBasedMatchesLeaveTurn Source # 
Instance details

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

type Rep TurnBasedMatchesLeaveTurn = D1 (MetaData "TurnBasedMatchesLeaveTurn" "Network.Google.Resource.Games.TurnBasedMatches.LeaveTurn" "gogol-games-0.4.0-EPjClsFfNAGupIHqlLfHm" False) (C1 (MetaCons "TurnBasedMatchesLeaveTurn'" PrefixI True) ((S1 (MetaSel (Just "_tbmltLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tbmltPendingParticipantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_tbmltMatchId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tbmltMatchVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)))))
type Scopes TurnBasedMatchesLeaveTurn Source # 
Instance details

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

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

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

Request Lenses

tbmltLanguage :: Lens' TurnBasedMatchesLeaveTurn (Maybe Text) Source #

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

tbmltPendingParticipantId :: Lens' TurnBasedMatchesLeaveTurn (Maybe Text) Source #

The ID of another participant who should take their turn next. If not set, the match will wait for other player(s) to join via automatching; this is only valid if automatch criteria is set on the match with remaining slots for automatched players.

tbmltMatchVersion :: Lens' TurnBasedMatchesLeaveTurn Int32 Source #

The version of the match being updated.