Skip to content

Commit 6d090a1

Browse files
ybabosiukYegor Babosiuk
and
Yegor Babosiuk
authored
Add possibility to create events with categories. (#223)
Co-authored-by: Yegor Babosiuk <[email protected]>
1 parent 6833cc6 commit 6d090a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ews/soap/builders/ews_builder.rb

+7
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,13 @@ def contacts_view!(con_view)
705705
@nbuild[NS_EWS_MESSAGES].ContactsView(attribs)
706706
end
707707

708+
# @see https://msdn.microsoft.com/en-us/library/aa565683(v=exchg.140).aspx
709+
def categories!(fa)
710+
@nbuild[NS_EWS_TYPES].Categories {
711+
@nbuild[NS_EWS_TYPES].String(fa)
712+
}
713+
end
714+
708715
# @see http://msdn.microsoft.com/en-us/library/aa579678(v=EXCHG.140).aspx
709716
def event_types!(evtypes)
710717
@nbuild[NS_EWS_TYPES].EventTypes {

0 commit comments

Comments
 (0)