mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can reload survey
This commit is contained in:
@ -8,6 +8,13 @@ import 'package:meta/meta.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class SurveyHelper {
|
||||
/// Get information about a single survey
|
||||
static Future<Survey> getSurveyInfo(int postID) async =>
|
||||
apiToSurvey((await APIRequest.withLogin("surveys/get_info")
|
||||
.addInt("postID", postID)
|
||||
.execWithThrow())
|
||||
.getObject());
|
||||
|
||||
/// Cancel the response of a user to a survey
|
||||
Future<bool> cancelResponse(Survey survey) async {
|
||||
return (await APIRequest(
|
||||
|
Reference in New Issue
Block a user