Skip to content

Commit d23749e

Browse files
committed
Fix the list of Availability and Activity for preferred status
1 parent 55436dd commit d23749e

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

O365/teams.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ class Activity(Enum):
2929
AWAY = "Away"
3030
PRESENTING = "Presenting"
3131

32+
class PreferredAvailability(Enum):
33+
"""Valid values for Availability."""
34+
35+
AVAILABLE = "Available"
36+
BUSY = "Busy"
37+
DONOTDISTURB = "DoNotDisturb"
38+
BERIGHTBACK = "BeRightBack"
39+
AWAY = "Away"
40+
OFFLINE = "Offline"
41+
42+
43+
class PreferredActivity(Enum):
44+
"""Valid values for Activity."""
45+
46+
AVAILABLE = "Available"
47+
BUSY = "Busy"
48+
DONOTDISTURB = "DoNotDisturb"
49+
BERIGHTBACK = "BeRightBack"
50+
AWAY = "Away"
51+
OFFWORK = "OffWork"
3252

3353
class ConversationMember(ApiComponent):
3454
""" A Microsoft Teams conversation member """
@@ -781,8 +801,8 @@ def set_my_presence(
781801

782802
def set_my_user_preferred_presence(
783803
self,
784-
availability: Availability,
785-
activity: Activity,
804+
availability: PreferredAvailability,
805+
activity: PreferredActivity,
786806
expiration_duration,
787807
):
788808
"""Sets my user preferred presence status

0 commit comments

Comments
 (0)