using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public string DisplayName { get; set; }
public int EntityId { get; set; }
public string EntityType { get; set; }
public bool Active { get; set; }
public string Identifier { get; set; }
public string DisplayName { get; set; }
public string Text { get; set; }
public string Html { get; set; }
public bool IsRead { get; set; }
public bool IsFlagged { get; set; }
public bool IsDeleted { get; set; }
public int FileId { get; set; }
public string FileName { get; set; }
public int Size { get; set; }
public int Id { get; set; }
public SubmittedBy SubmittedBy { get; set; }
public DateTime SubmissionDate { get; set; }
public Comment Comment { get; set; }
public IList<File> Files { get; set; }
public Entity Entity { get; set; }
public int Status { get; set; }
public object Feedback { get; set; }
public IList<Submission> Submissions { get; set; }
public DateTime CompletionDate { get; set; }
public static void Test()
var thisasa = JsonConvert.DeserializeObject<List<Example>>(response.Content)
.Select(o => o.Entity.EntityId)
""DisplayName"": ""FullName"",
""EntityType"": ""User"",
""DisplayName"": ""FullName""
""SubmissionDate"": ""2019-08-01T15:25:04.130Z"",
""FileName"": ""1.2.10.png"",
""FileName"": ""1.3.8.png"",
""CompletionDate"": ""2019-08-01T15:25:04.130Z""
""DisplayName"": ""FullName"",
""EntityType"": ""User"",
""DisplayName"": ""FullName""
""SubmissionDate"": ""2019-08-03T03:31:43.807Z"",
""Html"": ""<p></p>\n<p>Alex</p>""
""FileName"": ""Capture 1.2.10 Questions.PNG"",
""CompletionDate"": ""2019-08-03T03:31:43.807Z""
public static void Main()
Console.WriteLine("Environment version: {0} ({1})", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription , GetNetCoreVersion());
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);
Console.WriteLine("Failed with unhandled exception: ");
public static string GetNetCoreVersion()
var assembly = typeof(System.Runtime.GCSettings).GetTypeInfo().Assembly;
var assemblyPath = assembly.CodeBase.Split(new[] { '/', '\\' }, StringSplitOptions.RemoveEmptyEntries);
int netCoreAppIndex = Array.IndexOf(assemblyPath, "Microsoft.NETCore.App");
if (netCoreAppIndex > 0 && netCoreAppIndex < assemblyPath.Length - 2)
return assemblyPath[netCoreAppIndex + 1];