albiruni 1.1.0
albiruni: ^1.1.0 copied to clipboard
A wrapper to easily access IIUM's Course Schedule website data.
1.1.0 #
- 💥 BREAKING CHANGES - Kuliyyah parameter now is seperated from the albiruni constructor.
- Before:
var albiruni = Albiruni(kulliyah: "AED", semester: 2, session: "2021/2022"); var subjects = await albiruni.fetch();- After:
var albiruni = Albiruni(semester: 2, session: "2021/2022"); var subjects = await albiruni.fetch("AED");
1.0.2 #
- 🙈 When fetching subject, you now can set
useProxytotrue. This will proxy the connection from albiruni origin site. Useful when dealing with CORS error in web application. - 🚸 Exposes
DayTimeclass. - ✨ Introduce String extension method
toAlbiruniFormat(). Useful to properly format a user input. Eg: It will convertnurc2411toNURC 2411. - 🥅 Added
ExceptiontypeEmptyBodyException. Usually happen when subject is not offered for the kuliyyah/session semester. Eg: You search forMECH 2344in Semester 3, but course is only available in long semester. Therefore, error is thrown.NoSubjectsException. Usually happens whenpageis over it total pages.
- ✨ For
Subjectobject:- Added
.semShortvalue. A short version of semester session. Eg:2021/2022will be21/22. .dayTimenow will be return a sorted session according to its day. Ie: Monday should come first and so on.
- Added
- 📝 Update docs.
1.0.0 #
- 🎉 Initial release.