Class CreateVotesProcess

java.lang.Object
com.skava.ratingandreviews.process.CreateVotesProcess

@Component public class CreateVotesProcess extends Object

Class CreateVotesProcess

this class provides the votes process of the ratings

Author:
Infosys Equinox
  • Constructor Details

  • Method Details

    • createVotesForQuestionAndAnswer

      public VotesEntity createVotesForQuestionAndAnswer(VotesEntity votesEntity, long collectionId)
      method createRatingAnswer This method is used to create Answer for Question with the help of the createRatingAnswers
      Parameters:
      votesEntity - Holds the value of VotesEntity.
      collectionId - Holds the value of CollectionId.
      Returns:
      ratingQuestionsAndAnswersResponse The create answers for question is returned in the type of ratingQuestionsAndAnswersResponse.
    • updateVotesForAnswers

      public void updateVotesForAnswers(RatingAnswersEntity answerEntity, VotesEntity votesEntity)
      method updateVotesForAnswers This method is used to update votes for answer with the help of the votesEnitity
      Parameters:
      votesEntity - Holds the value of VotesEntity.
      collectionId - Holds the value of answerEntity.