com.gu.openplatform.contentapi.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]] = scala.None, tags: List[Tag] = immutable.this.Nil, factboxes: List[Factbox] = immutable.this.Nil, mediaAssets: List[MediaAsset] = immutable.this.Nil, elements: Option[List[Element]], references: List[Reference] = immutable.this.Nil, isExpired: Option[Boolean] = scala.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]] = scala.None, tags: List[Tag] = immutable.this.Nil, factboxes: List[Factbox] = immutable.this.Nil, mediaAssets: List[MediaAsset] = immutable.this.Nil, elements: Option[List[Element]], references: List[Reference] = immutable.this.Nil, isExpired: Option[Boolean] = scala.None)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. 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
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. val factboxes: List[Factbox]

  12. 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
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val id: String

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

    The id of this item of content: this should always be the path to the item on www.guardian.co.uk

    Definition Classes
    ContentContentType
  16. 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
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val mediaAssets: List[MediaAsset]

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. 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
  23. def safeFields: Map[String, String]

    Definition Classes
    ContentType
  24. def safeSnippets: Map[String, String]

    Definition Classes
    ContentType
  25. 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
  26. 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
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. 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
  29. final def wait(): Unit

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

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

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

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

  34. val webTitle: String

    Short description of this item of content.

    Short description of this item of content.

    Definition Classes
    ContentContentType
  35. val webUrl: String

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

    Full url on which the content can be found on www.guardian.co.uk

    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