Smartswitch
Timetable.ice
Go to the documentation of this file.
1 #pragma once
2 
3 [["python:pkgdir:Smartswitch/Telephony/Forwarding"]]
4 
5 #include <Destroyable.ice>
6 #include <ArgumentException.ice>
7 
8 module Smartswitch
9 {
10  module Telephony
11  {
12  module Forwarding
13  {
17  enum DayOfWeek
18  {
26  };
27 
33  struct TimeOfDay
34  {
35  int hour;
36  int minute;
37  };
38 
54  interface Timetable extends Destroyable
55  {
62  TimeOfDay getFrom(DayOfWeek dayOfWeek);
63 
71  void setFrom(DayOfWeek dayOfWeek, TimeOfDay timeOfDay) throws ArgumentException;
72 
79  TimeOfDay getTo(DayOfWeek dayOfWeek);
80 
88  void setTo(DayOfWeek dayOfWeek, TimeOfDay timeOfDay) throws ArgumentException;
89  };
90  };
91  };
92 };
This interface allows to destroy a proxy entity at the Smartswitch side.
Definition: Destroyable.ice:12
int hour
The hour of the day.
Definition: Timetable.ice:35
int minute
The minute within the hour.
Definition: Timetable.ice:36
Used to specify time of the day.
Definition: Timetable.ice:33
Definition: AccessException.ice:7
Thrown when a user specifies wrong argument to a method.
Definition: ArgumentException.ice:12
Definition: Timetable.ice:25
Definition: Timetable.ice:23
This interface enables to set the range of time during which the ForwardingRule should be active duri...
Definition: Timetable.ice:54
DayOfWeek
Enumerated days of the week.
Definition: Timetable.ice:17
Definition: Timetable.ice:19