CPGEventResource

sealed class CPGEventResource<out R : Resource>

This abstracts the CPG Event Resources used in various activities. The various subclasses of CPGEventResource act as a wrapper around the resource they are derived from and helps with the abstracted properties defined for each CPGEventResource. e.g. CPGCommunicationEvent is a wrapper around the Communication and helps with its EventStatus and basedOn References.

Any direct update to the resource can be done by using update api.

The application users may use appropriate of static factories to create the required CPGEventResources.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun copy(): CPGEventResource<R>
Link copied to clipboard
abstract fun getBasedOn(): Reference?
Link copied to clipboard
Link copied to clipboard
abstract fun getStatusCode(): String?
Link copied to clipboard
abstract fun setBasedOn(reference: Reference)
Link copied to clipboard
abstract fun setStatus(status: EventStatus, reason: String? = null)