Adding
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace LCU.API.Internal.Operations.IncentiveApi.Models.Dayforce;
|
||||
|
||||
[DataContract]
|
||||
public class Report
|
||||
{
|
||||
|
||||
[DataMember(Name = "XRefCode", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "XRefCode")]
|
||||
public string XRefCode { get; set; }
|
||||
|
||||
[DataMember(Name = "Rows", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "Rows")]
|
||||
public List<Dictionary<String, string>> Rows { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Report {\n");
|
||||
sb.Append(" XRefCode: ").Append(XRefCode).Append("\n");
|
||||
sb.Append(" Rows: ").Append(Rows).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user