NotificationDescriptor Class
Defined in:
Module: Model
/private/var/user/Documents/App/Hybrid/JavaScript/Siminov/Model/NotificationDescriptor.js:48
Exposes methods to GET and SET Notification Descriptor information as per define in ApplicationDescriptor.xml file by application.
Example:
<siminov>
<!-- General Application Description Properties -->
<!-- Mandatory Field -->
<property name="name">application_name</property>
<!-- Optional Field -->
<property name="description">application_description</property>
<!-- Mandatory Field (Default is 0.0) -->
<property name="version">application_version</property>
<!-- Siminov Framework Performance Properties -->
<!-- Optional Field (Default is true)-->
<property name="load_initially">true/false</property>
<!-- Database Descriptors Used By Application (zero-to-many) -->
<!-- Optional Field's -->
<database-descriptors>
<database-descriptor>full_path_of_database_descriptor_file</database-descriptor>
</database-descriptors>
<!-- Services -->
<service-descriptors>
<!-- Service -->
<service-descriptor>full_path_of_service</service-descriptor>
</service-descriptors>
<!-- Sync Handlers -->
<!-- Sync Handler -->
<sync-descriptors>
<sync-descriptor>
<!-- Mandatory Field -->
<property name="name">name_of_sync_handler</property>
<!-- Optional Field -->
<property name="sync_interval">sync_interval_in_millisecond</property>
<!-- Optional Field -->
<!-- Default: SCREEN -->
<property name="type">INTERVAL|SCREEN</property>
<!-- Services -->
<!-- Service -->
<services>
<service>name_of_service.name_of_api</service>
</services>
</sync-descriptor>
</sync-descriptors>
<!-- Push Notification -->
<notification-descriptor>
<!-- Optional Field -->
<property name="name_of_property">value_of_property</property>
</notification-descriptor>
<adapter-descriptors>
<!-- Adapter Paths -->
<adapter-descriptor>adapter_path</adapter-descriptor>
</adapter-descriptors>
<!-- Library Descriptors Used By Application (zero-to-many) -->
<!-- Optional Field's -->
<library-descriptors>
<library-descriptor>full_path_of_library_descriptor_file</library-descriptor>
</library-descriptors>
<!-- Event Handlers Implemented By Application (zero-to-many) -->
<!-- Optional Field's -->
<event-handlers>
<event-handler>full_java_class_path_of_event_handler/javascript_class_path_of_event_handler (ISiminovHandler/IDatabaseHandler)</event-handler>
</event-handlers>
</siminov>
Item Index
Methods
addProperty
(
-
name
-
value
Add Property in property pool.
containProperty
(
Boolean
-
name
Check whether Property exist or not.
Parameters:
-
name
StringName of Property.
Returns:
Boolean:
true/false, TRUE if property exist, FALSE if property does not exist.
getProperties
()
Array
Get all Properties defined in descriptor.
Returns:
Array:
All Property Values.
getProperty
(
String
-
name
Get Property based on name provided.
Parameters:
-
name
StringName of Property.
Returns:
String:
Property value.
removeProperty
(
-
name
Remove Property from property pool.
Parameters:
-
name
StringName of Property.