Releases: WeirdMath/TimetableSDK
Releases · WeirdMath/TimetableSDK
3.1.2
3.1.1
- Fixed not setting the
studentGroupproperty for fetched next and previous weeks
3.1.0
- Now when calling a fetching method, you can disable force reloading. I. e. if somthing has already been fetched and saved to a property of a class that provides the fetching method, calling that method with
forceReload: falsereturns the contents of that property. - You can now fetch extracurricular events for a division (currently Liberal Arts and Science only).
3.0.0
-
Dropped Alamofire and DefaultStringConvertible dependencies.
-
Resulttype in now implemented as follows:public enum Result<Value> { case success(Value) case failure(TimetableError) }
2.2.0
Implemented features:
- Created
AddressandRoomentities. Locationcan now fetch the room that it refers to, if one can be found (which is not guaranteed even if there actually is such room, but its address does not match exactly to the location's address).- Some docs fixed.
- Fixed not setting the
timetableproperty for some entities. EventandLocationwere made classes.
2.1.0
Implemented features:
- Serializing
StudentGroups andWeeks using JSON. This is useful when you don't want to fetch them every time you need them. - Initializing
StudentGroups andWeeks from JSON with binding to aTimetableobject so you can invoke theirfetch[...]methods safely.
2.0.1
Issues resolved:
- After fetching
StudyLevels each of the containingSpecialization'stimetableproperty had not been set. Same thing forAdmissionYear'stimetable. It has been fixed in this patch.
2.0.0
Implemented features:
- The Timetable API has been updated. The new version provides the model that reflects the changes.
- Completion handlers are now of type
(Result<T>) -> Void. - Some properties of
Eventhave been made optional in order to generalize this entity so that it fits more API responses. - Most of the entities have been made classes instead of structs.
- Fetching methods are now not only members of the
Timetableclass. - Support for promises using PromiseKit.
- Massive refactoring for object mapping and other internals. Compiles faster, code coverage increased.
1.0.0
The first release of TimetableSDK!
Implemented features:
- Deserializing Timetable API responses into
a nice strongly typed model. - Convenient API for fetching data from timetable.spbu.ru.
- Mocking the service responce with
*.jsonfiles for testing purposes.