VenuesRepository class final

Venues of the media server: the dome geometry, displays, calibration and audio layout (.dome kind venue).

Constructors

VenuesRepository(ApiCaller _api, RepositoryContext _c)
Internal: created by FreedomeClient.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

calibration(String venueId) → Future<Versioned<Calibration>>
The venue's calibration block.
calibrationFile(String venueId, String displayId, String file) → Future<Uint8List>
Downloads a calibration sidecar (file = warp | blend | colour).
create(VenueInput body) → Future<Versioned<Venue>>
Creates a venue from body (POST /venues; the id is meta.id). A taken id → ConflictException.
current() → Future<Venue>
The venue the alias default resolves to (the one the media server runs now).
export(String venueId) → Future<DomePackage>
Exports venue venueId as a .dome (kind venue) and opens it.
get(String venueId) → Future<Versioned<Venue>>
One venue with its ETag (send it back as ifMatch to save).
import(DomePackage dome) → Future<Versioned<Venue>>
Imports a .dome of kind venue / bundle: creates or replaces the venue meta.id with the manifest's venue sections, then uploads the calibration sidecars (warp / blend / colour) found in the container. Returns the venue as stored.
list() → Future<List<Venue>>
All venues (follows the cursor pages; served from the cache, stale, while offline).
listVersioned() → Future<Versioned<List<Venue>>>
All venues with freshness information (02f §7.4).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putCalibrationFile(String venueId, String displayId, String file, Uint8List bytes, {String? ifMatch}) → Future<Versioned<Calibration>>
Uploads a calibration sidecar (FDMESH for warp, 16-bit PNG for blend, .cube for colour); the server validates it and bumps the venue revision. Returns the new calibration block.
save(String venueId, VenueInput body, {String? ifMatch}) → Future<Versioned<Venue>>
Replaces venue venueId with body (.dome venue sections). With ifMatch = the ETag from get; without it the venue is created (If-None-Match: *). A stale ETag (412) or a taken id (409) → ConflictException whose latest is the current Versioned<Venue> (when it could be fetched).
toString() → String
A string representation of this object.
inherited
watch(String venueId, {Duration interval = const Duration(seconds: 5)}) → Stream<Venue>
Venue venueId as it changes (venue.updated events; re-read after resync; polled while realtime is down).

Operators

operator ==(Object other) → bool
The equality operator.
inherited