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 int`
  `responseCode`
  `final String`
  `responseCodeString`

- ## 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

  - ### responseCodeString

    @Nullable public final String responseCodeString

- ## Method Details

  - ### create

    @Nullable public static DrmTodayResponseCode create(@Nullable Map<String,List<String>> responseHeaders)
    Parses response headers and creates corresponding `DrmTodayResponseCode`
    Parameters:
      `responseHeaders` - HTTP response headers to be parsed for the error code
    Returns:
      `DrmTodayResponseCode` or `null` if the response code is not available