jakub-tucek / fit-checker

Fit-checker 2.0 for CTU FIT
MIT License
1 stars 0 forks source link

Ref/generic requests #24

Closed josefdolezal closed 7 years ago

josefdolezal commented 7 years ago

Related to #23. All operations now have to implement only start (required by Operation) and success methods. The success method's parameter is generic and the type it must match the type of response. Supported generic responses are now:

.responseJSON <=> success(result: Any)
.responseData <=> success(result: Data)
.responseObject <=> success(result: Object) // Object and its subclasses
.responseObjectsCollection <=> success(result: [Object]) // Collection of objects
.responseVoid <=> success(result: Void)

All Edux operations are now reimplemented.