2018-01-18 10:41:08 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2018-09-13 15:33:33 +00:00
|
|
|
|
2018-01-18 10:41:08 +00:00
|
|
|
class Report(object):
|
|
|
|
"""
|
|
|
|
A ticketfrei report object.
|
|
|
|
|
|
|
|
Toots, Tweets, and E-Mails can be formed into ticketfrei reports.
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, author, source, text, id, timestamp):
|
|
|
|
"""
|
|
|
|
Constructor of a ticketfrei report
|
|
|
|
|
|
|
|
:param author: username of the author
|
2018-04-15 09:26:48 +00:00
|
|
|
:param source: mastodon, twitter, or email bot object
|
2018-01-18 10:41:08 +00:00
|
|
|
:param text: the text of the report
|
|
|
|
:param id: id in the network
|
|
|
|
:param timestamp: time of the report
|
|
|
|
"""
|
|
|
|
self.author = author
|
2018-08-08 12:04:31 +00:00
|
|
|
self.source = source
|
2018-01-18 10:41:08 +00:00
|
|
|
self.text = text
|
|
|
|
self.timestamp = timestamp
|
|
|
|
self.id = id
|