|
|
@ -25,7 +25,7 @@ namespace ManagerInterfaces
|
|
|
|
/// this page (or null if (nb-1)*count
|
|
|
|
/// this page (or null if (nb-1)*count
|
|
|
|
/// is outside boundaries (0, getNbElement()-1)
|
|
|
|
/// is outside boundaries (0, getNbElement()-1)
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
public IEnumerable<T>? getAnswers(int nb, int count, AnswerOrderCriteria orderCriteria = AnswerOrderCriteria.ById);
|
|
|
|
public Task<(int nbAnswer, IEnumerable<T>? answers)> getAnswers(int nb, int count, AnswerOrderCriteria orderCriteria = AnswerOrderCriteria.ById);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// get a T element with an id
|
|
|
|
/// get a T element with an id
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -33,7 +33,7 @@ namespace ManagerInterfaces
|
|
|
|
/// <returns>
|
|
|
|
/// <returns>
|
|
|
|
/// a set of all T element that correspond to this question
|
|
|
|
/// a set of all T element that correspond to this question
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
public ReadOnlyCollection<T>? getAnswersByIdQuestion(long id);
|
|
|
|
public Task<ReadOnlyCollection<T>?> getAnswersByIdQuestion(long id);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// modified a T element with an id
|
|
|
|
/// modified a T element with an id
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -43,7 +43,7 @@ namespace ManagerInterfaces
|
|
|
|
/// the T element (modified) that corresponde
|
|
|
|
/// the T element (modified) that corresponde
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
public T? modifierAnswer(long id, T answer);
|
|
|
|
public Task<T?> modifierAnswer(long id, T answer);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// delete a T element with an id
|
|
|
|
/// delete a T element with an id
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -52,12 +52,12 @@ namespace ManagerInterfaces
|
|
|
|
/// the T element deleted that corresponde
|
|
|
|
/// the T element deleted that corresponde
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
public T? supprimerAnswer(long id);
|
|
|
|
public Task<T?> supprimerAnswer(long id);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// delete a T element
|
|
|
|
/// delete a T element
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="answer">the T element to delete</param>
|
|
|
|
/// <param name="answer">the T element to delete</param>
|
|
|
|
public void supprimerAnswer(T answer);
|
|
|
|
public Task supprimerAnswer(T answer);
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// add a T element
|
|
|
|
/// add a T element
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -66,6 +66,6 @@ namespace ManagerInterfaces
|
|
|
|
/// the T element (modified) that corresponde
|
|
|
|
/// the T element (modified) that corresponde
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// to the id or null if there isn't any
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
public T ajouterAnswer(T answer);
|
|
|
|
public Task<T> ajouterAnswer(T answer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|