Class EntitySetting
- Namespace
- Geotab.Checkmate.ObjectModel.EntitySettings
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents a entity-linked setting in JSON format. Every setting has an specific key.
public class EntitySetting : Entity, IEntity, IComparable, IIdentifiable, IAddInDataProvider
- Inheritance
-
EntitySetting
- Implements
- Derived
- Inherited Members
Constructors
EntitySetting()
Initializes a new instance of the EntitySetting class.
public EntitySetting()
EntitySetting(Id?, string?, EntityType?, Id?, string?, AddInData?)
Initializes a new instance of the EntitySetting class.
public EntitySetting(Id? id, string? key, EntityType? entityType, Id? entityId, string? settingValue, AddInData? data)
Parameters
id
IdThe identifier.
key
stringThe key of this setting.
entityType
EntityType?Type of entity this setting is linked to.
entityId
IdIdentifier of the entity this setting is linked to.
settingValue
stringThe value of the setting as a JSON string.
data
AddInDataThe AddInData row where the value of this setting is stored.
Properties
Data
Gets or sets the AddInData for this setting.
public AddInData? Data { get; set; }
Property Value
EntityId
Gets or sets the entity identifier of this setting.
public Id? EntityId { get; set; }
Property Value
EntityType
Gets or sets the entity type of this setting.
public EntityType? EntityType { get; set; }
Property Value
- EntityType?
The EntityType.
Key
Gets or sets the key for this setting.
public string? Key { get; set; }
Property Value
- string
The key.
SettingValue
Gets or sets the setting value of this setting.
public string? SettingValue { get; set; }
Property Value
- string
The setting value as a JSON string.
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
ToString()
Returns a string that represents this instance.
public override string ToString()