Package com.castlabs.sdk.viisights
Class Scene
java.lang.Object
com.castlabs.sdk.viisights.Scene
- All Implemented Interfaces:
Comparable<Scene>
Represents a scene in the Viisight system, defined by its start and end times,
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Category[]Array of categories associated with the scene.final ContentClass[]Array of content classes associated with the scene.final longEnd time of the scene in milliseconds.final longStart time of the scene in milliseconds. -
Constructor Summary
ConstructorsConstructorDescriptionScene(long startMs, long endMs, ContentClass[] contentClasses, Category[] categories) Constructs a Scene object with the specified parameters. -
Method Summary
-
Field Details
-
startMs
public final long startMsStart time of the scene in milliseconds. -
endMs
public final long endMsEnd time of the scene in milliseconds. -
contentClasses
Array of content classes associated with the scene. -
categories
Array of categories associated with the scene.
-
-
Constructor Details
-
Scene
Constructs a Scene object with the specified parameters.- Parameters:
startMs- The start time of the scene in milliseconds.endMs- The end time of the scene in milliseconds.contentClasses- An array of content classes associated with the scene.categories- An array of categories associated with the scene.
-
-
Method Details
-
isVisible
public boolean isVisible(long positionMs) Checks if the scene is visible at a given position in milliseconds.- Parameters:
positionMs- The position in milliseconds to check for visibility.- Returns:
- true if the scene is visible at the specified position, false otherwise.
-
compareTo
- Specified by:
compareToin interfaceComparable<Scene>
-