components/src/main/java/eu/internetofus/common/components/social_context_builder/WeNetSocialContextBuilder.java
/**
   * Put the preferred answers for an user. This notify witch answer of the
   * ranking is selected by an user.
   *
   * @param userId      identifier of the user.
   * @param taskId      identifier of the task.
   * @param selection   the selected answer of the question.
   * @param userAnswers the answers of the users.
   *
   * @return the future with the updated data.
   */
Put the preferred answers for an user. This notify witch answer of the
ranking is selected by an user.

@param userId      identifier of the user.
@param taskId      identifier of the task.
@param selection   the selected answer of the question.
@param userAnswers the answers of the users.

@return the future with the updated data.
Put the preferred answers for an user . This notify witch answer of the ranking is selected by an user . @param userId identifier of the user . @param taskId identifier of the task . @param selection the selected answer of the question . @param userAnswers the answers of the users . @return the future with the updated data .
@GenIgnore
  default Future<Void> putSocialPreferencesSelectedAnswerForUserOnTask(@NotNull final String userId,
      @NotNull final String taskId, final int selection, @NotNull final UserAnswers userAnswers) {
    final Promise<Void> promise = Promise.promise();
    final var data = userAnswers.toJsonObject();
    this.putSocialPreferencesSelectedAnswerForUserOnTask(userId, taskId, selection, data, promise);
    return promise.future();
  }
@ GenIgnore default Future < Void > putSocialPreferencesSelectedAnswerForUserOnTask ( @ NotNull final String userId , @ NotNull final String taskId , final int selection , @ NotNull final UserAnswers userAnswers ) { final Promise < Void > promise = Promise . promise ( ) ; final var data = userAnswers . toJsonObject ( ) ; this . putSocialPreferencesSelectedAnswerForUserOnTask ( userId , taskId , selection , data , promise ) ; return promise . future ( ) ; }
Put the preferred answers for an user.
Put the preferred answers for an user .