Package wappsto.api.network
Interface NetworkService
-
- All Known Implementing Classes:
RestNetworkService
public interface NetworkService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclaim(java.lang.String id)java.lang.StringcreateDevice(java.lang.String networkId)NetworkMetacreateNetwork()NetworkMetafetch(java.lang.String id)CreatorResponsegetCreator()CreatorResponsegetCreator(boolean manufacturerAsOwner)DeviceResponsegetDevice(java.util.UUID device)java.lang.StringgetState(java.util.UUID id)ValueResponsegetValue(java.util.UUID fromString)voidshare(java.lang.String networkId, java.lang.String friendUsername)voidshare(NetworkMeta network, UserResponse friend)voidupdateState(java.util.UUID id, java.lang.String data)
-
-
-
Method Detail
-
claim
void claim(java.lang.String id) throws java.lang.Exception- Throws:
java.lang.Exception
-
getCreator
CreatorResponse getCreator() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getCreator
CreatorResponse getCreator(boolean manufacturerAsOwner) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createNetwork
NetworkMeta createNetwork() throws java.lang.Exception
- Throws:
java.lang.Exception
-
fetch
NetworkMeta fetch(java.lang.String id) throws java.lang.Exception
- Throws:
java.lang.Exception
-
share
void share(NetworkMeta network, UserResponse friend) throws java.lang.Exception
- Throws:
java.lang.Exception
-
share
void share(java.lang.String networkId, java.lang.String friendUsername) throws java.lang.Exception- Throws:
java.lang.Exception
-
updateState
void updateState(java.util.UUID id, java.lang.String data) throws java.lang.Exception- Throws:
java.lang.Exception
-
getState
java.lang.String getState(java.util.UUID id) throws java.lang.Exception- Throws:
java.lang.Exception
-
createDevice
java.lang.String createDevice(java.lang.String networkId) throws java.lang.Exception- Throws:
java.lang.Exception
-
getDevice
DeviceResponse getDevice(java.util.UUID device) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getValue
ValueResponse getValue(java.util.UUID fromString) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-