Table of Contents

Class JsonEnvironmentResult

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

Represents an instance of Environment that is used during json (de-)serialization.

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

Constructors

JsonEnvironmentResult()

public JsonEnvironmentResult()

Properties

CurrentUser

Gets or sets the current user of the DataContext.

public EntityObject CurrentUser { get; set; }

Property Value

EntityObject

Error

Gets or sets the error.

public JsonErrorMessage Error { get; set; }

Property Value

JsonErrorMessage

The error.

GlobalSettings

Gets or sets the current global settings of the DataContext.

public EntityObject GlobalSettings { get; set; }

Property Value

EntityObject

NamedSets

Gets or sets a collection of named sets.

public IDictionary<string, NamedSet> NamedSets { get; set; }

Property Value

IDictionary<String, NamedSet>

Methods

ReadEnvironmentResult(JsonReader, Model, Environment)

Reads an instance of EntityObject that is serialized in Json

public static JsonEnvironmentResult ReadEnvironmentResult(JsonReader reader, Model model, Environment environment)

Parameters

reader JsonReader

The reader that is used to read the Json string.

model Model

The model used to deserialize entity objects.

environment Environment

The current environment.

Returns

JsonEnvironmentResult

an instance of EntityObject

ReadNamedSets(JsonReader, Model, Environment)

Reads the a named set

public static Dictionary<string, NamedSet> ReadNamedSets(JsonReader reader, Model model, Environment environment)

Parameters

reader JsonReader

the reader to read from.

model Model

the model to use for reading.

environment Environment

the environment used for reading.

Returns

Dictionary<String, NamedSet>

Returns a new dictionary containing the named sets.

Write(JsonWriter, JsonEnvironmentResult, Model)

Writes the json.

public static void Write(JsonWriter writer, JsonEnvironmentResult environmentResult, Model model)

Parameters

writer JsonWriter

The writer.

environmentResult JsonEnvironmentResult

The result of a REST query.

model Model

the model used for writing.