Interface IDownload
A downloadable content item (a portal "download") - the offer around one or more files: headline, descriptions, image and group. The CMS download list item shows the active ones, newest first, to the usergroups they are assigned to. Used as both the request and response body.
public interface IDownload
Properties
Content
The long description, as HTML - the CMS inserts it without encoding.
string? Content { get; init; }
Property Value
- string
Date
The date shown with the download; the CMS download list item sorts newest first by it.
DateTimeOffset Date { get; init; }
Property Value
- DateTimeOffset
Files
The ids of the role content elements (RoleContentElement) offered
for download; the CMS links each as /downloadrolecontentelement?element={id}. Passing a non-null value
on create/update replaces the full set of attached files; null leaves it as it is. A list
response carries null for a download without files.
string[]? Files { get; init; }
Property Value
- string[]
Group
The group the download is listed under, so a CMS page can list one group. Groups are not a resource of their
own: GetDownloadGroupsAsync lists the names in use.
string? Group { get; init; }
Property Value
- string
Id
The download's id. The server generates a GUID when a create leaves it empty.
string? Id { get; init; }
Property Value
- string
ImagePath
The URL of the teaser image. Where it is empty the CMS download list item uses
/CMS/img/teaser-default.jpg.
string? ImagePath { get; init; }
Property Value
- string
IsActive
Whether the CMS download list item shows it. This API returns inactive downloads as well.
bool IsActive { get; init; }
Property Value
- bool
Name
The download's headline.
string? Name { get; init; }
Property Value
- string
ShortDescription
A short description, shown in the CMS download list.
string? ShortDescription { get; init; }
Property Value
- string
Subheadline
A second headline shown below Name.
string? Subheadline { get; init; }
Property Value
- string