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 that changed since the last sync call, with the least recent changes coming first. Matches that should be removed from the local cache will have a status of MATCH_DELETED.
See: Google Play Game Services API Reference for games.turnBasedMatches.sync
.
Synopsis
- type TurnBasedMatchesSyncResource = "games" :> ("v1" :> ("turnbasedmatches" :> ("sync" :> (QueryParam "maxCompletedMatches" (Textual Int32) :> (QueryParam "includeMatchData" Bool :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] TurnBasedMatchSync)))))))))
- turnBasedMatchesSync :: TurnBasedMatchesSync
- data TurnBasedMatchesSync
- tbmsMaxCompletedMatches :: Lens' TurnBasedMatchesSync (Maybe Int32)
- tbmsIncludeMatchData :: Lens' TurnBasedMatchesSync (Maybe Bool)
- tbmsLanguage :: Lens' TurnBasedMatchesSync (Maybe Text)
- tbmsPageToken :: Lens' TurnBasedMatchesSync (Maybe Text)
- tbmsMaxResults :: Lens' TurnBasedMatchesSync (Maybe Int32)
REST Resource
type TurnBasedMatchesSyncResource = "games" :> ("v1" :> ("turnbasedmatches" :> ("sync" :> (QueryParam "maxCompletedMatches" (Textual Int32) :> (QueryParam "includeMatchData" Bool :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] TurnBasedMatchSync))))))))) Source #
A resource alias for games.turnBasedMatches.sync
method which the
TurnBasedMatchesSync
request conforms to.
Creating a Request
turnBasedMatchesSync :: TurnBasedMatchesSync Source #
Creates a value of TurnBasedMatchesSync
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TurnBasedMatchesSync Source #
Returns turn-based matches the player is or was involved in that changed since the last sync call, with the least recent changes coming first. Matches that should be removed from the local cache will have a status of MATCH_DELETED.
See: turnBasedMatchesSync
smart constructor.
Instances
Request Lenses
tbmsMaxCompletedMatches :: Lens' TurnBasedMatchesSync (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.
tbmsIncludeMatchData :: Lens' TurnBasedMatchesSync (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.
tbmsLanguage :: Lens' TurnBasedMatchesSync (Maybe Text) Source #
The preferred language to use for strings returned by this method.
tbmsPageToken :: Lens' TurnBasedMatchesSync (Maybe Text) Source #
The token returned by the previous request.
tbmsMaxResults :: Lens' TurnBasedMatchesSync (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.