Package com.gears42.iot.webthing
Class WebThingServer.SingleThing
- java.lang.Object
-
- com.gears42.iot.webthing.WebThingServer.SingleThing
-
- Enclosing class:
- WebThingServer
public static class WebThingServer.SingleThing extends java.lang.Object
A container for a single thing.
-
-
Constructor Summary
Constructors Constructor Description SingleThing(java.lang.String id, Thing thing)
Initialize the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getName()
Get the mDNS server name.Thing
getThing(java.lang.String id)
Get the thing at the given index.java.util.HashMap<java.lang.String,Thing>
getThings()
Get the list of things.
-
-
-
Constructor Detail
-
SingleThing
public SingleThing(java.lang.String id, Thing thing)
Initialize the container.- Parameters:
id
- thing idthing
- The thing to store
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getThing
public Thing getThing(java.lang.String id)
Get the thing at the given index.- Parameters:
id
- The index.
-
getThings
public java.util.HashMap<java.lang.String,Thing> getThings()
Get the list of things.- Returns:
- The list of things.
-
getName
public java.lang.String getName()
Get the mDNS server name.- Returns:
- The server name.
-
-