PredictionVoteRepository

Methods to manage how a prediction vote is stored and retrieved

  • This is called when the EngagementSDK attempts to claim a prediction follow-up reward Load the PredictionVote from your database (or other persistent storage) Then call the completion block Upon failure to load the PredictionVote you can call completion(nil)

  • This is called when the EngagementSDK attempts to store the user’s prediction vote details Store the PredictionVote in your database (or other persisten storage) When successfully stored, call completion(true) Upon failure to store the Prediction vote you can call completion(false)