components/src/test/java/eu/internetofus/common/components/social_context_builder/WeNetSocialContextBuilderSimulator.java
/**
   * Post the preferences of an user. This calculate the social user ranking. In
   * other words, from a set of volunteers it order form the best to the worst.
   *
   * @param userId      identifier of the user.
   * @param taskId      identifier of the task.
   * @param userAnswers the answers of the users.
   *
   * @return the future with the ranking of the users.
   */
Post the preferences of an user. This calculate the social user ranking. In
other words, from a set of volunteers it order form the best to the worst.

@param userId      identifier of the user.
@param taskId      identifier of the task.
@param userAnswers the answers of the users.

@return the future with the ranking of the users.
Post the preferences of an user . This calculate the social user ranking . In other words from a set of volunteers it order form the best to the worst . @param userId identifier of the user . @param taskId identifier of the task . @param userAnswers the answers of the users . @return the future with the ranking of the users .
@GenIgnore
  default Future<List<UserAnswer>> postSocialPreferencesAnswersForUserOnTask(@NotNull final String userId,
      @NotNull final String taskId, @NotNull final UserAnswers userAnswers) {
    final Promise<JsonArray> promise = Promise.promise();
    final var data = userAnswers.toJsonObject();
    this.postSocialPreferencesAnswersForUserOnTask(userId, taskId, data, promise);
    return Model.fromFutureJsonArray(promise.future(), UserAnswer.class);
  }
@ GenIgnore default Future < List < UserAnswer > > postSocialPreferencesAnswersForUserOnTask ( @ NotNull final String userId , @ NotNull final String taskId , @ NotNull final UserAnswers userAnswers ) { final Promise < JsonArray > promise = Promise . promise ( ) ; final var data = userAnswers . toJsonObject ( ) ; this . postSocialPreferencesAnswersForUserOnTask ( userId , taskId , data , promise ) ; return Model . fromFutureJsonArray ( promise . future ( ) , UserAnswer . class ) ; }
Post the preferences of an user.
Post the preferences of an user .