using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
var dictionary = new Dictionary<Type, string>{
{ typeof(string), "'string'" },
{ typeof(int), "'int'" },
{ typeof(float), "'float'" }
var props = typeof(AppRequest).GetProperties().ToList();
if (p.PropertyType == typeof(string)){
Console.WriteLine(p.Name.ToCameCase() + " " + dictionary[p.PropertyType]);
if (p.PropertyType == typeof(int)){
Console.WriteLine(p.Name.ToCameCase() + " " + dictionary[p.PropertyType]);
if (p.PropertyType.IsClass){
var baseName = p.Name.ToCameCase();
var intProps = p.PropertyType.GetProperties().ToList();
Console.WriteLine(baseName + "/" + pp.Name.ToCameCase() + " " + dictionary[pp.PropertyType]);
public static class StringExtensions
public static string ToCameCase(this string src)
return src.Substring(0, 1).ToLowerInvariant() + src.Substring(1);
public string Id { get; set; }
public string Type { get; set; }
public int Count { get; set; }
[JsonProperty("timestamp")]
public string Timestamp { get; set; }
[JsonProperty("operation")]
public Operation Operation { get; set; }
[JsonProperty("session")]
public Session Session { get; set; }
public User User { get; set; }
public Cloud Cloud { get; set; }
public Ai Ai { get; set; }
[JsonProperty("request")]
public Request Request { get; set; }
[JsonProperty("application")]
public Application Application { get; set; }
public RequestClient Client { get; set; }
public string Name { get; set; }
public class RequestClient
public string Model { get; set; }
public string Os { get; set; }
public string Type { get; set; }
[JsonProperty("browser")]
public string Browser { get; set; }
public string Ip { get; set; }
public string City { get; set; }
[JsonProperty("stateOrProvince")]
public string StateOrProvince { get; set; }
[JsonProperty("countryOrRegion")]
public string CountyOrRegion { get; set; }
public string Name { get; set; }
public string Url { get; set; }
[JsonProperty("success")]
public string Success { get; set; }
[JsonProperty("duration")]
public float Duration { get; set; }
[JsonProperty("performanceBucket")]
public string PerformanceBucket { get; set; }
[JsonProperty("resultCode")]
public string ResultCode { get; set; }
public string Source { get; set; }
public string Id { get; set; }
public string Id { get; set; }
[JsonProperty("accountId")]
public string AccountId { get; set; }
[JsonProperty("authenticatedId")]
public string AuthenticatedId { get; set; }
public string Id { get; set; }
[JsonProperty("roleName")]
public string RoleName { get; set; }
[JsonProperty("roleInstance")]
public string RoleInstance { get; set; }
public string IKey { get; set; }
[JsonProperty("appName")]
public string AppName { get; set; }
public string AppId { get; set; }
[JsonProperty("sdkVersion")]
public string SdkVersion { get; set; }
[JsonProperty("version")]
public string Version { get; set; }