-
- All Implemented Interfaces:
-
com.appsflyer.internal.components.network.http.ResponseNetwork
public class Response<Body> implements ResponseNetwork<Body>
-
-
Field Summary
Fields Modifier and Type Field Description private final Bodybodyprivate final intstatusCodeprivate final booleanisSuccessfulprivate final Metricsmetrics
-
Method Summary
Modifier and Type Method Description BodygetBody()intgetStatusCode()booleanisSuccessful()MetricsgetMetrics()<T> Response<T>copyWithBody(T newBody)Creates copy of this response with the different body, intended to be used in converters List<String>getHeaderField(@NonNull() String key)StringgetHeaderFieldContent(@NonNull() String key)booleanequals(Object o)inthashCode()-
-
Method Detail
-
getStatusCode
int getStatusCode()
-
isSuccessful
boolean isSuccessful()
-
getMetrics
@NonNull() Metrics getMetrics()
-
copyWithBody
<T> Response<T> copyWithBody(T newBody)
Creates copy of this response with the different body, intended to be used in converters
-
getHeaderFieldContent
@Nullable() String getHeaderFieldContent(@NonNull() String key)
-
hashCode
int hashCode()
-
-
-
-