APIService<I extends ChopperService, DataType extends Jsonable<Object>, ErrorType> class

Created by krrigan on 02/27/19.

Implemented types

Constructors

APIService(I service, {DataType dataType, ErrorType errorType, BackendAPI backendAPI})

Properties

client ChopperClient
read / write, override
dataType ↔ DataType
read / write
definitionType → Type
Internally use to retrieve service from ChopperClient FIXME: use runtimeType ?
read-only, override
errorType ↔ ErrorType
read / write
service ↔ I
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
Cleanup memory Should be call when the service is not used anymore
override
genericParseResponse<DataType extends Jsonable<Object>>(Future<Response> futureResponse, DataType dataType) → Future<Response<DataType>>
genericParseResponseAsList<DataType extends Jsonable<Object>>(Future<Response> futureResponse, DataType dataType) → Future<Response<List<DataType>>>
getAuthorization() → dynamic
getSaveResponse(Future<Response> futureResponse) → Future<Response>
parseResponse(Future<Response> futureResponse) → Future<Response<DataType>>
parseResponseAsList(Future<Response> futureResponse) → Future<Response<List<DataType>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited