Class AdRulesJsonHelper

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

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

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

        PARAM_FREQUENCY, PARAM_START_ON, PARAM_START_ON_SEEK, PARAM_TIME_BETWEEN_ADS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AdRules parseJson​(java.lang.String jsonString)  
      AdRules parseJson​(org.json.JSONObject jsonObject)  
      org.json.JSONObject toJson​(AdRules adRules)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdRulesJsonHelper

        public AdRulesJsonHelper()
    • Method Detail

      • toJson

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

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

        public AdRules parseJson​(org.json.JSONObject jsonObject)
                          throws org.json.JSONException
        Specified by:
        parseJson in interface com.jwplayer.api.json.JsonParser<AdRules>
        Overrides:
        parseJson in class com.jwplayer.api.json.helpers.AdRulesJsonHelper
        Throws:
        org.json.JSONException