From 06c7b2ea529bc725f776dde976c4e71485b90b02 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 8 Jul 2018 18:52:35 +0200 Subject: [PATCH] Add the Response model This is to store RSVPs. --- calsocial/models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/calsocial/models.py b/calsocial/models.py index 9ac6220..f3dbd29 100644 --- a/calsocial/models.py +++ b/calsocial/models.py @@ -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 """