Add the Response model

This is to store RSVPs.
This commit is contained in:
Gergely Polonkai 2018-07-08 18:52:35 +02:00
parent 3308be40ee
commit 06c7b2ea52

View File

@ -103,6 +103,24 @@ class ResponseType(Enum):
return Enum.__eq__(self, other)
class EventAvailability(Enum):
free = 0
busy = 1
class UserAvailability(EventAvailability):
tentative = 2
class ResponseVisibility(Enum):
private = 0
organisers = 1
attendees = 2
followers = 3
friends = 4
public = 5
class SettingsProxy:
"""Proxy object to get settings for a user
"""