MCPcopy Index your code
hub / github.com/O365/python-o365 / __init__

Method __init__

O365/message.py:101–123  ·  view source on GitHub ↗

An flag on a message Not available on Outlook Rest Api v2 (only in beta) :param parent: parent of this :type parent: Message :param dict flag_data: flag data from cloud

(self, parent, flag_data)

Source from the content-addressed store, hash-verified

99 """ A flag on a message """
100
101 def __init__(self, parent, flag_data):
102 """ An flag on a message
103 Not available on Outlook Rest Api v2 (only in beta)
104
105 :param parent: parent of this
106 :type parent: Message
107 :param dict flag_data: flag data from cloud
108 """
109 super().__init__(protocol=parent.protocol,
110 main_resource=parent.main_resource)
111
112 self.__message = parent
113
114 self.__status = Flag.from_value(flag_data.get(self._cc('flagStatus'), 'notFlagged'))
115
116 start_obj = flag_data.get(self._cc('startDateTime'), {})
117 self.__start = self._parse_date_time_time_zone(start_obj)
118
119 due_date_obj = flag_data.get(self._cc('dueDateTime'), {})
120 self.__due_date = self._parse_date_time_time_zone(due_date_obj)
121
122 completed_date_obj = flag_data.get(self._cc('completedDateTime'), {})
123 self.__completed = self._parse_date_time_time_zone(completed_date_obj)
124
125 def __repr__(self):
126 return str(self.__status)

Callers

nothing calls this directly

Calls 5

from_valueMethod · 0.80
_ccMethod · 0.80
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected