using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace LucasWorkflowAssemblies { /// /// This class is used for deserializing the JSON response from the endpoint. /// [DataContract] //DataContract decoration necessary for serialization/deserialization to work properly public class MyJsonResponse { /// /// This property holds the value of "output1" /// [DataMember(Name = "output1")] //datamember name value indicates name of json field to which data will be serialized/from which data will be deserialized public string Output1 { get; set; } /// /// This property holds the value of "output2" /// [DataMember(Name = "output2")] public string Output2 { get; set; } /// /// Constructor /// public MyJsonResponse() { } } /// /// This class is used for serializing the JSON request to the endpoint. /// [DataContract] //DataContract decoration necessary for serialization/deserialization to work properly public class MyJsonRequest { /// /// This property holds the value of "input1" /// [DataMember(Name = "input1")] //datamember name value indicates name of json field to which data will be serialized/from which data will be deserialized public string Input1 { get; set; } /// /// This property holds the value of "input2" /// [DataMember(Name = "input2")] public string Input2 { get; set; } /// /// Constructor /// public MyJsonRequest() { } } }