2222* @license https://opensource.org/licenses/MIT MIT License
2323* @link https://graph.microsoft.com
2424*/
25- class CommsApplication extends
25+ class CommsApplication implements \JsonSerializable
2626{
27+ /**
28+ * The array of properties available
29+ * to the model
30+ *
31+ * @var array(string => string)
32+ */
33+ protected $ _propDict ;
34+
35+ /**
36+ * Construct a new CommsApplication
37+ *
38+ * @param array $propDict A list of properties to set
39+ */
40+ function __construct ($ propDict = array ())
41+ {
42+ $ this ->_propDict = $ propDict ;
43+ }
44+
45+ /**
46+ * Gets the property dictionary of the CommsApplication
47+ *
48+ * @return array The list of properties
49+ */
50+ public function getProperties ()
51+ {
52+ return $ this ->_propDict ;
53+ }
54+
2755
2856 /**
2957 * Gets the calls
@@ -80,4 +108,45 @@ public function setOnlineMeetings($val)
80108 return $ this ;
81109 }
82110
111+ /**
112+ * Gets the ODataType
113+ *
114+ * @return string The ODataType
115+ */
116+ public function getODataType ()
117+ {
118+ return $ this ->_propDict ["@odata.type " ];
119+ }
120+
121+ /**
122+ * Sets the ODataType
123+ *
124+ * @param string The ODataType
125+ *
126+ * @return Entity
127+ */
128+ public function setODataType ($ val )
129+ {
130+ $ this ->_propDict ["@odata.type " ] = $ val ;
131+ return $ this ;
132+ }
133+
134+ /**
135+ * Serializes the object by property array
136+ * Manually serialize DateTime into RFC3339 format
137+ *
138+ * @return array The list of properties
139+ */
140+ public function jsonSerialize ()
141+ {
142+ $ serializableProperties = $ this ->getProperties ();
143+ foreach ($ serializableProperties as $ property => $ val ) {
144+ if (is_a ($ val , "\DateTime " )) {
145+ $ serializableProperties [$ property ] = $ val ->format (\DateTime::RFC3339 );
146+ } else if (is_a ($ val , "\Microsoft\Graph\Core\Enum " )) {
147+ $ serializableProperties [$ property ] = $ val ->value ();
148+ }
149+ }
150+ return $ serializableProperties ;
151+ }
83152}
0 commit comments