Class EntityObjectJsonConverter.JsonSchemaProperty
class describing a property in the json schema
Inheritance
System.Object
EntityObjectJsonConverter.JsonSchemaProperty
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.JsonConverters
Assembly: TimeCockpit.Data.dll
Syntax
public class JsonSchemaProperty
Constructors
JsonSchemaProperty(String, Int32, EntityObjectJsonConverter.ToJson, EntityObjectJsonConverter.FromJson)
Initializes a new instance of the JsonSchemaProperty class.
Declaration
public JsonSchemaProperty(string name, int contentMapIndex, EntityObjectJsonConverter.ToJson toJson, EntityObjectJsonConverter.FromJson fromJson)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | name of the property. |
| System.Int32 | contentMapIndex | index into the content map |
| EntityObjectJsonConverter.ToJson | toJson | functor converting to json compatible object. |
| EntityObjectJsonConverter.FromJson | fromJson | functor converting from json. |
Properties
ContentMapIndex
Gets the index in the content map of the entity object.
Declaration
public int ContentMapIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
FromJson
Gets a conversion functor that converts to an object from an json object.
Declaration
public EntityObjectJsonConverter.FromJson FromJson { get; }
Property Value
| Type | Description |
|---|---|
| EntityObjectJsonConverter.FromJson |
Name
Gets the (full) name of the property.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ToJson
Gets a conversion functor that converts an object to a json compatible object.
Declaration
public EntityObjectJsonConverter.ToJson ToJson { get; }
Property Value
| Type | Description |
|---|---|
| EntityObjectJsonConverter.ToJson |