@@ -33,11 +33,12 @@ module Network.Google.Resource.Games.TurnBasedMatches.List
33 , TurnBasedMatchesList
33 , TurnBasedMatchesList
35 -- * Request Lenses
35 -- * Request Lenses
36− , tMaxCompletedMatches
36+ , turMaxCompletedMatches
37− , tIncludeMatchData
37+ , turConsistencyToken
38− , tLanguage
38+ , turIncludeMatchData
39− , tPageToken
39+ , turLanguage
40− , tMaxResults
40+ , turPageToken
43import Network.Google.Games.Types
44import Network.Google.Games.Types
@@ -50,55 +51,67 @@ type TurnBasedMatchesListResource =
51 "turnbasedmatches" :>
52 "turnbasedmatches" :>
52 QueryParam "maxCompletedMatches" (Textual Int32) :>
53 QueryParam "maxCompletedMatches" (Textual Int32) :>
54+ QueryParam "consistencyToken" (Textual Int64) :>
53− QueryParam "includeMatchData" Bool :>
55+ QueryParam "includeMatchData" Bool :>
54− QueryParam "language" Text :>
56+ QueryParam "language" Text :>
55− QueryParam "pageToken" Text :>
57+ QueryParam "pageToken" Text :>
56− QueryParam "maxResults" (Textual Int32) :>
58+ QueryParam "maxResults" (Textual Int32) :>
57− QueryParam "alt" AltJSON :>
59+ QueryParam "alt" AltJSON :>
58− Get '[JSON] TurnBasedMatchList
60+ Get '[JSON] TurnBasedMatchList
60-- | Returns turn-based matches the player is or was involved in.
62-- | Returns turn-based matches the player is or was involved in.
62-- /See:/ 'turnBasedMatchesList' smart constructor.
64-- /See:/ 'turnBasedMatchesList' smart constructor.
63data TurnBasedMatchesList = TurnBasedMatchesList'
65data TurnBasedMatchesList = TurnBasedMatchesList'
64− { _tMaxCompletedMatches :: !(Maybe (Textual Int32))
66+ { _turMaxCompletedMatches :: !(Maybe (Textual Int32))
65− , _tIncludeMatchData :: !(Maybe Bool)
67+ , _turConsistencyToken :: !(Maybe (Textual Int64))
68+ , _turIncludeMatchData :: !(Maybe Bool)
66− , _tLanguage :: !(Maybe Text)
69+ , _turLanguage :: !(Maybe Text)
67− , _tPageToken :: !(Maybe Text)
70+ , _turPageToken :: !(Maybe Text)
68− , _tMaxResults :: !(Maybe (Textual Int32))
71+ , _turMaxResults :: !(Maybe (Textual Int32))
69 } deriving (Eq,Show,Data,Typeable,Generic)
72 } deriving (Eq,Show,Data,Typeable,Generic)
71-- | Creates a value of 'TurnBasedMatchesList' with the minimum fields required to make a request.
74-- | Creates a value of 'TurnBasedMatchesList' with the minimum fields required to make a request.
73-- Use one of the following lenses to modify other fields as desired:
76-- Use one of the following lenses to modify other fields as desired:
75−-- * 'tMaxCompletedMatches'
78+-- * 'turMaxCompletedMatches'
77−-- * 'tIncludeMatchData'
80+-- * 'turConsistencyToken'
79−-- * 'tLanguage'
82+-- * 'turIncludeMatchData'
81−-- * 'tPageToken'
84+-- * 'turLanguage'
83−-- * 'tMaxResults'
86+-- * 'turPageToken'
84turnBasedMatchesList
89turnBasedMatchesList
85 :: TurnBasedMatchesList
90 :: TurnBasedMatchesList
86turnBasedMatchesList =
91turnBasedMatchesList =
87 TurnBasedMatchesList'
92 TurnBasedMatchesList'
88− { _tMaxCompletedMatches = Nothing
93+ { _turMaxCompletedMatches = Nothing
89− , _tIncludeMatchData = Nothing
94+ , _turConsistencyToken = Nothing
90− , _tLanguage = Nothing
95+ , _turIncludeMatchData = Nothing
91− , _tPageToken = Nothing
96+ , _turLanguage = Nothing
92− , _tMaxResults = Nothing
97+ , _turPageToken = Nothing
98+ , _turMaxResults = Nothing
95-- | The maximum number of completed or canceled matches to return in the
101-- | The maximum number of completed or canceled matches to return in the
96-- response. If not set, all matches returned could be completed or
102-- response. If not set, all matches returned could be completed or
97-- canceled.
103-- canceled.
98−tMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32)
104+turMaxCompletedMatches :: Lens' TurnBasedMatchesList (Maybe Int32)
99−tMaxCompletedMatches
105+turMaxCompletedMatches
100− = lens _tMaxCompletedMatches
106+ = lens _turMaxCompletedMatches
101− (\ s a -> s{_tMaxCompletedMatches = a})
107+ (\ s a -> s{_turMaxCompletedMatches = a})
110+-- | The last-seen mutation timestamp.
111+turConsistencyToken :: Lens' TurnBasedMatchesList (Maybe Int64)
113+ = lens _turConsistencyToken
114+ (\ s a -> s{_turConsistencyToken = a})
102 . mapping _Coerce
115 . mapping _Coerce
104-- | True if match data should be returned in the response. Note that not all
117-- | True if match data should be returned in the response. Note that not all
@@ -106,28 +119,29 @@ tMaxCompletedMatches
106-- server may decide to only return data for some of the matches to limit
119-- server may decide to only return data for some of the matches to limit
107-- download size for the client. The remainder of the data for these
120-- download size for the client. The remainder of the data for these
108-- matches will be retrievable on request.
121-- matches will be retrievable on request.
109−tIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool)
122+turIncludeMatchData :: Lens' TurnBasedMatchesList (Maybe Bool)
110−tIncludeMatchData
123+turIncludeMatchData
111− = lens _tIncludeMatchData
124+ = lens _turIncludeMatchData
112− (\ s a -> s{_tIncludeMatchData = a})
125+ (\ s a -> s{_turIncludeMatchData = a})
114-- | The preferred language to use for strings returned by this method.
127-- | The preferred language to use for strings returned by this method.
115−tLanguage :: Lens' TurnBasedMatchesList (Maybe Text)
128+turLanguage :: Lens' TurnBasedMatchesList (Maybe Text)
116−tLanguage
129+turLanguage
117− = lens _tLanguage (\ s a -> s{_tLanguage = a})
130+ = lens _turLanguage (\ s a -> s{_turLanguage = a})
119-- | The token returned by the previous request.
132-- | The token returned by the previous request.
120−tPageToken :: Lens' TurnBasedMatchesList (Maybe Text)
133+turPageToken :: Lens' TurnBasedMatchesList (Maybe Text)
121−tPageToken
134+turPageToken
122− = lens _tPageToken (\ s a -> s{_tPageToken = a})
135+ = lens _turPageToken (\ s a -> s{_turPageToken = a})
124-- | The maximum number of matches to return in the response, used for
137-- | The maximum number of matches to return in the response, used for
125-- paging. For any response, the actual number of matches to return may be
138-- paging. For any response, the actual number of matches to return may be
126-- less than the specified maxResults.
139-- less than the specified maxResults.
127−tMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32)
140+turMaxResults :: Lens' TurnBasedMatchesList (Maybe Int32)
128−tMaxResults
141+turMaxResults
129− = lens _tMaxResults (\ s a -> s{_tMaxResults = a}) .
142+ = lens _turMaxResults
143+ (\ s a -> s{_turMaxResults = a})
130− mapping _Coerce
144+ . mapping _Coerce
132instance GoogleRequest TurnBasedMatchesList where
146instance GoogleRequest TurnBasedMatchesList where
133 type Rs TurnBasedMatchesList = TurnBasedMatchList
147 type Rs TurnBasedMatchesList = TurnBasedMatchList
@@ -135,10 +149,11 @@ instance GoogleRequest TurnBasedMatchesList where
135 '["https://www.googleapis.com/auth/games",
149 '["https://www.googleapis.com/auth/games",
136 "https://www.googleapis.com/auth/plus.login"]
150 "https://www.googleapis.com/auth/plus.login"]
137 requestClient TurnBasedMatchesList'{..}
151 requestClient TurnBasedMatchesList'{..}
138− = go _tMaxCompletedMatches _tIncludeMatchData
152+ = go _turMaxCompletedMatches _turConsistencyToken
139− _tLanguage
153+ _turIncludeMatchData
140− _tPageToken
154+ _turLanguage
141− _tMaxResults
155+ _turPageToken
142 (Just AltJSON)
157 (Just AltJSON)
143 gamesService
158 gamesService