| 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 |
Network.Google.Resource.Games.TurnBasedMatches.TakeTurn
Description
Commit the results of a player turn.
See: Google Play Game Services API Reference for games.turnBasedMatches.takeTurn.
Synopsis
- type TurnBasedMatchesTakeTurnResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("turn" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchTurn :> Put '[JSON] TurnBasedMatch)))))))
- turnBasedMatchesTakeTurn :: TurnBasedMatchTurn -> Text -> TurnBasedMatchesTakeTurn
- data TurnBasedMatchesTakeTurn
- tbmttPayload :: Lens' TurnBasedMatchesTakeTurn TurnBasedMatchTurn
- tbmttLanguage :: Lens' TurnBasedMatchesTakeTurn (Maybe Text)
- tbmttMatchId :: Lens' TurnBasedMatchesTakeTurn Text
REST Resource
type TurnBasedMatchesTakeTurnResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("turn" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchTurn :> Put '[JSON] TurnBasedMatch))))))) Source #
A resource alias for games.turnBasedMatches.takeTurn method which the
TurnBasedMatchesTakeTurn request conforms to.
Creating a Request
turnBasedMatchesTakeTurn Source #
Arguments
| :: TurnBasedMatchTurn | |
| -> Text | |
| -> TurnBasedMatchesTakeTurn |
Creates a value of TurnBasedMatchesTakeTurn with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TurnBasedMatchesTakeTurn Source #
Commit the results of a player turn.
See: turnBasedMatchesTakeTurn smart constructor.
Instances
Request Lenses
tbmttPayload :: Lens' TurnBasedMatchesTakeTurn TurnBasedMatchTurn Source #
Multipart request metadata.
tbmttLanguage :: Lens' TurnBasedMatchesTakeTurn (Maybe Text) Source #
The preferred language to use for strings returned by this method.
tbmttMatchId :: Lens' TurnBasedMatchesTakeTurn Text Source #
The ID of the match.