Class JsonActionResponse
- Namespace
- TimeCockpit.Data.JsonConverters
- Assembly
- TimeCockpit.Data.dll
Represents the response of a successfully executed action
public class JsonActionResponse
- Inheritance
-
ObjectJsonActionResponse
- 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
readerJsonReaderThe reader that reads json.
modelModelThe model to deserialze the inputset.
environmentEnvironmentThe 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
writerJsonWriterThe writer that writes json.
modelModelThe model.
actionResponseJsonActionResponseThe select response.
anonTypesIEnumerable<ModelEntityBase>anonymous types.