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 |
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
- type TurnBasedMatchesFinishResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("finish" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TurnBasedMatchResults :> Put '[JSON] TurnBasedMatch)))))))
- turnBasedMatchesFinish :: TurnBasedMatchResults -> Text -> TurnBasedMatchesFinish
- data TurnBasedMatchesFinish
- tbmfPayload :: Lens' TurnBasedMatchesFinish TurnBasedMatchResults
- tbmfLanguage :: Lens' TurnBasedMatchesFinish (Maybe Text)
- tbmfMatchId :: Lens' TurnBasedMatchesFinish Text
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.
Instances
Request Lenses
tbmfPayload :: Lens' TurnBasedMatchesFinish TurnBasedMatchResults Source #
Multipart request metadata.
tbmfLanguage :: Lens' TurnBasedMatchesFinish (Maybe Text) Source #
The preferred language to use for strings returned by this method.
tbmfMatchId :: Lens' TurnBasedMatchesFinish Text Source #
The ID of the match.