com.philips.lighting.hue.sdk.heartbeat.PHHeartbeatProcessor.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hue-local Show documentation
Show all versions of hue-local Show documentation
The Philips hue local SDK released via Syncleus for maven.
???? 2? ??
?? ?? ???
? ?? ??
??
?? ???
??
??
??
????
?????
?
?
??
??
????
??
?
??
?
??
??
???
??
???
'?
?? ?? ??
??????
????? 1??? 1? ??
???? ??
???? ??
???? ??
??????
???? ??
???? ??
????
???
K?
K?
K?
K?
K?
K?
K???
?? ????
??
K??
?? ??
??
K??
?? ?
?
K
? ?
?
K
? ?
?
K
? ?
?
K
?
?
?
K ?
?
|?? !"!#$
?%&
?'
??()
?%
?*
?%
?+
?,
?-
?%
?.
?%
?
?/
01
?2
?34
??5
??
?6
?7
?8
?9
?:
?;
?<
?=
?>
??
?@
?A
?B
?C
?D
?EF
?GHI
?J
K
?L
M
?N
?O
?P
?QRS
?T
?UVWX PHHeartbeatType InnerClasses bridge %Lcom/philips/lighting/model/PHBridge; TAG Ljava/lang/String;
ConstantValue
NO_OF_RETRIES B
currentTry I notifyConnectionResume Z isProcessing
heartbeatType MLcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor$PHHeartbeatType; cacheNotificationsList Ljava/util/List; Signature %Ljava/util/List; u(Lcom/philips/lighting/model/PHBridge;Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor$PHHeartbeatType;)V Code LineNumberTable LocalVariableTable this =Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor; bridge2 run ()V errorObject 'Lcom/philips/lighting/model/PHHueError; sdkImplementation 'Lcom/philips/lighting/hue/sdk/PHHueSDK; parser BLcom/philips/lighting/hue/sdk/clip/serialisation/PHCLIPParserBase;
errorTable couldntConnect accessPoint ,Lcom/philips/lighting/hue/sdk/PHAccessPoint; notificationManager JLcom/philips/lighting/hue/sdk/notification/impl/PHNotificationManagerImpl; response error LocalVariableTypeTable 9Ljava/util/List;
StackMapTableYVZ[\? processHeartbeatResponse (Ljava/lang/String;)V bridgeConfigSerializer CLcom/philips/lighting/hue/sdk/clip/PHBridgeConfigurationSerializer; bridgeSwVersion bridgeAPIVersion 0Lcom/philips/lighting/hue/sdk/clip/PHCLIPParser;
serializer 5Lcom/philips/lighting/hue/sdk/clip/PHGroupSerializer; 5Lcom/philips/lighting/hue/sdk/clip/PHLightSerializer; 5Lcom/philips/lighting/hue/sdk/clip/PHSceneSerializer; 8Lcom/philips/lighting/hue/sdk/clip/PHScheduleSerializer; 6Lcom/philips/lighting/hue/sdk/clip/PHSensorSerializer; 4Lcom/philips/lighting/hue/sdk/clip/PHRuleSerializer; userName bridgeVersionManager 9Lcom/philips/lighting/hue/sdk/fbp/PHBridgeVersionManager;
parsingErrors cacheImpl ELcom/philips/lighting/hue/sdk/bridge/impl/PHBridgeResourcesCacheImpl; lightsCache Ljava/util/Map; groupsCache bridgeConfig 2Lcom/philips/lighting/model/PHBridgeConfiguration; schedulesCache
sceneCache sensorCache ruleCache newBridgeConfig
groupsList
lightsList sceneList
schedulesList
sensorList ruleList e Ljava/lang/Exception;
rootObject Lorg/json/hue/JSONObject; @Ljava/util/List; GLjava/util/Map; GLjava/util/Map; JLjava/util/Map; GLjava/util/Map; OLjava/util/Map; KLjava/util/Map; 6Ljava/util/List; 6Ljava/util/List; 6Ljava/util/List; 9Ljava/util/List; >Ljava/util/List; :Ljava/util/List;?]^?_ getType O()Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor$PHHeartbeatType; isLightsChanged "(Ljava/util/List;Ljava/util/Map;)Z cachedLight $Lcom/philips/lighting/model/PHLight; light i$ Ljava/util/Iterator;`$ ?(Ljava/util/List;Ljava/util/Map;)Z getNewLightsCache !(Ljava/util/List;)Ljava/util/Map; lightsCacheCopy (Ljava/util/List;)Ljava/util/Map; isGroupsChanged cachedGroup $Lcom/philips/lighting/model/PHGroup; group) ?(Ljava/util/List;Ljava/util/Map;)Z getNewGroupsCache groupsCacheCopy (Ljava/util/List;)Ljava/util/Map; isSchedulesChanged cachedSchedule 'Lcom/philips/lighting/model/PHSchedule; schedule* ?(Ljava/util/List;Ljava/util/Map;)Z getNewSchedulesCache schedulesCacheCopy ?(Ljava/util/List;)Ljava/util/Map; isScenesChanged cachedScene $Lcom/philips/lighting/model/PHScene; scene+ ?(Ljava/util/List;Ljava/util/Map;)Z getNewScenesCache
scenesList scenessCacheCopy (Ljava/util/List;)Ljava/util/Map; isSensorsChanged cachedSensor ,Lcom/philips/lighting/model/sensor/PHSensor; sensor- ?(Ljava/util/List;Ljava/util/Map;)Z getNewSensorsCache sensorCacheCopy ?(Ljava/util/List;)Ljava/util/Map; checkAndUpdateRules
cachedRule (Lcom/philips/lighting/model/rule/PHRule; rule rulesList
rulesCache. ?(Ljava/util/List;Ljava/util/Map;)Z getNewRulesCache
ruleCacheCopy ?(Ljava/util/List;)Ljava/util/Map; disconnectBridge (Z)V
stopHeartBeata getInternalObject A()Lcom/philips/lighting/hue/sdk/connection/impl/PHBridgeInternal; disconnectedBridgeAsAccessPoint .()Lcom/philips/lighting/hue/sdk/PHAccessPoint; bridgeConfiguration ()Z getResponseFromResource ()Ljava/lang/String; internals ?Lcom/philips/lighting/hue/sdk/connection/impl/PHBridgeInternal;4 checkAppNameDeviceName 5(Lcom/philips/lighting/model/PHBridgeConfiguration;)V entry -Lcom/philips/lighting/model/PHWhiteListEntry;
sdkAppName
sdkDeviceName combinedName whitelistID whitelistEntryK
access$000 d(Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor;)Lcom/philips/lighting/model/PHBridge; x0
SourceFile PHHeartbeatProcessor.java ? ? ? ? ? ? ? ? java/util/ArrayList ? ? ? ?Ybcade ? ? $Internal error:bridge object is nullfg??[hijk\lmvwno %com/philips/lighting/model/PHHueErrorpmq?rstut PHHeartbeatProcessor java/lang/StringBuilder ,start processing HeartbeatResponse for type vwx?yz{ ? ? ? ?
No connection|}|} org/json/hue/JSONObject ? ?^h~ ?? ?????????{?? .com/philips/lighting/hue/sdk/clip/PHCLIPParser????? ?? ??????? ??????? ??????? ?????????]?????? ??????? ???????? Ccom/philips/lighting/hue/sdk/bridge/impl/PHBridgeResourcesCacheImpl????????????? ?89?????BC?? LIGHTS_CACHE_UPDATEDF9??LC?? GROUPS_CACHE_UPDATEDO9?UC?? SCHEDULES_CACHE_UPDATEDX9?^C?? SCENE_CACHE_UPDATEDb9
?hC?? SENSOR_CACHE_UPDATEDk9?sC?? RULE_CACHE_UPDATED??? ?????? "BRIDGE_CONFIGURATION_CACHE_UPDATED !Notified with notificationFlags :v??? java/lang/Exception? ? Internal error in SDK_??`??? "com/philips/lighting/model/PHLight??n? java/util/HashMap?? "com/philips/lighting/model/PHGroup %com/philips/lighting/model/PHSchedule "com/philips/lighting/model/PHScene?? *com/philips/lighting/model/sensor/PHSensor &com/philips/lighting/model/rule/PHRule????t???? =com/philips/lighting/hue/sdk/connection/impl/PHBridgeInternal *com/philips/lighting/hue/sdk/PHAccessPoint??? ???? ???? ?? ?z{???????????????? 5com/philips/lighting/hue/sdk/bridge/impl/PHBridgeImpl??????? +com/philips/lighting/model/PHWhiteListEntry??Z??he???? # =com/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor$1 ??? ? ;com/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor java/util/TimerTask Kcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor$PHHeartbeatType Hcom/philips/lighting/hue/sdk/notification/impl/PHNotificationManagerImpl java/lang/String @com/philips/lighting/hue/sdk/clip/serialisation/PHCLIPParserBase java/util/List 0com/philips/lighting/model/PHBridgeConfiguration 7com/philips/lighting/hue/sdk/fbp/PHBridgeVersionManager
java/util/Map java/util/Iterator %com/philips/lighting/hue/sdk/PHHueSDK getNotificationManager L()Lcom/philips/lighting/hue/sdk/notification/impl/PHNotificationManagerImpl; getStoredSDKObject )()Lcom/philips/lighting/hue/sdk/PHHueSDK; notifySDKError (ILjava/lang/String;)V getInstance D()Lcom/philips/lighting/hue/sdk/clip/serialisation/PHCLIPParserBase;
parseError $(Ljava/lang/String;)Ljava/util/List; size ()I get (I)Ljava/lang/Object; getCode
getMessage cancel addBridge ((Lcom/philips/lighting/model/PHBridge;)V notifyConnectionResumed append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString 1com/philips/lighting/hue/sdk/utilities/impl/PHLog d '(Ljava/lang/String;Ljava/lang/String;)V notifyConnectionLost /(Lcom/philips/lighting/hue/sdk/PHAccessPoint;)V ;()Lcom/philips/lighting/hue/sdk/fbp/PHBridgeVersionManager; CONFIG FULL_CONFIG getBridgeConfigurationSerializer E()Lcom/philips/lighting/hue/sdk/clip/PHBridgeConfigurationSerializer; Acom/philips/lighting/hue/sdk/clip/PHBridgeConfigurationSerializer parseBridgeSoftwareVersion -(Lorg/json/hue/JSONObject;)Ljava/lang/String; parseBridgeAPIVersion setBridgeVersion parseBridgeConfiguration M(Lorg/json/hue/JSONObject;)Lcom/philips/lighting/model/PHBridgeConfiguration; getParsingErrors ()Ljava/util/List; addAll (Ljava/util/Collection;)Z clearErrors GROUPS getGroupSerializer 7()Lcom/philips/lighting/hue/sdk/clip/PHGroupSerializer; 3com/philips/lighting/hue/sdk/clip/PHGroupSerializer parseGroups +(Lorg/json/hue/JSONObject;)Ljava/util/List; LIGHTS getLightSerializer 7()Lcom/philips/lighting/hue/sdk/clip/PHLightSerializer; 3com/philips/lighting/hue/sdk/clip/PHLightSerializer parseLights SCENES getScenesSerializer 7()Lcom/philips/lighting/hue/sdk/clip/PHSceneSerializer; 3com/philips/lighting/hue/sdk/clip/PHSceneSerializer parseScenes SCHEDULES getSchedulesSerializer :()Lcom/philips/lighting/hue/sdk/clip/PHScheduleSerializer; #com/philips/lighting/model/PHBridge getResourceCache 5()Lcom/philips/lighting/model/PHBridgeResourcesCache; 1com/philips/lighting/model/PHBridgeResourcesCache getBridgeConfiguration 4()Lcom/philips/lighting/model/PHBridgeConfiguration; getTimeZone 6com/philips/lighting/hue/sdk/clip/PHScheduleSerializer parseSchedules =(Lorg/json/hue/JSONObject;Ljava/lang/String;)Ljava/util/List; SENSORS getSensorSerializer 8()Lcom/philips/lighting/hue/sdk/clip/PHSensorSerializer; 4com/philips/lighting/hue/sdk/clip/PHSensorSerializer parseSensors RULES getRulesSerializer 6()Lcom/philips/lighting/hue/sdk/clip/PHRuleSerializer; 2com/philips/lighting/hue/sdk/clip/PHRuleSerializer
parseRules notifyParsingError (Ljava/util/List;)V getLights ()Ljava/util/Map; getGroups getSchedules getScenes
getSensors getRules clear *com/philips/lighting/hue/sdk/PHMessageType Ljava/lang/Integer; add (Ljava/lang/Object;)Z setLights (Ljava/util/Map;)V setGroups setSchedules setScenes
setSensors setRules getUsername setUserName equals setBridgeConfiguration (I)Ljava/lang/StringBuilder; notifyCacheUpdated 8(Ljava/util/List;Lcom/philips/lighting/model/PHBridge;)V printStackTrace iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object;
getIdentifier &(Ljava/lang/Object;)Ljava/lang/Object; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; getSceneIdentifier getHeartbeatManager =()Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatManager; 9com/philips/lighting/hue/sdk/heartbeat/PHHeartbeatManager disableAllHeartbeats
disconnect ((Lcom/philips/lighting/model/PHBridge;)Z removeBridge getIpAddress setIpAddress
getMacAddress
setMacAddress getBridgeID setBridgeId setUsername getConfigDetails 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; getGroupsDetail getLightsDetail getScenesDetail getSchedulesDetail getSensorsDetail getRulesDetail getBridgeDetails getBridgeDelegator >()Lcom/philips/lighting/hue/sdk/bridge/impl/PHBridgeDelegator; :com/philips/lighting/hue/sdk/bridge/impl/PHBridgeDelegator getWhitelistIdentifier getWhiteListEntries ()Ljava/util/ArrayList; getUserName
getDeviceName
getAppName R(Lcom/philips/lighting/hue/sdk/heartbeat/PHHeartbeatProcessor;Ljava/lang/String;)V start ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? z $*? *? *? *? Y? ? *+? *,? ? ? \ K M V ] ^ # _ ? $ ? ? $ ? ? $ ? ? ? ? ? ? ? L?
? *? ?*? ? +? +*?
?*? *? M>,? ?? :,? :? ? 4*? *? ? ? :+? +? ? ?
*? W? Q*? ? *? ?
:? *? ? +? +*? ? ? Y? ? *? ? ? ? ? !*,? "? >? F*? *? ? *Y? `? *? #? (*? $:+? +?
*? %:+? +? &*? ? ? ? / h j
k l n o p # t $ v ) w . x 0 y 4 | 9 } A K ? P ? U ? b ? f ? t ? y ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? f
b ? ? ? ? ? 9 ? ? ? A ? ? ? ? ? ?
? ? ? ? ? ? . ? ? ? 0 ? ? ? ? A ? ? ? ? 8
? ? ? O ? ? ? ? ? ? ? ? "!? ?? ? ? ? ? `MN:::::: ? 'Y+? (M,?$? ):
*? ? *?
*? ? +? '
? ,:,? - :,? . :
? /? :? Y? :*? ? *?
*? ? +? 5
? ,:
? )
,? 0 N
? 1:? 2 ? 3 W? 4 *? ? 5?
*? ? +? 6
? 6:
? *
,? 7 :
? 1:? 2 ? 3 W? 4 *? ? 8?
*? ? +? 6
? 9:
? *
,? : :
? 1:? 2 ? 3 W? 4 *? ? ;?
*? ? +? 6
? <:
? *
,? = :
? 1:? 2 ? 3 W? 4 *? ? >?
*? ? +? G
? ?:
? ;
,*? ? @ ? A ? B? C :
? 1:? 2 ? 3 W? 4 *? ? D?
*? ? +? 6
? E:
? *
,? F :
? 1:? 2 ? 3 W? 4 *? ? G?
*? ? +? 6
? H:
? *
,? I :
? 1:? 2 ? 3 W? 4 ? ? ?
? J*? ? @ ? K:
? L:
? M:
? N:
? O:
? P:
? Q:
? R:*? ? S *? T? "*? ? U? V W
*? W? XY? !*? Z? "*? ? [? V W
*? \? ]^? !*? _? "*? ? `? V W
*? a? bc? !*? d? "*? ? e? V W
*? f? gh? !*? i? "*? ? j? V W
*? k? lm? !* ? n? "*? ? o? V W
* ? p? qr? !-? <? s:-? t-? u?
-? v*? ? w? V Wx? !?
-? v? Y? y? *? ? ? z? ? !*? ? ? ? *? *? ? {? N-? }? :? *~?
? DG | ? ? y ? ? ? ?
?
? ? ? ? ? # ? ( ? <