checkIfSurwayComplete method

Future<bool> checkIfSurwayComplete(
  1. int sessionID,
  2. int studentID
)

Implementation

Future<bool> checkIfSurwayComplete(int sessionID, int studentID) async {
  if (sessionID == -1 || studentID == -1) {
    return false;
  }
  final Response res = await super.dio.get(
    "/surveys",
    data: <String, dynamic>{
      "studentID": studentID,
      "sessionID": sessionID,
    },
  );

  return res.statusCode == 200;
}