Class PlayerStatisticsEventService

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

public class PlayerStatisticsEventService
extends Object
  • Constructor Details

    • PlayerStatisticsEventService

      public PlayerStatisticsEventService​(BrainCloudClient client)
  • Method Details

    • triggerUserStatsEvent

      public void triggerUserStatsEvent​(String eventName, int eventMultiplier, IServerCallback callback)
      Deprecated.
      Use triggerStatsEvent instead - removal September 1, 2021
      Trigger an event server side that will increase the user statistics. This may cause one or more awards to be sent back to the user - could be achievements, experience, etc. Achievements will be sent by this client library to the appropriate awards service (Apple Game Center, etc). This mechanism supercedes the PlayerStatisticsService API methods, since PlayerStatisticsService API method only update the raw statistics without triggering the rewards. Service Name - PlayerStatisticsEvent Service Operation - Trigger
      Parameters:
      eventName - The name of the event configured through the brainCloud portal
      eventMultiplier - The multiplier to apply to the event
      callback - The callback handler
      See Also:
      PlayerStatisticsService
    • triggerStatsEvent

      public void triggerStatsEvent​(String eventName, int eventMultiplier, IServerCallback callback)
      Trigger an event server side that will increase the user statistics. This may cause one or more awards to be sent back to the user - could be achievements, experience, etc. Achievements will be sent by this client library to the appropriate awards service (Apple Game Center, etc). This mechanism supercedes the PlayerStatisticsService API methods, since PlayerStatisticsService API method only update the raw statistics without triggering the rewards. Service Name - PlayerStatisticsEvent Service Operation - Trigger
      Parameters:
      eventName - The name of the event configured through the brainCloud portal
      eventMultiplier - The multiplier to apply to the event
      callback - The callback handler
      See Also:
      PlayerStatisticsService
    • triggerUserStatsEvents

      public void triggerUserStatsEvents​(String jsonData, IServerCallback callback)
      Deprecated.
      Use triggerStatsEvents instead - removal September 1, 2021
      Trigger an event server side that will increase the user statistics. This may cause one or more awards to be sent back to the user - could be achievements, experience, etc. Achievements will be sent by this client library to the appropriate awards service (Apple Game Center, etc). This mechanism supercedes the PlayerStatisticsService API methods, since PlayerStatisticsService API method only update the raw statistics without triggering the rewards. Service Name - PlayerStatisticsEvent Service Operation - Trigger
      Parameters:
      jsonData - An array of JSON objects representing Event Names and Multipliers. ex. [ { "eventName": "event1", "eventMultiplier": 1 } ]
      callback - The callback handler
    • triggerStatsEvents

      public void triggerStatsEvents​(String jsonData, IServerCallback callback)
      See documentation for TriggerPlayerStatisticsEvent for more documentation. Service Name - PlayerStatisticsEvent Service Operation - TriggerMultiple
      Parameters:
      jsonData - [ { "eventName": "event1", "eventMultiplier": 1 }, { "eventName": "event2", "eventMultiplier": 1 } ]
      callback - The callback handler