コード例 #1
0
 public long getLastSuccessfulBatchRequestTimestamp() {
   return hapServiceManager.getLastBatchRequestTimestamp(user);
 }
コード例 #2
0
 public String getLocalHagId() {
   return hapServiceManager.getLocalHagId(user);
 }
コード例 #3
0
 public boolean isConnected() {
   return hapServiceManager.isConnected(user);
 }
コード例 #4
0
 public synchronized void setListener(M2MHapServiceListener listener) {
   if (this.listener != null) hapServiceManager.removeListener(this.listener);
   if (listener != null) hapServiceManager.addListener(listener);
   this.listener = listener;
 }
コード例 #5
0
 public M2MHapServiceObject() {
   this.hapServiceManager = HapServiceManager.get();
   hapServiceManager.addReference();
 }
コード例 #6
0
 public ContentInstanceItemsList getContentInstanceItemsList(
     AHContainerAddress containerId, long instanceId) throws M2MHapException {
   return hapServiceManager.getContentInstanceItemsList(user, containerId, instanceId);
 }
コード例 #7
0
 public void release() {
   setListener(null);
   hapServiceManager.removeReference();
 }
コード例 #8
0
 public ContentInstanceItemsList getCachedLatestContentItemsList(
     AHContainerAddress containerIdFilter) throws M2MHapException {
   return hapServiceManager.getCachedLatestContentInstanceItemsList(user, containerIdFilter);
 }
コード例 #9
0
 public ContentInstance getLocalContentInstance(AHContainerAddress containerAddressFilter)
     throws M2MHapException {
   return hapServiceManager.getLocalContentInstance(user, containerAddressFilter);
 }
コード例 #10
0
 public ContentInstance createContentInstanceQueued(
     AHContainerAddress containerId, ContentInstance contentInstance, boolean sync)
     throws M2MHapException {
   return hapServiceManager.createContentInstanceQueued(user, containerId, contentInstance, sync);
 }
コード例 #11
0
 public ContentInstance getCachedLatestContentInstance(AHContainerAddress containerName)
     throws M2MHapException {
   return hapServiceManager.getCachedLatestContentInstance(user, containerName);
 }
コード例 #12
0
 public ContentInstance createContentInstance(
     AHContainerAddress containerId, ContentInstance contentInstance) throws M2MHapException {
   return hapServiceManager.createContentInstance(user, containerId, contentInstance);
 }
コード例 #13
0
 public ContentInstance createContentInstance(
     AHContainerAddress containerId, long instanceId, Object content) throws M2MHapException {
   return hapServiceManager.createContentInstance(user, containerId, instanceId, content);
 }
コード例 #14
0
 public ContentInstanceItems getContentInstanceItems(
     AHContainerAddress containerId, long startInstanceId, long endInstanceId)
     throws M2MHapException {
   return hapServiceManager.getContentInstanceItems(
       user, containerId, startInstanceId, endInstanceId);
 }
コード例 #15
0
 public AHContainerAddress getLocalContainerAddress(String containerName) {
   return hapServiceManager.getLocalContainerAddress(user, containerName);
 }
コード例 #16
0
 public ContentInstanceItemsList getLocalContentInstanceItemsList(
     AHContainerAddress containerAddressFilter, long startInstanceId, long endInstanceId)
     throws M2MHapException {
   return hapServiceManager.getLocalContentInstanceItemsList(
       user, containerAddressFilter, startInstanceId, endInstanceId);
 }
コード例 #17
0
 public AHContainerAddress getLocalContainerAddress(
     String appliancePid, String endPointId, String containerName) {
   return hapServiceManager.getLocalContainerAddress(
       user, appliancePid, endPointId, containerName);
 }
コード例 #18
0
 public ContentInstance getOldestContentInstance(AHContainerAddress containerId)
     throws M2MHapException {
   return hapServiceManager.getContentInstance(
       user, containerId, M2MNetworkScl.CONTENT_INSTANCE_OLDEST_ID);
 }