|
| 1 | +classdef DataPackageListResponse < MacrobondMATLABAPI.JSONMapper |
| 2 | +% DataPackageListResponse List of entities available in a data package |
| 3 | +% |
| 4 | +% DataPackageListResponse Properties: |
| 5 | +% timeStampForIfModifiedSince - A timestamp to pass as the ifModifiedSince parameter in the next request to get incremental updates - type: datetime |
| 6 | +% downloadFullListOnOrAfter - Recommended earliest next time to request a full list by omitting timeStampForIfModifiedSince. - type: datetime |
| 7 | +% state - The state of this list. 0 = FullListing (A complete listing of all series. Make another request for full data at some point after timestamp in downloadFullListOnOrAfter.) 1 = UpToDate (The list contains all updates since the specified start date. Wait 15 minutes before making another request where timeStampForIfModifiedSince is used.) 2 = Incomplete (The list might not contain all updates. Wait one minute and then use the timeStampForIfModifiedSince in an a new request.) - type: DataPackageListState |
| 8 | +% entities - A list of entity names and timestamps when they were last modified. - type: array of EntityNameWithTimeStamp |
| 9 | + |
| 10 | +% This file is automatically generated using OpenAPI |
| 11 | +% Specification version: v1 |
| 12 | +% MATLAB Generator for OpenAPI version: 1.0.0 |
| 13 | + |
| 14 | + |
| 15 | + % Class properties |
| 16 | + properties |
| 17 | + % timeStampForIfModifiedSince - A timestamp to pass as the ifModifiedSince parameter in the next request to get incremental updates - type: datetime |
| 18 | + timeStampForIfModifiedSince datetime { MacrobondMATLABAPI.JSONMapper.stringDatetime(timeStampForIfModifiedSince,'yyyy-MM-dd''T''HH:mm:ss.SSSZ', 'TimeZone', 'local'), MacrobondMATLABAPI.JSONMapper.fieldName(timeStampForIfModifiedSince,"timeStampForIfModifiedSince") } |
| 19 | + % downloadFullListOnOrAfter - Recommended earliest next time to request a full list by omitting timeStampForIfModifiedSince. - type: datetime |
| 20 | + downloadFullListOnOrAfter datetime { MacrobondMATLABAPI.JSONMapper.stringDatetime(downloadFullListOnOrAfter,'yyyy-MM-dd''T''HH:mm:ss.SSSZ', 'TimeZone', 'local'), MacrobondMATLABAPI.JSONMapper.fieldName(downloadFullListOnOrAfter,"downloadFullListOnOrAfter") } |
| 21 | + % state - The state of this list. 0 = FullListing (A complete listing of all series. Make another request for full data at some point after timestamp in downloadFullListOnOrAfter.) 1 = UpToDate (The list contains all updates since the specified start date. Wait 15 minutes before making another request where timeStampForIfModifiedSince is used.) 2 = Incomplete (The list might not contain all updates. Wait one minute and then use the timeStampForIfModifiedSince in an a new request.) - type: DataPackageListState |
| 22 | + state { MacrobondMATLABAPI.JSONMapper.fieldName(state,"state") } |
| 23 | + % entities - A list of entity names and timestamps when they were last modified. - type: array of EntityNameWithTimeStamp |
| 24 | + entities MacrobondMATLABAPI.models.EntityNameWithTimeStamp { MacrobondMATLABAPI.JSONMapper.fieldName(entities,"entities"), MacrobondMATLABAPI.JSONMapper.JSONArray } |
| 25 | + end |
| 26 | + |
| 27 | + % Class methods |
| 28 | + methods |
| 29 | + % Constructor |
| 30 | + function obj = DataPackageListResponse(s,inputs) |
| 31 | + % To allow proper nesting of object, derived objects must |
| 32 | + % call the JSONMapper constructor from their constructor. This |
| 33 | + % also allows objects to be instantiated with Name-Value pairs |
| 34 | + % as inputs to set properties to specified values. |
| 35 | + arguments |
| 36 | + s { MacrobondMATLABAPI.JSONMapper.ConstructorArgument } = [] |
| 37 | + inputs.?MacrobondMATLABAPI.models.DataPackageListResponse |
| 38 | + end |
| 39 | + |
| 40 | + end |
| 41 | + end %methods |
| 42 | +end %class |
| 43 | + |
0 commit comments