From 6d090a1d018575942777eb10f8d5fcbe1510224c Mon Sep 17 00:00:00 2001 From: ybabosiuk Date: Mon, 8 Jul 2024 23:47:58 +0300 Subject: [PATCH] Add possibility to create events with categories. (#223) Co-authored-by: Yegor Babosiuk --- lib/ews/soap/builders/ews_builder.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ews/soap/builders/ews_builder.rb b/lib/ews/soap/builders/ews_builder.rb index f401c9f9..d337bb79 100644 --- a/lib/ews/soap/builders/ews_builder.rb +++ b/lib/ews/soap/builders/ews_builder.rb @@ -705,6 +705,13 @@ def contacts_view!(con_view) @nbuild[NS_EWS_MESSAGES].ContactsView(attribs) end + # @see https://msdn.microsoft.com/en-us/library/aa565683(v=exchg.140).aspx + def categories!(fa) + @nbuild[NS_EWS_TYPES].Categories { + @nbuild[NS_EWS_TYPES].String(fa) + } + end + # @see http://msdn.microsoft.com/en-us/library/aa579678(v=EXCHG.140).aspx def event_types!(evtypes) @nbuild[NS_EWS_TYPES].EventTypes {