Package com.castlabs.android.drm

# Class DrmTodayResponseCode

java.lang.Object
com.castlabs.android.drm.DrmTodayResponseCode

public class DrmTodayResponseCode extends Object
DRMToday response code holder and parser

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static @interface`
  `DrmTodayResponseCode.ErrorCode`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final String`
  `originalResponseCode`
  `final int`
  `responseCode`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static DrmTodayResponseCode`
  `create(Map<String,List<String>> responseHeaders)`
  Parses response headers and creates corresponding `DrmTodayResponseCode`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### responseCode

    public final int responseCode

  - ### originalResponseCode

    @Nullable public final String originalResponseCode

- ## Method Details

  - ### create

    @Nullable public static DrmTodayResponseCode create(@Nullable Map<String,List<String>> responseHeaders)
    Parses response headers and creates corresponding `DrmTodayResponseCode`
    Parameters:
      `responseHeaders` - Response headers to be parsed for the error code
    Returns:
      `DrmTodayResponseCode` or `null` in case the error code can't be found or parsed