Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Google_Service_Games_Metagame_Resource Class Reference

The "metagame" collection of methods. More...

Inheritance diagram for Google_Service_Games_Metagame_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 getMetagameConfig ($optParams=array())
 Return the metagame configuration data for the calling application.
 
 listCategoriesByPlayer ($playerId, $collection, $optParams=array())
 List play data aggregated per category for the player corresponding to playerId.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "metagame" collection of methods.

Typical usage is: $gamesService = new Google_Service_Games(...); $metagame = $gamesService->metagame;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ getMetagameConfig()

Google_Service_Games_Metagame_Resource::getMetagameConfig ( $optParams = array())

Return the metagame configuration data for the calling application.

(metagame.getMetagameConfig)

Parameters
array$optParamsOptional parameters.
Return values
Google_Service_Games_MetagameConfig

◆ listCategoriesByPlayer()

Google_Service_Games_Metagame_Resource::listCategoriesByPlayer ( $playerId,
$collection,
$optParams = array() )

List play data aggregated per category for the player corresponding to playerId.

(metagame.listCategoriesByPlayer)

Parameters
string$playerIdA player ID. A value of me may be used in place of the authenticated player's ID.
string$collectionThe collection of categories for which data will be returned.
array$optParamsOptional parameters.

@opt_param string pageToken The token returned by the previous request. @opt_param int maxResults The maximum number of category resources to return in the response, used for paging. For any response, the actual number of category resources returned may be less than the specified maxResults. @opt_param string language The preferred language to use for strings returned by this method.

Return values
Google_Service_Games_CategoryListResponse

The documentation for this class was generated from the following file: