Class MatchMakingService

java.lang.Object
com.bitheads.braincloud.services.MatchMakingService

public class MatchMakingService
extends Object
  • Constructor Details

  • Method Details

    • read

      public void read​(IServerCallback callback)
      Read match making record Service Name - MatchMaking Service Operation - Read
      Parameters:
      callback - The callback.
    • setPlayerRating

      public void setPlayerRating​(long playerRating, IServerCallback callback)
      Sets player rating Service Name - MatchMaking Service Operation - SetPlayerRating
      Parameters:
      playerRating - The new player rating.
      callback - The callback.
    • resetPlayerRating

      public void resetPlayerRating​(IServerCallback callback)
      Resets player rating Service Name - MatchMaking Service Operation - ResetPlayerRating
      Parameters:
      callback - The callback.
    • incrementPlayerRating

      public void incrementPlayerRating​(long increment, IServerCallback callback)
      Increments player rating Service Name - MatchMaking Service Operation - IncrementPlayerRating
      Parameters:
      increment - The increment amount
      callback - The callback.
    • decrementPlayerRating

      public void decrementPlayerRating​(long decrement, IServerCallback callback)
      Decrements player rating Service Name - MatchMaking Service Operation - DecrementPlayerRating
      Parameters:
      decrement - The decrement amount
      callback - The callback.
    • turnShieldOn

      public void turnShieldOn​(IServerCallback callback)
      Turns shield on Service Name - MatchMaking Service Operation - ShieldOn
      Parameters:
      callback - The callback.
    • turnShieldOnFor

      public void turnShieldOnFor​(int minutes, IServerCallback callback)
      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 for
      callback - The callback.
    • incrementShieldOnFor

      public void incrementShieldOnFor​(int minutes, IServerCallback callback)
      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 for
      callback - The callback.
    • turnShieldOff

      public void turnShieldOff​(IServerCallback callback)
      Turns shield off Service Name - MatchMaking Service Operation - ShieldOff
      Parameters:
      callback - The callback.
    • getShieldExpiry

      public void getShieldExpiry​(String playerId, IServerCallback callback)
      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 player
      callback - The callback.
    • findPlayers

      public void findPlayers​(long rangeDelta, long numMatches, IServerCallback callback)
      Finds matchmaking enabled players Service Name - MatchMaking Service Operation - FIND_PLAYERS
      Parameters:
      rangeDelta - The range delta
      numMatches - The maximum number of matches to return
      callback - 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 delta
      numMatches - The maximum number of matches to return
      jsonAttributes - Attributes match criteria
      callback - 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 delta
      numMatches - The maximum number of matches to return
      jsonExtraParms - Other parameters
      callback - 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 delta
      numMatches - The maximum number of matches to return
      jsonAttributes - Attributes match criteria
      jsonExtraParms - Parameters to pass to the CloudCode filter script
      callback - The method to be invoked when the server response is received
    • enableMatchMaking

      public void enableMatchMaking​(IServerCallback callback)
      Enables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMaking
      Parameters:
      callback - The callback.
    • disableMatchMaking

      public void disableMatchMaking​(IServerCallback callback)
      Disables Match Making for the Player Service Name - MatchMaking Service Operation - EnableMatchMaking
      Parameters:
      callback - The callback.