Class JsonServiceOperationInfo
Represents the base class for some JsonMessages
Inheritance
System.Object
JsonServiceOperationInfo
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 JsonServiceOperationInfo
Constructors
JsonServiceOperationInfo()
Declaration
public JsonServiceOperationInfo()
Properties
ServiceOperation
Gets or sets the service operation.
Declaration
public ServiceOperation ServiceOperation { get; set; }
Property Value
| Type | Description |
|---|---|
| ServiceOperation |
StatusCode
Gets or sets the status code that would have been sent by the client.
Declaration
public int StatusCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Read(JsonReader)
Reads an instance of JsonErrorMessage that is serialized in Json
Declaration
public static JsonServiceOperationInfo Read(JsonReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonReader | reader | The reader that is used to read the Json string. |
Returns
| Type | Description |
|---|---|
| JsonServiceOperationInfo | an instance of JsonErrorMessage |
Write(JsonWriter, JsonServiceOperationInfo)
Writes the json.
Declaration
public static void Write(JsonWriter writer, JsonServiceOperationInfo jsonResult)
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonWriter | writer | The writer. |
| JsonServiceOperationInfo | jsonResult | The result of a REST query. |