2021-04-21 16:47:18 +00:00
|
|
|
"""
|
|
|
|
This module contains the main enum definitions.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import enum
|
|
|
|
|
|
|
|
|
|
|
|
class ConditionType(enum.Enum):
|
2021-05-05 17:17:32 +00:00
|
|
|
"""
|
|
|
|
Vedi `Specifica delle Conditions su
|
|
|
|
GitLab <https://gitlab.steffo.eu/nest/g2-progetto/-/wikis/Specifica-delle-Conditions>`_ .
|
|
|
|
"""
|
|
|
|
|
2021-04-21 16:47:18 +00:00
|
|
|
hashtag = 0
|
2021-05-07 01:29:59 +00:00
|
|
|
location = 1 # DEPRECATED, do not use
|
2021-04-21 16:47:18 +00:00
|
|
|
time = 2
|
2021-05-05 17:17:32 +00:00
|
|
|
coordinates = 3
|
|
|
|
place = 4
|
2021-05-07 01:29:59 +00:00
|
|
|
user = 5
|
2021-04-21 16:47:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
class OperationType(enum.Enum):
|
|
|
|
_and = 0
|
|
|
|
_or = 1
|
|
|
|
_not = 2
|
|
|
|
assign = 3
|
2021-05-06 15:20:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ConditionMode(enum.Enum):
|
|
|
|
all_or = 0
|
|
|
|
all_and = 1
|