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 |
Leave a turn-based match when it is not the current player's turn, without canceling the match.
See: Google Play Game Services API Reference for games.turnBasedMatches.leave
.
Synopsis
- type TurnBasedMatchesLeaveResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("leave" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Put '[JSON] TurnBasedMatch))))))
- turnBasedMatchesLeave :: Text -> TurnBasedMatchesLeave
- data TurnBasedMatchesLeave
- tbmlLanguage :: Lens' TurnBasedMatchesLeave (Maybe Text)
- tbmlMatchId :: Lens' TurnBasedMatchesLeave Text
REST Resource
type TurnBasedMatchesLeaveResource = "games" :> ("v1" :> ("turnbasedmatches" :> (Capture "matchId" Text :> ("leave" :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> Put '[JSON] TurnBasedMatch)))))) Source #
A resource alias for games.turnBasedMatches.leave
method which the
TurnBasedMatchesLeave
request conforms to.
Creating a Request
turnBasedMatchesLeave Source #
Creates a value of TurnBasedMatchesLeave
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TurnBasedMatchesLeave Source #
Leave a turn-based match when it is not the current player's turn, without canceling the match.
See: turnBasedMatchesLeave
smart constructor.
Instances
Request Lenses
tbmlLanguage :: Lens' TurnBasedMatchesLeave (Maybe Text) Source #
The preferred language to use for strings returned by this method.
tbmlMatchId :: Lens' TurnBasedMatchesLeave Text Source #
The ID of the match.