MCPcopy
hub / github.com/tgalal/yowsup / receive

Method receive

yowsup/layers/interface/interface.py:76–82  ·  view source on GitHub ↗
(self, entity)

Source from the content-addressed store, hash-verified

74 self.toLower(data)
75
76 def receive(self, entity):
77 if not self.processIqRegistry(entity):
78 entityType = entity.getTag()
79 if entityType in self.entity_callbacks:
80 self.entity_callbacks[entityType](entity)
81 else:
82 self.toUpper(entity)
83
84 @ProtocolEntityCallback("stream:error")
85 def onStreamError(self, streamErrorEntity):

Callers

nothing calls this directly

Calls 3

processIqRegistryMethod · 0.95
getTagMethod · 0.80
toUpperMethod · 0.80

Tested by

no test coverage detected