Class CaptionJsonHelper

  • All Implemented Interfaces:
    com.jwplayer.api.json.JsonListParser<Caption>, com.jwplayer.api.json.JsonMarshaller<Caption>, com.jwplayer.api.json.JsonParser<Caption>

    public class CaptionJsonHelper
    extends com.jwplayer.api.json.helpers.CaptionJsonHelper
    • Field Summary

      • Fields inherited from class com.jwplayer.api.json.helpers.CaptionJsonHelper

        PARAM_DEFAULT, PARAM_FILE, PARAM_ID, PARAM_KIND, PARAM_LABEL, PARAM_TRACKS
    • Constructor Detail

      • CaptionJsonHelper

        public CaptionJsonHelper()
    • Method Detail

      • toJson

        public org.json.JSONObject toJson​(Caption obj)
        Specified by:
        toJson in interface com.jwplayer.api.json.JsonMarshaller<Caption>
        Overrides:
        toJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper
      • parseJson

        public Caption parseJson​(java.lang.String json)
                          throws org.json.JSONException
        Specified by:
        parseJson in interface com.jwplayer.api.json.JsonParser<Caption>
        Overrides:
        parseJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper
        Throws:
        org.json.JSONException
      • parseJson

        public Caption parseJson​(org.json.JSONObject json)
                          throws org.json.JSONException
        Specified by:
        parseJson in interface com.jwplayer.api.json.JsonParser<Caption>
        Overrides:
        parseJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper
        Throws:
        org.json.JSONException
      • listFromJson

        public java.util.List<Caption> listFromJson​(java.lang.String json)
        Specified by:
        listFromJson in interface com.jwplayer.api.json.JsonListParser<Caption>
        Overrides:
        listFromJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper
      • listFromJson

        public java.util.List<Caption> listFromJson​(org.json.JSONArray json)
        Specified by:
        listFromJson in interface com.jwplayer.api.json.JsonListParser<Caption>
        Overrides:
        listFromJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper
      • listToJson

        public org.json.JSONArray listToJson​(java.util.List<Caption> list)
        Overrides:
        listToJson in class com.jwplayer.api.json.helpers.CaptionJsonHelper