Package com.bitheads.braincloud.services
Class MatchMakingService
java.lang.Object
com.bitheads.braincloud.services.MatchMakingService
public class MatchMakingService extends Object
-
Constructor Summary
Constructors Constructor Description MatchMakingService(BrainCloudClient client) -
Method Summary
Modifier and Type Method Description voiddecrementPlayerRating(long decrement, IServerCallback callback)Decrements player rating Service Name - MatchMaking Service Operation - DecrementPlayerRatingvoiddisableMatchMaking(IServerCallback callback)Disables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMakingvoidenableMatchMaking(IServerCallback callback)Enables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMakingvoidfindPlayers(long rangeDelta, long numMatches, IServerCallback callback)Finds matchmaking enabled players Service Name - MatchMaking Service Operation - FIND_PLAYERSvoidfindPlayersUsingFilter(long rangeDelta, long numMatches, String jsonExtraParms, IServerCallback callback)Finds matchmaking enabled players using a cloud code filter Service Name - MatchMaking Service Operation - FIND_PLAYERS_USING_FILTERvoidfindPlayersWithAttributes(long rangeDelta, long numMatches, String jsonAttributes, IServerCallback callback)Finds matchmaking enabled players with additional attributes Service Name - MatchMaking Service Operation - FIND_PLAYERSvoidfindPlayersWithAttributesUsingFilter(long rangeDelta, long numMatches, String jsonAttributes, String jsonExtraParms, IServerCallback callback)Finds matchmaking enabled players using a cloud code filter and additional attributes Service Name - MatchMaking Service Operation - FIND_PLAYERS_USING_FILTERvoidgetShieldExpiry(String playerId, IServerCallback callback)Gets the shield expiry for the given player id.voidincrementPlayerRating(long increment, IServerCallback callback)Increments player rating Service Name - MatchMaking Service Operation - IncrementPlayerRatingvoidincrementShieldOnFor(int minutes, IServerCallback callback)Increases the shield on time by specified number of minutes Service Name - MatchMaking Service Operation - ShieldOnForvoidread(IServerCallback callback)Read match making record Service Name - MatchMaking Service Operation - ReadvoidresetPlayerRating(IServerCallback callback)Resets player rating Service Name - MatchMaking Service Operation - ResetPlayerRatingvoidsetPlayerRating(long playerRating, IServerCallback callback)Sets player rating Service Name - MatchMaking Service Operation - SetPlayerRatingvoidturnShieldOff(IServerCallback callback)Turns shield off Service Name - MatchMaking Service Operation - ShieldOffvoidturnShieldOn(IServerCallback callback)Turns shield on Service Name - MatchMaking Service Operation - ShieldOnvoidturnShieldOnFor(int minutes, IServerCallback callback)Turns shield on for the specified number of minutes Service Name - MatchMaking Service Operation - ShieldOnFor
-
Constructor Details
-
MatchMakingService
-
-
Method Details
-
read
Read match making record Service Name - MatchMaking Service Operation - Read- Parameters:
callback- The callback.
-
setPlayerRating
Sets player rating Service Name - MatchMaking Service Operation - SetPlayerRating- Parameters:
playerRating- The new player rating.callback- The callback.
-
resetPlayerRating
Resets player rating Service Name - MatchMaking Service Operation - ResetPlayerRating- Parameters:
callback- The callback.
-
incrementPlayerRating
Increments player rating Service Name - MatchMaking Service Operation - IncrementPlayerRating- Parameters:
increment- The increment amountcallback- The callback.
-
decrementPlayerRating
Decrements player rating Service Name - MatchMaking Service Operation - DecrementPlayerRating- Parameters:
decrement- The decrement amountcallback- The callback.
-
turnShieldOn
Turns shield on Service Name - MatchMaking Service Operation - ShieldOn- Parameters:
callback- The callback.
-
turnShieldOnFor
Turns shield on for the specified number of minutes Service Name - MatchMaking Service Operation - ShieldOnFor- Parameters:
minutes- Number of minutes to turn the shield on forcallback- The callback.
-
incrementShieldOnFor
Increases the shield on time by specified number of minutes Service Name - MatchMaking Service Operation - ShieldOnFor- Parameters:
minutes- Number of minutes to increase the shield turn forcallback- The callback.
-
turnShieldOff
Turns shield off Service Name - MatchMaking Service Operation - ShieldOff- Parameters:
callback- The callback.
-
getShieldExpiry
Gets the shield expiry for the given player id. Passing in a null player id will return the shield expiry for the current player. The value returned is the time in UTC millis when the shield will expire. Service Name - MatchMaking Service Operation - GetShieldExpiry- Parameters:
playerId- The player id or use null to retrieve for the current playercallback- The callback.
-
findPlayers
Finds matchmaking enabled players Service Name - MatchMaking Service Operation - FIND_PLAYERS- Parameters:
rangeDelta- The range deltanumMatches- The maximum number of matches to returncallback- The callback.
-
findPlayersWithAttributes
public void findPlayersWithAttributes(long rangeDelta, long numMatches, String jsonAttributes, IServerCallback callback)Finds matchmaking enabled players with additional attributes Service Name - MatchMaking Service Operation - FIND_PLAYERS- Parameters:
rangeDelta- The range deltanumMatches- The maximum number of matches to returnjsonAttributes- Attributes match criteriacallback- The method to be invoked when the server response is received
-
findPlayersUsingFilter
public void findPlayersUsingFilter(long rangeDelta, long numMatches, String jsonExtraParms, IServerCallback callback)Finds matchmaking enabled players using a cloud code filter Service Name - MatchMaking Service Operation - FIND_PLAYERS_USING_FILTER- Parameters:
rangeDelta- The range deltanumMatches- The maximum number of matches to returnjsonExtraParms- Other parameterscallback- The callback.
-
findPlayersWithAttributesUsingFilter
public void findPlayersWithAttributesUsingFilter(long rangeDelta, long numMatches, String jsonAttributes, String jsonExtraParms, IServerCallback callback)Finds matchmaking enabled players using a cloud code filter and additional attributes Service Name - MatchMaking Service Operation - FIND_PLAYERS_USING_FILTER- Parameters:
rangeDelta- The range deltanumMatches- The maximum number of matches to returnjsonAttributes- Attributes match criteriajsonExtraParms- Parameters to pass to the CloudCode filter scriptcallback- The method to be invoked when the server response is received
-
enableMatchMaking
Enables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMaking- Parameters:
callback- The callback.
-
disableMatchMaking
Disables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMaking- Parameters:
callback- The callback.
-