@@ -41,6 +41,7 @@ class Google_Service_Games extends Google_Service
4141 public $ applications ;
4242 public $ leaderboards ;
4343 public $ players ;
44+ public $ pushtokens ;
4445 public $ revisions ;
4546 public $ rooms ;
4647 public $ scores ;
@@ -291,6 +292,24 @@ public function __construct(Google_Client $client)
291292 )
292293 )
293294 );
295+ $ this ->pushtokens = new Google_Service_Games_Pushtokens_Resource (
296+ $ this ,
297+ $ this ->serviceName ,
298+ 'pushtokens ' ,
299+ array (
300+ 'methods ' => array (
301+ 'remove ' => array (
302+ 'path ' => 'pushtokens/remove ' ,
303+ 'httpMethod ' => 'POST ' ,
304+ 'parameters ' => array (),
305+ ),'update ' => array (
306+ 'path ' => 'pushtokens ' ,
307+ 'httpMethod ' => 'PUT ' ,
308+ 'parameters ' => array (),
309+ ),
310+ )
311+ )
312+ );
294313 $ this ->revisions = new Google_Service_Games_Revisions_Resource (
295314 $ this ,
296315 $ this ->serviceName ,
@@ -1090,6 +1109,45 @@ public function listPlayers($collection, $optParams = array())
10901109 }
10911110}
10921111
1112+ /**
1113+ * The "pushtokens" collection of methods.
1114+ * Typical usage is:
1115+ * <code>
1116+ * $gamesService = new Google_Service_Games(...);
1117+ * $pushtokens = $gamesService->pushtokens;
1118+ * </code>
1119+ */
1120+ class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource
1121+ {
1122+
1123+ /**
1124+ * Removes a push token for the current user and application. Removing a non-
1125+ * existent push token will report success. (pushtokens.remove)
1126+ *
1127+ * @param Google_PushTokenId $postBody
1128+ * @param array $optParams Optional parameters.
1129+ */
1130+ public function remove (Google_Service_Games_PushTokenId $ postBody , $ optParams = array ())
1131+ {
1132+ $ params = array ('postBody ' => $ postBody );
1133+ $ params = array_merge ($ params , $ optParams );
1134+ return $ this ->call ('remove ' , array ($ params ));
1135+ }
1136+ /**
1137+ * Registers a push token for the current user and application.
1138+ * (pushtokens.update)
1139+ *
1140+ * @param Google_PushToken $postBody
1141+ * @param array $optParams Optional parameters.
1142+ */
1143+ public function update (Google_Service_Games_PushToken $ postBody , $ optParams = array ())
1144+ {
1145+ $ params = array ('postBody ' => $ postBody );
1146+ $ params = array_merge ($ params , $ optParams );
1147+ return $ this ->call ('update ' , array ($ params ));
1148+ }
1149+ }
1150+
10931151/**
10941152 * The "revisions" collection of methods.
10951153 * Typical usage is:
@@ -3179,6 +3237,7 @@ class Google_Service_Games_NetworkDiagnostics extends Google_Model
31793237{
31803238 public $ androidNetworkSubtype ;
31813239 public $ androidNetworkType ;
3240+ public $ iosNetworkType ;
31823241 public $ kind ;
31833242 public $ registrationLatencyMillis ;
31843243
@@ -3202,6 +3261,16 @@ public function getAndroidNetworkType()
32023261 return $ this ->androidNetworkType ;
32033262 }
32043263
3264+ public function setIosNetworkType ($ iosNetworkType )
3265+ {
3266+ $ this ->iosNetworkType = $ iosNetworkType ;
3267+ }
3268+
3269+ public function getIosNetworkType ()
3270+ {
3271+ return $ this ->iosNetworkType ;
3272+ }
3273+
32053274 public function setKind ($ kind )
32063275 {
32073276 $ this ->kind = $ kind ;
@@ -4009,6 +4078,108 @@ public function getScores()
40094078 }
40104079}
40114080
4081+ class Google_Service_Games_PushToken extends Google_Model
4082+ {
4083+ public $ clientRevision ;
4084+ protected $ idType = 'Google_Service_Games_PushTokenId ' ;
4085+ protected $ idDataType = '' ;
4086+ public $ kind ;
4087+ public $ language ;
4088+
4089+ public function setClientRevision ($ clientRevision )
4090+ {
4091+ $ this ->clientRevision = $ clientRevision ;
4092+ }
4093+
4094+ public function getClientRevision ()
4095+ {
4096+ return $ this ->clientRevision ;
4097+ }
4098+
4099+ public function setId (Google_Service_Games_PushTokenId $ id )
4100+ {
4101+ $ this ->id = $ id ;
4102+ }
4103+
4104+ public function getId ()
4105+ {
4106+ return $ this ->id ;
4107+ }
4108+
4109+ public function setKind ($ kind )
4110+ {
4111+ $ this ->kind = $ kind ;
4112+ }
4113+
4114+ public function getKind ()
4115+ {
4116+ return $ this ->kind ;
4117+ }
4118+
4119+ public function setLanguage ($ language )
4120+ {
4121+ $ this ->language = $ language ;
4122+ }
4123+
4124+ public function getLanguage ()
4125+ {
4126+ return $ this ->language ;
4127+ }
4128+ }
4129+
4130+ class Google_Service_Games_PushTokenId extends Google_Model
4131+ {
4132+ protected $ iosType = 'Google_Service_Games_PushTokenIdIos ' ;
4133+ protected $ iosDataType = '' ;
4134+ public $ kind ;
4135+
4136+ public function setIos (Google_Service_Games_PushTokenIdIos $ ios )
4137+ {
4138+ $ this ->ios = $ ios ;
4139+ }
4140+
4141+ public function getIos ()
4142+ {
4143+ return $ this ->ios ;
4144+ }
4145+
4146+ public function setKind ($ kind )
4147+ {
4148+ $ this ->kind = $ kind ;
4149+ }
4150+
4151+ public function getKind ()
4152+ {
4153+ return $ this ->kind ;
4154+ }
4155+ }
4156+
4157+ class Google_Service_Games_PushTokenIdIos extends Google_Model
4158+ {
4159+ public $ apnsDeviceToken ;
4160+ public $ apnsEnvironment ;
4161+
4162+ public function setApnsDeviceToken ($ apnsDeviceToken )
4163+ {
4164+ $ this ->apnsDeviceToken = $ apnsDeviceToken ;
4165+ }
4166+
4167+ public function getApnsDeviceToken ()
4168+ {
4169+ return $ this ->apnsDeviceToken ;
4170+ }
4171+
4172+ public function setApnsEnvironment ($ apnsEnvironment )
4173+ {
4174+ $ this ->apnsEnvironment = $ apnsEnvironment ;
4175+ }
4176+
4177+ public function getApnsEnvironment ()
4178+ {
4179+ return $ this ->apnsEnvironment ;
4180+ }
4181+ }
4182+
40124183class Google_Service_Games_RevisionCheckResponse extends Google_Model
40134184{
40144185 public $ apiVersion ;
@@ -4436,6 +4607,7 @@ class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection
44364607{
44374608 public $ androidNetworkSubtype ;
44384609 public $ androidNetworkType ;
4610+ public $ iosNetworkType ;
44394611 public $ kind ;
44404612 protected $ peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics ' ;
44414613 protected $ peerSessionDataType = 'array ' ;
@@ -4461,6 +4633,16 @@ public function getAndroidNetworkType()
44614633 return $ this ->androidNetworkType ;
44624634 }
44634635
4636+ public function setIosNetworkType ($ iosNetworkType )
4637+ {
4638+ $ this ->iosNetworkType = $ iosNetworkType ;
4639+ }
4640+
4641+ public function getIosNetworkType ()
4642+ {
4643+ return $ this ->iosNetworkType ;
4644+ }
4645+
44644646 public function setKind ($ kind )
44654647 {
44664648 $ this ->kind = $ kind ;
0 commit comments