using Newtonsoft.Json;
namespace Stratum
{
///
/// Represents a Stratum Response
///
[JsonObject(MemberSerialization.OptIn)]
public class StratumResponse
{
///
/// Response id, should be null or identical to request id
///
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
///
/// Result object
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "result")]
public object Result { get; set; }
///
/// Error object
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "error")]
public StratumException Error { get; set; }
}
///
/// Represents a Stratum Response
///
[JsonObject(MemberSerialization.OptIn)]
public class StratumResponse
{
///
/// Response id, should be null or identical to request id
///
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
///
/// Result object
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "result")]
public T Result { get; set; }
///
/// Error object
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "error")]
public StratumException Error { get; set; }
}
}