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 |
Returns turn-based matches the player is or was involved in.
See: Google Play Game Services API Reference for games.turnBasedMatches.list
.
Synopsis
- type TurnBasedMatchesListResource = "games" :> ("v1" :> ("turnbasedmatches" :> (QueryParam "maxCompletedMatches" (Textual Int32) :> (QueryParam "includeMatchData" Bool :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] TurnBasedMatchList))))))))
- turnBasedMatchesList :: TurnBasedMatchesList
- data TurnBasedMatchesList
- tMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32)
- tIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool)
- tLanguage :: Lens' TurnBasedMatchesList (Maybe Text)
- tPageToken :: Lens' TurnBasedMatchesList (Maybe Text)
- tMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32)
REST Resource
type TurnBasedMatchesListResource = "games" :> ("v1" :> ("turnbasedmatches" :> (QueryParam "maxCompletedMatches" (Textual Int32) :> (QueryParam "includeMatchData" Bool :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] TurnBasedMatchList)))))))) Source #
A resource alias for games.turnBasedMatches.list
method which the
TurnBasedMatchesList
request conforms to.
Creating a Request
turnBasedMatchesList :: TurnBasedMatchesList Source #
Creates a value of TurnBasedMatchesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TurnBasedMatchesList Source #
Returns turn-based matches the player is or was involved in.
See: turnBasedMatchesList
smart constructor.
Instances
Request Lenses
tMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32) Source #
The maximum number of completed or canceled matches to return in the response. If not set, all matches returned could be completed or canceled.
tIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool) Source #
True if match data should be returned in the response. Note that not all data will necessarily be returned if include_match_data is true; the server may decide to only return data for some of the matches to limit download size for the client. The remainder of the data for these matches will be retrievable on request.
tLanguage :: Lens' TurnBasedMatchesList (Maybe Text) Source #
The preferred language to use for strings returned by this method.
tPageToken :: Lens' TurnBasedMatchesList (Maybe Text) Source #
The token returned by the previous request.
tMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32) Source #
The maximum number of matches to return in the response, used for paging. For any response, the actual number of matches to return may be less than the specified maxResults.