From 9401acbcdf26cf181ab5d4a0d6fb5b56097bb58c Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sun, 23 Aug 2020 16:16:35 +0000 Subject: [PATCH] API.pm: new helper module for Synology modules git-svn-id: https://svn.fhem.de/fhem/trunk@22654 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/lib/FHEM/SynoModules/API.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/fhem/lib/FHEM/SynoModules/API.pm b/fhem/lib/FHEM/SynoModules/API.pm index be6070989..291c1418b 100644 --- a/fhem/lib/FHEM/SynoModules/API.pm +++ b/fhem/lib/FHEM/SynoModules/API.pm @@ -41,6 +41,7 @@ our %EXPORT_TAGS = (all => [@EXPORT_OK]); my %hspecs = ( # Hash der verfügbaren API-Specs surveillance => {fn => "_staticSurveillance" }, chat => {fn => "_staticChat" }, + calendar => {fn => "_staticCalendar" }, ); ######################################################################## @@ -108,4 +109,21 @@ sub _staticChat { ## no critic "not used" return \%hapi; } +######################################################################## +# Liefert die statischen Informationen der Calendar API +######################################################################## +sub _staticCalendar { ## no critic "not used" + my %hapi = ( + INFO => { NAME => "SYNO.API.Info" }, + AUTH => { NAME => "SYNO.API.Auth" }, # API used to perform session login and logout + CAL => { NAME => "SYNO.Cal.Cal" }, # API to manipulate calendar + EVENT => { NAME => "SYNO.Cal.Event" }, # Provide methods to manipulate events in the specific calendar + SHARE => { NAME => "SYNO.Cal.Sharing" }, # Get/set sharing setting of calendar + TODO => { NAME => "SYNO.Cal.Todo" }, # Provide methods to manipulate events in the specific calendar + + ); + +return \%hapi; +} + 1; \ No newline at end of file