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