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

Request Lenses

tbmfLanguage :: Lens' TurnBasedMatchesFinish (Maybe Text) Source

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