Skip to content

Commit 611cffb

Browse files
committed
fix: added missing properties for submitted form.
1 parent 3f9ec3f commit 611cffb

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

FormitizeAPI/API/Response/SubmittedFormGetEntry.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,47 @@ public Dictionary<string, SubmittedFormAttachments> Attachments
172172
get; set;
173173
}
174174

175+
[JsonProperty(PropertyName = "dateSubmitted")]
176+
public int DateSubmittedUnixTimestamp
177+
{
178+
get; private set;
179+
}
180+
181+
public DateTime DateSubmitted
182+
{
183+
get
184+
{
185+
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(DateSubmittedUnixTimestamp);
186+
}
187+
}
188+
189+
[JsonProperty(PropertyName = "dateModified")]
190+
public int DateModifiedUnixTimestamp
191+
{
192+
get; private set;
193+
}
194+
195+
public DateTime DateModified
196+
{
197+
get
198+
{
199+
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(DateModifiedUnixTimestamp);
200+
}
201+
}
202+
203+
[JsonProperty(PropertyName = "dateCreated")]
204+
public int DateCreatedUnixTimestamp
205+
{
206+
get; private set;
207+
}
208+
209+
public DateTime DateCreated
210+
{
211+
get
212+
{
213+
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(DateCreatedUnixTimestamp);
214+
}
215+
}
216+
175217
}
176218
}

0 commit comments

Comments
 (0)