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

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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 Detail

    - #### responseCode

          public final int responseCode

    - #### originalResponseCode

          @Nullable
          public final String originalResponseCode

  - ### Method Detail

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