GradeRankingEntryDto typedef

GradeRankingEntryDto = ({int grandTotalRank, int grandTotalTotal, int semesterRank, int semesterTotal, RankingType type})

A single ranking entry for one scope (class/group/department).

Implementation

typedef GradeRankingEntryDto = ({
  /// The scope of this ranking comparison.
  RankingType type,

  /// Position in the semester ranking (學期成績排名 — 名次).
  int semesterRank,

  /// Total students in the comparison group for semester ranking (總人數).
  int semesterTotal,

  /// Position in the cumulative ranking (歷年成績排名 — 名次).
  int grandTotalRank,

  /// Total students in the comparison group for cumulative ranking (總人數).
  int grandTotalTotal,
});