com.gu.contentapi.client.model

Content

case class Content(id: String, sectionId: Option[String], sectionName: Option[String], webPublicationDateOption: Option[DateTime], webTitle: String, webUrl: String, apiUrl: String, fields: Option[Map[String, String]] = None, tags: List[Tag] = Nil, elements: Option[List[Element]], references: List[Reference] = Nil, isExpired: Option[Boolean] = None) extends ContentType with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, ContentType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Content
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ContentType
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Content(id: String, sectionId: Option[String], sectionName: Option[String], webPublicationDateOption: Option[DateTime], webTitle: String, webUrl: String, apiUrl: String, fields: Option[Map[String, String]] = None, tags: List[Tag] = Nil, elements: Option[List[Element]], references: List[Reference] = Nil, isExpired: Option[Boolean] = None)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val apiUrl: String

    Full url on which full information about this content can be found on the content api.

    Full url on which full information about this content can be found on the content api. You need to access this to find, e.g. related content for the item.

    Definition Classes
    ContentContentType
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val elements: Option[List[Element]]

    New representation to elements (assets lists) only returns if show-elements("all") or show-elements("image") is specified

    New representation to elements (assets lists) only returns if show-elements("all") or show-elements("image") is specified

    Definition Classes
    ContentContentType
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. val fields: Option[Map[String, String]]

    Optional field list containing other variable information about this content.

    Optional field list containing other variable information about this content. (see safeFields for a more usable accessor). Fields are only returned if you specify showFields("xxx") on the request with either a comma separated list of fields or "all".

    Note that the set of fields returned vary per item of content, and may vary over time as the api evolves (although we will make every effort to maintain compatibility, we do not promise it).

    Definition Classes
    ContentContentType
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. val id: String

    The id of this item of content: this should always be the path to the item on www.theguardian.com

    The id of this item of content: this should always be the path to the item on www.theguardian.com

    Definition Classes
    ContentContentType
  13. val isExpired: Option[Boolean]

    Set to true if the rights to this content have expired.

    Set to true if the rights to this content have expired. Expired content is only available to internal users.

    Definition Classes
    ContentContentType
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. val references: List[Reference]

    List of references associated with the content.

    List of references associated with the content. References are strings that identify things beyond the content api. A good example is an isbn number, which associates a piece of content with a book.

    Use showReferences passing in the the type of reference you want to see or 'all' to see all references.

    Definition Classes
    ContentContentType
  19. def safeFields: Map[String, String]

    Definition Classes
    ContentType
  20. val sectionId: Option[String]

    Section is usually provided: some content (such as user help information) does not belong to any section so this will be None

    Section is usually provided: some content (such as user help information) does not belong to any section so this will be None

    Definition Classes
    ContentContentType
  21. val sectionName: Option[String]

    The display name of the section.

    The display name of the section. Will be None iff sectionId is None.

    Definition Classes
    ContentContentType
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. val tags: List[Tag]

    List of tags associated with this content.

    List of tags associated with this content.

    Only returned if you specify showTags("xxx") on the request with either a comma separated list of tag types or "all".

    The order of tags is significant; tags towards the top of the list are considered editorially more important than those towards the end.

    Definition Classes
    ContentContentType
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. lazy val webPublicationDate: DateTime

    The date and time when this content was published to the web.

    The date and time when this content was published to the web. Note that editors can set this field manually so does not necessarily exactly match when it actually appeared on the web. Current convention is that when "significant updates" are made to a story the web publication date is updated.

    Definition Classes
    ContentContentType
  28. val webPublicationDateOption: Option[DateTime]

  29. val webTitle: String

    Short description of this item of content.

    Short description of this item of content.

    Definition Classes
    ContentContentType
  30. val webUrl: String

    Full url on which the content can be found on www.theguardian.com

    Full url on which the content can be found on www.theguardian.com

    Definition Classes
    ContentContentType

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ContentType

Inherited from AnyRef

Inherited from Any

Ungrouped