mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
62 lines
1.2 KiB
Python
62 lines
1.2 KiB
Python
#!/bin/python
|
|
#
|
|
# Cryptonote tipbot - network
|
|
# Copyright 2015 moneromooo
|
|
#
|
|
# The Cryptonote tipbot is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as published
|
|
# by the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
|
|
from link import Link
|
|
from user import User
|
|
from group import Group
|
|
|
|
class Network:
|
|
def __init__(self,name):
|
|
self.name=name
|
|
|
|
def connect(self):
|
|
pass
|
|
|
|
def disconnect(self):
|
|
pass
|
|
|
|
def send_group(self,group,msg,data=None):
|
|
pass
|
|
|
|
def send_user(self,user,msg,data=None):
|
|
pass
|
|
|
|
def identify(self,link):
|
|
pass
|
|
|
|
def dump_users(self):
|
|
pass
|
|
|
|
def set_callbacks(self,on_command,on_identified,on_event):
|
|
self.on_command=on_command
|
|
self.on_identified=on_identified
|
|
self.on_event=on_event
|
|
|
|
def get_last_active_time(self,user_name,group_name=None):
|
|
return None
|
|
|
|
def get_active_users(self,seconds,group_name=None):
|
|
return []
|
|
|
|
def get_users(self,group_name=None):
|
|
return []
|
|
|
|
def update_users_list(self,group_name=None):
|
|
pass
|
|
|
|
def canonicalize(self,name):
|
|
return name
|
|
|
|
def update(self):
|
|
return True
|
|
|
|
def quit(self,msg=None):
|
|
pass
|