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 ismeta.id). A taken id → ConflictException. -
current(
) → Future< Venue> -
The venue the alias
defaultresolves to (the one the media server runs now). -
export(
String venueId) → Future< DomePackage> -
Exports venue
venueIdas a.dome(kind venue) and opens it. -
get(
String venueId) → Future< Versioned< Venue> > -
One venue with its ETag (send it back as
ifMatchto save). -
import(
DomePackage dome) → Future< Versioned< Venue> > -
Imports a
.domeof kind venue / bundle: creates or replaces the venuemeta.idwith 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 forblend,.cubeforcolour); 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
venueIdwithbody(.domevenue sections). WithifMatch= the ETag from get; without it the venue is created (If-None-Match: *). A stale ETag (412) or a taken id (409) → ConflictException whoselatestis the currentVersioned<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
venueIdas it changes (venue.updatedevents; re-read after resync; polled while realtime is down).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited