Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- type TurnBasedMatchesRematchResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("rematch" :> (QueryParam "requestId" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] TurnBasedMatchRematch)))))))
- turnBasedMatchesRematch :: Text -> TurnBasedMatchesRematch
- data TurnBasedMatchesRematch
- tbmrRequestId :: Lens' TurnBasedMatchesRematch (Maybe Int64)
- tbmrLanguage :: Lens' TurnBasedMatchesRematch (Maybe Text)
- tbmrMatchId :: Lens' TurnBasedMatchesRematch Text
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.
Instances
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.
tbmrMatchId :: Lens' TurnBasedMatchesRematch Text Source #
The ID of the match.