Class MediaFile
- Namespace
- Geotab.Checkmate.ObjectModel.Files
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The entity which describes the binary media.
public class MediaFile : NameEntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDeviceProvider, IDriverProvider, IDefaultable
- Inheritance
-
MediaFile
- Implements
- Derived
- Inherited Members
Constructors
MediaFile()
Initializes a new instance of the MediaFile class.
public MediaFile()
MediaFile(MediaFile)
Initializes a new instance of the MediaFile class.
public MediaFile(MediaFile file)
Parameters
MediaFile(Id?, long?, string?)
Initializes a new instance of the MediaFile class.
protected MediaFile(Id? id, long? version, string? name)
Parameters
MediaFile(Id?, long?, string?, MediaType?, Device?, Driver?, DateTime?, DateTime?, Status?, string?, List<Tag>?, List<MediaFile>?, Id?)
Initializes a new instance of the MediaFile class.
public MediaFile(Id? id, long? version, string? name, MediaType? mediaType, Device? device, Driver? driver, DateTime? fromDate, DateTime? toDate, Status? status, string? metaData, List<Tag>? tags, List<MediaFile>? thumbnails, Id? solutionId)
Parameters
idIdThe Id.
versionlong?The version.
namestringThe name.
mediaTypeMediaType?The MediaType.
deviceDeviceThe Device.
driverDriverThe Driver.
fromDateDateTime?The from date.
toDateDateTime?The to date.
statusStatus?The Status.
metaDatastringThe metadata.
tagsList<Tag>The list of tags.
thumbnailsList<MediaFile>The list of thumbnails.
solutionIdIdThe Id of the solution this data belongs to.
Fields
SupportedFileTypes
public static readonly ImmutableHashSet<MediaType> SupportedFileTypes
Field Value
Properties
Device
Gets or sets the Device associated with the file.
public Device? Device { get; set; }
Property Value
Driver
Gets or sets the Driver associated with the file.
public Driver? Driver { get; set; }
Property Value
FromDate
Gets or sets the from date.
public DateTime? FromDate { get; set; }
Property Value
MediaType
Gets or sets the MediaType.
public MediaType? MediaType { get; set; }
Property Value
MetaData
Gets or sets file metadata in JSON format.
public string? MetaData { get; set; }
Property Value
SolutionId
Gets or sets the Id of the solution which added the data.
public Id? SolutionId { get; set; }
Property Value
Status
Gets or sets the file processing Status.
public Status? Status { get; set; }
Property Value
Tags
Gets or sets the list of tags to provide context to the file.
public List<Tag>? Tags { get; set; }
Property Value
Thumbnails
Gets or sets the list of files which serve as the thumbnail for this file.
public List<MediaFile>? Thumbnails { get; set; }
Property Value
ToDate
Gets or sets the to date.
public DateTime? ToDate { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
GetFileName()
Gets the stored file name.
public string? GetFileName()
Returns
- string
The string file name.
PopulateDefaults()
Populate non-required empty (null) properties with default values.
public virtual void PopulateDefaults()