Interface VoteReceiver

All Superinterfaces:
OsidReceiver

public interface VoteReceiver extends OsidReceiver

The vote receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deleted Votes .

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changedVotes(Id notificationId, IdList voteIds)
    The callback for notification of updated votes.
    void
    deletedVotes(Id notificationId, IdList voteIds)
    The callback for notification of deleted votes.
    void
    newVotes(Id notificationId, IdList voteIds)
    The callback for notifications of new votes.

    Methods inherited from interface OsidReceiver

    down, up
    Modifier and Type
    Method
    Description
    void
    The callback for notifications that the notification bus is not operating.
    void
    up()
    The callback for notifications that the notification bus is operational.
  • Method Details

    • newVotes

      void newVotes(Id notificationId, IdList voteIds)
      The callback for notifications of new votes.
      Parameters:
      notificationId - the notification Id
      voteIds - the Ids of the new Votes
      Compliance:
      mandatory - This method must be implemented.
    • changedVotes

      void changedVotes(Id notificationId, IdList voteIds)
      The callback for notification of updated votes.
      Parameters:
      notificationId - the notification Id
      voteIds - the Ids of the updated Votes
      Compliance:
      mandatory - This method must be implemented.
    • deletedVotes

      void deletedVotes(Id notificationId, IdList voteIds)
      The callback for notification of deleted votes.
      Parameters:
      notificationId - the notification Id
      voteIds - the Ids of the deleted Votes
      Compliance:
      mandatory - This method must be implemented.