Google_Service_GamesManagement_Events_Resource

The "events" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/GamesManagement.php  
  1. class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Resets all player progress on the event with the given ID for the currently 
  5. * authenticated player. This method is only accessible to whitelisted tester 
  6. * accounts for your application. All quests for this player that use the event 
  7. * will also be reset. (events.reset) 
  8. * @param string $eventId The ID of the event. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function reset($eventId, $optParams = array()) 
  12. $params = array('eventId' => $eventId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('reset', array($params)); 
  15.  
  16. /** 
  17. * Resets all player progress on all events for the currently authenticated 
  18. * player. This method is only accessible to whitelisted tester accounts for 
  19. * your application. All quests for this player will also be reset. 
  20. * (events.resetAll) 
  21. * @param array $optParams Optional parameters. 
  22. */ 
  23. public function resetAll($optParams = array()) 
  24. $params = array(); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('resetAll', array($params)); 
  27.  
  28. /** 
  29. * Resets all draft events for all players. This method is only available to 
  30. * user accounts for your developer console. All quests that use any of these 
  31. * events will also be reset. (events.resetAllForAllPlayers) 
  32. * @param array $optParams Optional parameters. 
  33. */ 
  34. public function resetAllForAllPlayers($optParams = array()) 
  35. $params = array(); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('resetAllForAllPlayers', array($params)); 
  38.  
  39. /** 
  40. * Resets the event with the given ID for all players. This method is only 
  41. * available to user accounts for your developer console. Only draft events can 
  42. * be reset. All quests that use the event will also be reset. 
  43. * (events.resetForAllPlayers) 
  44. * @param string $eventId The ID of the event. 
  45. * @param array $optParams Optional parameters. 
  46. */ 
  47. public function resetForAllPlayers($eventId, $optParams = array()) 
  48. $params = array('eventId' => $eventId); 
  49. $params = array_merge($params, $optParams); 
  50. return $this->call('resetForAllPlayers', array($params)); 
  51.  
  52. /** 
  53. * Resets events with the given IDs for all players. This method is only 
  54. * available to user accounts for your developer console. Only draft events may 
  55. * be reset. All quests that use any of the events will also be reset. 
  56. * (events.resetMultipleForAllPlayers) 
  57. * @param Google_EventsResetMultipleForAllRequest $postBody 
  58. * @param array $optParams Optional parameters. 
  59. */ 
  60. public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array()) 
  61. $params = array('postBody' => $postBody); 
  62. $params = array_merge($params, $optParams); 
  63. return $this->call('resetMultipleForAllPlayers', array($params));