GeometrizeTwitterBot  1.0
Python Twitter bot for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
geometrize_stream_listener.GeometrizeStreamListener Class Reference
Inheritance diagram for geometrize_stream_listener.GeometrizeStreamListener:
Inheritance graph
[legend]
Collaboration diagram for geometrize_stream_listener.GeometrizeStreamListener:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def on_connect
 
def on_timeout
 
def on_error
 
def on_status
 

Public Attributes

 on_connect_cb
 
 on_timeout_cb
 
 on_error_cb
 
 on_status_cb
 
 api
 

Constructor & Destructor Documentation

def geometrize_stream_listener.GeometrizeStreamListener.__init__ (   self,
  api 
)
7 
8  def __init__(self, api):
9  super(tweepy.StreamListener, self).__init__()
10  print("Will create Twitter stream listener")
11 
12  self.on_connect_cb = None
13  self.on_timeout_cb = None
14  self.on_error_cb = None
15  self.on_status_cb = None
16 
17  self.api = api
18 
19  print("Did create Twitter stream listener")
api
Definition: geometrize_stream_listener.py:16
on_error_cb
Definition: geometrize_stream_listener.py:13
def __init__
Definition: geometrize_stream_listener.py:7
on_timeout_cb
Definition: geometrize_stream_listener.py:12
on_status_cb
Definition: geometrize_stream_listener.py:14
on_connect_cb
Definition: geometrize_stream_listener.py:11

Member Function Documentation

def geometrize_stream_listener.GeometrizeStreamListener.on_connect (   self)
20 
21  def on_connect(self):
22  if self.on_connect_cb:
23  self.on_connect_cb(self.api)
api
Definition: geometrize_stream_listener.py:16
def on_connect
Definition: geometrize_stream_listener.py:20
on_connect_cb
Definition: geometrize_stream_listener.py:11
def geometrize_stream_listener.GeometrizeStreamListener.on_error (   self,
  code 
)
29 
30  def on_error(self, code):
31  if self.on_error_cb:
32  return self.on_error_cb(self.api, code)
33  return True
api
Definition: geometrize_stream_listener.py:16
on_error_cb
Definition: geometrize_stream_listener.py:13
def on_error
Definition: geometrize_stream_listener.py:29
def geometrize_stream_listener.GeometrizeStreamListener.on_status (   self,
  status 
)
34 
35  def on_status(self, status):
36  if self.on_status_cb:
self.on_status_cb(self.api, status)
api
Definition: geometrize_stream_listener.py:16
def on_status
Definition: geometrize_stream_listener.py:34
on_status_cb
Definition: geometrize_stream_listener.py:14
def geometrize_stream_listener.GeometrizeStreamListener.on_timeout (   self)
24 
25  def on_timeout(self):
26  if self.on_timeout_cb:
27  return self.on_timeout_cb(self.api)
28  return False
api
Definition: geometrize_stream_listener.py:16
on_timeout_cb
Definition: geometrize_stream_listener.py:12
def on_timeout
Definition: geometrize_stream_listener.py:24

Member Data Documentation

geometrize_stream_listener.GeometrizeStreamListener.api
geometrize_stream_listener.GeometrizeStreamListener.on_connect_cb
geometrize_stream_listener.GeometrizeStreamListener.on_error_cb
geometrize_stream_listener.GeometrizeStreamListener.on_status_cb
geometrize_stream_listener.GeometrizeStreamListener.on_timeout_cb

The documentation for this class was generated from the following file: