Releases: WeirdMath/TimetableSDK
Releases · WeirdMath/TimetableSDK
3.1.2
3.1.1
- Fixed not setting the
studentGroup
property 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: false
returns 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.
-
Result
type in now implemented as follows:public enum Result<Value> { case success(Value) case failure(TimetableError) }
2.2.0
Implemented features:
- Created
Address
andRoom
entities. Location
can 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
timetable
property for some entities. Event
andLocation
were made classes.
2.1.0
Implemented features:
- Serializing
StudentGroup
s andWeek
s using JSON. This is useful when you don't want to fetch them every time you need them. - Initializing
StudentGroup
s andWeek
s from JSON with binding to aTimetable
object so you can invoke theirfetch[...]
methods safely.
2.0.1
Issues resolved:
- After fetching
StudyLevel
s each of the containingSpecialization
'stimetable
property 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
Event
have 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
Timetable
class. - 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
*.json
files for testing purposes.