Table of Contents

Class JsonActionResponse

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

Represents the response of a successfully executed action

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

Constructors

JsonActionResponse()

Initializes a new instance of the JsonActionResponse class.

public JsonActionResponse()

Properties

Error

Gets or sets the error.

public JsonErrorMessage Error { get; set; }

Property Value

JsonErrorMessage

The error.

ModifiedInputSet

Gets or sets the input set that was used as input to the action, but contains possible modifications by actions.

public IEnumerable<EntityObject> ModifiedInputSet { get; set; }

Property Value

IEnumerable<EntityObject>

Output

Gets or sets the output.

public string Output { get; set; }

Property Value

String

The output.

Methods

Read(JsonReader, Model, Environment)

Reads the json action resposne.

public static JsonActionResponse Read(JsonReader reader, Model model, Environment environment)

Parameters

reader JsonReader

The reader that reads json.

model Model

The model to deserialze the inputset.

environment Environment

The environment.

Returns

JsonActionResponse

An instance of JsonActionResponse.

Write(JsonWriter, Model, JsonActionResponse, IEnumerable<ModelEntityBase>)

Writes the json action response.

public static void Write(JsonWriter writer, Model model, JsonActionResponse actionResponse, IEnumerable<ModelEntityBase> anonTypes)

Parameters

writer JsonWriter

The writer that writes json.

model Model

The model.

actionResponse JsonActionResponse

The select response.

anonTypes IEnumerable<ModelEntityBase>

anonymous types.