GofsFeedResponse

data class GofsFeedResponse<T : GofsFeedData>(val lastUpdated: EpochSeconds, val ttl: WholeSeconds, val version: String, val data: T)(source)

Common header structure for all GOFS feed responses.

Every JSON file in GOFS contains this common header information at the top level of the JSON response object.

Constructors

Link copied to clipboard
constructor(lastUpdated: EpochSeconds, ttl: WholeSeconds, version: String, data: T)

Properties

Link copied to clipboard
val data: T

Response data in the form of name:value pairs.

Link copied to clipboard
@SerialName(value = "last_updated")
val lastUpdated: EpochSeconds

Indicates the last time data in the feed was updated. This timestamp represents the publisher's knowledge of the current state of the system at this point in time.

Link copied to clipboard

Number of seconds before the data in the feed will be updated again. If the data should always be refreshed, the value should be 0.

Link copied to clipboard

GOFS version number to which the feed conforms, according to the versioning framework.