init refilc-plus
This commit is contained in:
commit
6edc2029bd
37 changed files with 6988 additions and 0 deletions
19
lib/models/premium_result.dart
Normal file
19
lib/models/premium_result.dart
Normal file
|
@ -0,0 +1,19 @@
|
|||
class PremiumResult {
|
||||
final String sessionId;
|
||||
final List<String> scopes;
|
||||
final String login;
|
||||
|
||||
PremiumResult({
|
||||
required this.sessionId,
|
||||
required this.scopes,
|
||||
required this.login,
|
||||
});
|
||||
|
||||
factory PremiumResult.fromJson(Map json) {
|
||||
return PremiumResult(
|
||||
sessionId: json["session_id"] ?? "",
|
||||
scopes: (json["scopes"] ?? []).cast<String>(),
|
||||
login: json["customer_id"] ?? "",
|
||||
);
|
||||
}
|
||||
}
|
51
lib/models/premium_scopes.dart
Normal file
51
lib/models/premium_scopes.dart
Normal file
|
@ -0,0 +1,51 @@
|
|||
class PremiumScopes {
|
||||
// everything
|
||||
static const all = "refilc.plus.*";
|
||||
|
||||
// idk where it will be but i need it
|
||||
// static const renameTeachers = "refilc.plus.RENAME_TEACHERS";
|
||||
// static const goalPlanner = "refilc.plus.GOAL_PLANNER";
|
||||
// static const changeAppIcon = "refilc.plus.CHANGE_APP_ICON";
|
||||
|
||||
// tier 1 (Kupak) (reFilc+)
|
||||
static const maxTwoAccounts = "refilc.plus.MAX_TWO_ACCOUNTS";
|
||||
static const earlyAccess = "refilc.plus.EARLY_ACCESS";
|
||||
static const totalGradeCalculator = "refilc.plus.TOTAL_GRADE_CALCULATOR";
|
||||
static const welcomeMessage = "refilc.plus.WELCOME_MESSAGE";
|
||||
static const unlimitedSelfNotes = "refilc.plus.UNLIMITED_SELF_NOTES";
|
||||
static const customGradeRarities = "refilc.plus.CUSTOM_GRADE_RARITIES";
|
||||
static const gradeExporting = "refilc.plus.GRADE_EXPORTING";
|
||||
// tier scope
|
||||
// static const tierCap = "refilc.plus.tier.CAP";
|
||||
|
||||
// tier 2 (Tinta) (reFilc+ Gold)
|
||||
static const noAccountLimit = "refilc.plus.NO_ACCOUNT_LIMIT";
|
||||
static const appIconChange = "refilc.plus.APP_ICON_CHANGE";
|
||||
static const liveActivityColor = "refilc.plus.LIVE_ACTIVITY_COLOR";
|
||||
static const customFont = "refilc.plus.CUSTOM_FONT";
|
||||
static const timetableNotes = "refilc.plus.TIMETABLE_NOTES";
|
||||
static const unlimitedGoalPlanner = "refilc.plus.UNLIMITED_GOAL_PLANNER";
|
||||
static const calendarSync = "refilc.plus.CALENDAR_SYNC";
|
||||
// tier scope
|
||||
// static const tierInk = "refilc.plus.tier.INK";
|
||||
|
||||
// tier 3 (Szivacs)
|
||||
// cancelled
|
||||
// tier scope
|
||||
static const tierSponge = "refilc.plus.tier.SPONGE";
|
||||
|
||||
// uncategorized
|
||||
|
||||
// old scopes
|
||||
static const nickname = "refilc.plus.NICKNAME";
|
||||
static const gradeStats = "refilc.plus.GRADE_STATS";
|
||||
static const customColors = "refilc.plus.CUSTOM_COLORS";
|
||||
static const customIcons = "refilc.plus.CUSTOM_ICONS";
|
||||
static const renameSubjects = "refilc.plus.RENAME_SUBJECTS";
|
||||
static const timetableWidget = "refilc.plus.TIMETALBE_WIDGET";
|
||||
static const fsTimetable = "refilc.plus.FS_TIMETABLE";
|
||||
|
||||
// new new tier scopes
|
||||
static const tierBasic = "refilc.plus.tier.BASIC";
|
||||
static const tierGold = "refilc.plus.tier.GOLD";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue