gogol-games-0.0.1: Google Play Game Services SDK.

Copyright(c) 2015 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:

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.