Class MediaAsset
A media asset (image, document, ...) attached to a product.
Implements
Inherited Members
Namespace: Activout.Blue5
Assembly: Activout.Blue5.dll
Syntax
public sealed record MediaAsset : IEquatable<MediaAsset>
Remarks
Blue5 only describes the asset. Fetch DownloadUri yourself to get the file.
Properties
| Edit this page View SourceAttributes
The asset's own attribute values, indexed by attribute number.
Declaration
public ProductAttributes Attributes { get; init; }
Property Value
| Type | Description |
|---|---|
| ProductAttributes |
ContentType
MIME type, such as image/webp.
Declaration
public string ContentType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
CreateDate
When the asset was created.
Declaration
public DateTimeOffset? CreateDate { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
Description
Asset description, if any.
Declaration
public string? Description { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
DownloadUri
URL of the original file.
Declaration
public required Uri DownloadUri { get; init; }
Property Value
| Type | Description |
|---|---|
| Uri |
FileName
Original file name, if known.
Declaration
public string? FileName { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Asset identifier.
Declaration
public string? Id { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Labels
Label names.
Declaration
public IReadOnlyList<string> Labels { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Name
Asset name.
Declaration
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Number
Asset business key. Always a string.
Declaration
public string? Number { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
PreviewUri
URL of a small preview rendition (a 400px-wide JPEG for images).
Declaration
public required Uri PreviewUri { get; init; }
Property Value
| Type | Description |
|---|---|
| Uri |
UpdateDate
When the asset was last updated.
Declaration
public DateTimeOffset? UpdateDate { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |