Skip to content

Commit 89d99b2

Browse files
committed
ews: calendar items - handle attendees in de- and serialization
1 parent 1755205 commit 89d99b2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

exch/ews/serialization.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,9 @@ tCalendarItem::tCalendarItem(const tinyxml2::XMLElement* xml) :
647647
XMLINIT(IsResponseRequested),
648648
XMLINIT(MyResponseType),
649649
XMLINIT(Organizer),
650-
// XMLINIT(RequiredAttendees),
651-
// XMLINIT(OptionalAttendees),
652-
// XMLINIT(Resources),
650+
XMLINIT(RequiredAttendees),
651+
XMLINIT(OptionalAttendees),
652+
XMLINIT(Resources),
653653
XMLINIT(AppointmentReplyTime),
654654
XMLINIT(AppointmentSequenceNumber),
655655
XMLINIT(AppointmentState),
@@ -1341,6 +1341,14 @@ void tSingleRecipient::serialize(XMLElement* xml) const
13411341
XMLDUMPT(Mailbox);
13421342
}
13431343

1344+
tAttendee::tAttendee(const tinyxml2::XMLElement* xml) :
1345+
XMLINIT(Mailbox),
1346+
XMLINIT(ResponseType),
1347+
XMLINIT(LastResponseTime),
1348+
XMLINIT(ProposedStart),
1349+
XMLINIT(ProposedEnd)
1350+
{}
1351+
13441352
void tAttendee::serialize(XMLElement* xml) const
13451353
{
13461354
XMLDUMPT(Mailbox);

exch/ews/structures.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@ struct tAttendee : public NS_EWS_Types {
14101410

14111411
tAttendee() = default;
14121412
explicit tAttendee(const TPROPVAL_ARRAY&);
1413+
explicit tAttendee(const tinyxml2::XMLElement*);
14131414
};
14141415

14151416
/**

0 commit comments

Comments
 (0)