Package com.castlabs.android.drm
Class DrmTodayResponseCode
java.lang.Object
com.castlabs.android.drm.DrmTodayResponseCode
DRMToday response code holder and parser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DrmTodayResponseCode
Parses response headers and creates correspondingDrmTodayResponseCode
-
Field Details
-
responseCode
public final int responseCode -
originalResponseCode
-
-
Method Details
-
create
@Nullable public static DrmTodayResponseCode create(@Nullable Map<String, List<String>> responseHeaders) Parses response headers and creates correspondingDrmTodayResponseCode
- Parameters:
responseHeaders
- Response headers to be parsed for the error code- Returns:
DrmTodayResponseCode
ornull
in case the error code can't be found or parsed
-