Table of Contents

Class EntityObjectJsonConverter.JsonSchemaProperty

Namespace
TimeCockpit.Data.JsonConverters
Assembly
TimeCockpit.Data.dll

class describing a property in the json schema

public class JsonSchemaProperty
Inheritance
Object
EntityObjectJsonConverter.JsonSchemaProperty
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

JsonSchemaProperty(String, Int32, EntityObjectJsonConverter.ToJson, EntityObjectJsonConverter.FromJson)

Initializes a new instance of the JsonSchemaProperty class.

public JsonSchemaProperty(string name, int contentMapIndex, EntityObjectJsonConverter.ToJson toJson, EntityObjectJsonConverter.FromJson fromJson)

Parameters

name String

name of the property.

contentMapIndex Int32

index into the content map

toJson EntityObjectJsonConverter.ToJson

functor converting to json compatible object.

fromJson EntityObjectJsonConverter.FromJson

functor converting from json.

Properties

ContentMapIndex

Gets the index in the content map of the entity object.

public int ContentMapIndex { get; }

Property Value

Int32

FromJson

Gets a conversion functor that converts to an object from an json object.

public EntityObjectJsonConverter.FromJson FromJson { get; }

Property Value

EntityObjectJsonConverter.FromJson

Name

Gets the (full) name of the property.

public string Name { get; }

Property Value

String

ToJson

Gets a conversion functor that converts an object to a json compatible object.

public EntityObjectJsonConverter.ToJson ToJson { get; }

Property Value

EntityObjectJsonConverter.ToJson