Class ContentType


  • public class ContentType
    extends java.lang.Object
    This class is ContentType model class. Each ContentType consists of the type and number of items (count).

    The type is the string defined by ContentType.Type.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ContentType.Type
      A namespaced string that describes the type of content.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentType​(JSONObject jsonObject)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getCount()
      Number of items listed under the content type.
      java.lang.String getType()
      A namespaced string that describes the type of content, such as movie, audio and tv series.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentType

        public ContentType​(JSONObject jsonObject)
    • Method Detail

      • getType

        public java.lang.String getType()
        A namespaced string that describes the type of content, such as movie, audio and tv series. Example: media.video.movie

        The content type is defined by the airline.
      • getCount

        public java.lang.Integer getCount()
        Number of items listed under the content type. Example: type: "media.video.movie" item count: "10"
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object