public class InteractiveScene extends InteractiveResource<InteractiveScene> implements IInteractiveCreatable, IInteractiveDeletable, Comparable<InteractiveScene>
InteractiveScene represents a scene resource on the Interactive service.meta| Constructor and Description |
|---|
InteractiveScene(String sceneID)
Initializes a new
InteractiveScene. |
InteractiveScene(String sceneID,
Collection<InteractiveGroup> groups,
Collection<InteractiveControl> controls)
Initializes a new
InteractiveScene. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(InteractiveScene o) |
CompletableFuture<Boolean> |
create(GameClient gameClient)
Creates
this on the Interactive service. |
CompletableFuture<Boolean> |
delete(GameClient gameClient)
Deletes
this from the Interactive service, reassigning groups on this scene to the default scene. |
CompletableFuture<Boolean> |
delete(GameClient gameClient,
String reassignSceneID)
Deletes
this from the Interactive service, reassigning groups on this scene to the specified scene. |
boolean |
equals(Object o) |
InteractiveControl |
getControl(String controlID)
Returns the
InteractiveControl matching by controlID if this scene contains it,
null otherwise. |
Set<InteractiveControl> |
getControls()
Returns all
InteractiveControls for this scene. |
InteractiveGroup |
getGroup(String groupID)
Returns the
InteractiveGroup matching by groupID if this scene contains it,
null otherwise. |
Set<InteractiveGroup> |
getGroups()
Returns all
InteractiveGroups for this scene. |
String |
getSceneID()
Returns the unique identifier for this scene.
|
protected InteractiveScene |
getThis()
Returns
this as an instance of the specified generic. |
int |
hashCode() |
boolean |
isDefault()
Returns
true if this is the default scene, false otherwise. |
boolean |
syncIfEqual(Collection<?> objects)
Iterates through a
Collection of Objects. |
CompletableFuture<Boolean> |
update(GameClient gameClient)
Updates
this on the Interactive service. |
addMetaProperty, getMeta, setMetapublic InteractiveScene(String sceneID)
InteractiveScene.sceneID - Identifier for the InteractiveScenepublic InteractiveScene(String sceneID, Collection<InteractiveGroup> groups, Collection<InteractiveControl> controls)
InteractiveScene.sceneID - Identifier for the InteractiveScenegroups - A Collection of InteractiveGroups that are currently on this
InteractiveScenecontrols - A Collection of InteractiveControls that this InteractiveScene
will containpublic String getSceneID()
public boolean isDefault()
true if this is the default scene, false otherwise.true if this is the default scene, false otherwisepublic InteractiveGroup getGroup(String groupID)
InteractiveGroup matching by groupID if this scene contains it,
null otherwise.groupID - Unique identifier for a InteractiveGroupInteractiveGroup matching by groupID if this scene contains it,
null otherwisepublic Set<InteractiveGroup> getGroups()
InteractiveGroups for this scene.Set of InteractiveGroups for this scenepublic InteractiveControl getControl(String controlID)
InteractiveControl matching by controlID if this scene contains it,
null otherwise.controlID - Unique identifier for a InteractiveControlInteractiveControl matching by controlID if this scene contains it,
null otherwisepublic Set<InteractiveControl> getControls()
InteractiveControls for this scene.Set of InteractiveControls for this sceneprotected InteractiveScene getThis()
this as an instance of the specified generic. Utilizes the
getThis
programming idiom.getThis in class InteractiveResource<InteractiveScene>this as an object of type TInteractiveResource.getThis()public boolean syncIfEqual(Collection<?> objects)
Collection of Objects. If this is found to be in the
Collection then this has it's values updated.syncIfEqual in class InteractiveResource<InteractiveScene>objects - A Collection of ObjectsCompletableFuture that when complete returns true if the
provided Collection contains thisInteractiveResource.syncIfEqual(Collection)public CompletableFuture<Boolean> create(GameClient gameClient)
this on the Interactive service.create in interface IInteractiveCreatablegameClient - The GameClient to use for the create operationCompletableFuture that when complete returns true if the
create method call completes with no errorsIInteractiveCreatable.create(GameClient)public CompletableFuture<Boolean> update(GameClient gameClient)
this on the Interactive service.update in interface IInteractiveUpdatablegameClient - The GameClient to use for the update operationCompletableFuture that when complete returns true if the
update method call completes with no errorsIInteractiveUpdatable.update(GameClient)public CompletableFuture<Boolean> delete(GameClient gameClient)
this from the Interactive service, reassigning groups on this scene to the default scene.delete in interface IInteractiveDeletablegameClient - The GameClient to use for the delete operationCompletableFuture that when complete returns true if the
deleteScene method call completes with no errorsIInteractiveDeletable.delete(GameClient)public CompletableFuture<Boolean> delete(GameClient gameClient, String reassignSceneID)
this from the Interactive service, reassigning groups on this scene to the specified scene.gameClient - The GameClient to use for the delete operationreassignSceneID - Identifier for the InteractiveScene that InteractiveGroups will be
reassigned toCompletableFuture that when complete returns true if the
deleteScene method call completes with no errorspublic int compareTo(InteractiveScene o)
compareTo in interface Comparable<InteractiveScene>Copyright © 2018. All rights reserved.