Click or drag to resize

JsonDb Class

Provides an interface to the control system's JSON Database.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpJsonDb

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static class JsonDb

The JsonDb type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberSupported Returns True if JsonDb is supported on this firmware.
Top
Methods
 NameDescription
Public methodStatic memberGet(String, JsonDbeJsonDbResult) Retrieve a data item from the database.

This would be the same as calling Get(String, Boolean, JsonDbeJsonDbResult) with a false for the second parameter.

Public methodStatic memberGet(String, Boolean, JsonDbeJsonDbResult) Retrieve a data item from the database.
Public methodStatic memberIgnoreOwnSets Method to set the database to not trigger subscriptions for objects when the set comes from this process.
Public methodStatic memberReconnectSettings Method to set JsonDb reconnect parameters.
Public methodStatic memberSet(String) Set the value of a JSON object in the database.

The is the same as calling Set(String, Boolean, JsonDbeSaveType), with partial set to true and DataStored as parameters.

Public methodStatic memberSet(String, Boolean, JsonDbeSaveType) Set the value of a JSON object in the database.
Public methodStatic memberSetLoggingLevel Set the logging level of libraries this class interfaces with.
Public methodStatic memberSetTimeout Method to set JsonDb timeout parameter.
Public methodStatic memberShutdown Method to force close the JsonDb connection for this process.
Public methodStatic memberSubscribe(String, JsonDbJsonDbCallback) Method to allow for subscriptions to changes made to JSON objects in the database.

Adjust the setting IgnoreOwnSets(Boolean) as needed for this process.

Public methodStatic memberSubscribe(String, JsonDbJsonDbCallback) Method to allow for subscriptions to changes made to JSON objects in the database.

Adjust the setting IgnoreOwnSets(Boolean) as needed for this process.

Public methodStatic memberUnsubscribe(String) Method to remove the subscription for object changes in the database.
Public methodStatic memberUnsubscribe(String, JsonDbJsonDbCallback) Method to remove a callback from the subscription for object changes in the database.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also