Class JsonSelectResponse
- Namespace
- TimeCockpit.Data.JsonConverters
- Assembly
- TimeCockpit.Data.dll
Represents a respones from a select method
public class JsonSelectResponse
- Inheritance
-
ObjectJsonSelectResponse
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
JsonSelectResponse()
Initializes a new instance of the JsonSelectResponse class.
public JsonSelectResponse()
Properties
EntityObjectList
Gets or sets the items.
public JsonEntityObjectList EntityObjectList { get; set; }
Property Value
- JsonEntityObjectList
The items.
Error
Gets or sets the error message.
public JsonErrorMessage Error { get; set; }
Property Value
- JsonErrorMessage
The error message.
ServiceOperationInfo
Gets or sets the service operation info.
public JsonServiceOperationInfo ServiceOperationInfo { get; set; }
Property Value
- JsonServiceOperationInfo
The service operation info.
Methods
Read(JsonReader, Model, Environment)
Reads an instance of EntityObject that is serialized in Json
public static JsonSelectResponse Read(JsonReader reader, Model model, Environment environment)
Parameters
readerJsonReaderThe reader that is used to read the Json string.
modelModelThe current DataContext model.
environmentEnvironmentthe Current DataContext Environment.
Returns
- JsonSelectResponse
an instance of EntityObject
Write(JsonWriter, Model, JsonSelectResponse)
Writes the select response.
public static void Write(JsonWriter writer, Model model, JsonSelectResponse selectResponse)
Parameters
writerJsonWriterThe writer that writes json.
modelModelThe model.
selectResponseJsonSelectResponseThe select response.