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

Contents

Description

Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.

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

Synopsis

REST Resource

type TurnBasedMatchesRematchResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("rematch" :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post `[JSON]` TurnBasedMatchRematch))))))) Source

A resource alias for games.turnBasedMatches.rematch method which the TurnBasedMatchesRematch request conforms to.

Creating a Request

turnBasedMatchesRematch Source

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

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

data TurnBasedMatchesRematch Source

Create a rematch of a match that was previously completed, with the same participants. This can be called by only one player on a match still in their list; the player must have called Finish first. Returns the newly created match; it will be the caller's turn.

See: turnBasedMatchesRematch smart constructor.

Request Lenses

tbmrRequestId :: Lens' TurnBasedMatchesRematch (Maybe Int64) Source

A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.

tbmrLanguage :: Lens' TurnBasedMatchesRematch (Maybe Text) Source

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