2016-11-26 23:09:12 -06:00
|
|
|
class Forum (object):
|
|
|
|
def __init__ (self, title=None):
|
|
|
|
self.title = title
|
|
|
|
self.users = []
|
|
|
|
self.categories = []
|
|
|
|
|
|
|
|
class Post (object):
|
2016-11-27 00:42:27 -06:00
|
|
|
def __init__ (self, title=None, body=None, author=None, timestamp=None):
|
2016-11-26 23:09:12 -06:00
|
|
|
self.title = title
|
|
|
|
self.body = body
|
|
|
|
self.author = author
|
2016-11-27 00:42:27 -06:00
|
|
|
self.timestamp = timestamp
|
2016-11-26 23:09:12 -06:00
|
|
|
|
|
|
|
class Thread (object):
|
|
|
|
def __init__ (self, title=None):
|
|
|
|
self.title = title
|
|
|
|
self.children = []
|
|
|
|
|
|
|
|
class User (object):
|
|
|
|
def __init__ (self, name=None, signature=None):
|
|
|
|
self.name = name
|
|
|
|
self.signature = signature
|
|
|
|
|
|
|
|
class Category (object):
|
|
|
|
def __init__ (self, title=None, description=None):
|
|
|
|
self.title = title
|
|
|
|
self.description = description
|
|
|
|
self.children = []
|
|
|
|
|
|
|
|
class Board (object):
|
|
|
|
def __init__ (self, title=None, description=None):
|
|
|
|
self.title = title
|
|
|
|
self.description = description
|
|
|
|
self.children = []
|