MCPcopy Create free account
hub / github.com/Syncplay/syncplay / isGUIUser

Method isGUIUser

syncplay/server.py:815–820  ·  view source on GitHub ↗
(self, clientFeatures)

Source from the content-addressed store, hash-verified

813 self._connector.sendList()
814
815 def isGUIUser(self, clientFeatures):
816 clientFeatures = self._connector.getFeatures()
817 uiMode = clientFeatures["uiMode"] if "uiMode" in clientFeatures else constants.UNKNOWN_UI_MODE
818 if uiMode == constants.UNKNOWN_UI_MODE:
819 uiMode = constants.FALLBACK_ASSUMED_UI_MODE
820 return uiMode == constants.GRAPHICAL_UI_MODE
821
822 def supportsFeature(self, clientFeature):
823 clientFeatures = self._connector.getFeatures()

Callers 2

sendListMethod · 0.95
sendListMethod · 0.80

Calls 1

getFeaturesMethod · 0.45

Tested by

no test coverage detected