MediaDatum class
A datum that holds the path to media file on the local device, as well as the timestamps of when the recording was started and stopped
- Inheritance
-
- Object
- Data
- Datum
- FileDatum
- MediaDatum
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
- MediaDatum({required String filename, required MediaType mediaType, DateTime? startRecordingTime, DateTime? endRecordingTime})
-
MediaDatum.fromJson(Map<
String, dynamic> json) -
factory
Properties
- endRecordingTime ↔ DateTime?
-
The timestamp for end of recording, if available.
getter/setter pair
- filename ↔ String
-
The name to the attached file.
getter/setter pairinherited
- format ↔ DataFormat
-
The
DataFormat
of this type ofDatum
.getter/setter pairinherited-setteroverride-getter - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
An identifier for this
Datum
, unique across all data generated. If this datum is part of aMultiDatum
, then this id is null.getter/setter pairinherited - mediaType ↔ MediaType
-
The type of media.
getter/setter pair
-
metadata
↔ Map<
String, String> ? -
Metadata for this file as a map of string key-value pairs.
getter/setter pairinherited
- path ↔ String?
-
The local path to the attached file on the phone where it is sampled.
This is used by e.g. a data manager to get and manage the file on
the phone.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startRecordingTime ↔ DateTime?
-
The timestamp for start of recording, if available.
getter/setter pair
- timestamp ↔ DateTime
-
The UTC timestamp when this data was generated on the device.
getter/setter pairinherited
- upload ↔ bool
-
Should this file be uploaded together with the
Datum
description. Default istrue
.getter/setter pairinherited
Methods
-
equivalentTo(
ConditionalEvent? event) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Return a JSON encoding of this datum.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited