Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/backend/mato/MapiVolleyRequest.java
Show All 18 Lines | public MapiVolleyRequest( | ||||
@Nullable Response.ErrorListener errorListener) { | @Nullable Response.ErrorListener errorListener) { | ||||
super(Method.POST, API_URL, errorListener); | super(Method.POST, API_URL, errorListener); | ||||
this.type = type; | this.type = type; | ||||
this.listener = listener; | this.listener = listener; | ||||
} | } | ||||
@Nullable | |||||
@Override | |||||
abstract protected Map<String, String> getParams() throws AuthFailureError; | |||||
@Override | @Override | ||||
protected void deliverResponse(T response) { | protected void deliverResponse(T response) { | ||||
listener.onResponse(response); | listener.onResponse(response); | ||||
} | } | ||||
@Override | @Override | ||||
public Map<String, String> getHeaders() throws AuthFailureError { | public Map<String, String> getHeaders() throws AuthFailureError { | ||||
return MatoAPIFetcher.Companion.getREQ_PARAMETERS(); | return MatoAPIFetcher.Companion.getREQ_PARAMETERS(); | ||||
} | } | ||||
} | } |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register