예제 #1
0
 internal void Write(JsonWriter json)
 {
     Debug.Assert(user_id != null && session_id != null && build != null);
     json.AppendProperty("user_id", user_id)
     .AppendProperty("build", build)
     .AppendProperty("session_id", session_id);
 }
예제 #2
0
            // Add other fields if needed.

            internal void Write(JsonWriter json)
            {
                if (!string.IsNullOrWhiteSpace(platform))
                {
                    json.AppendProperty("platform", platform);
                }
                if (!string.IsNullOrWhiteSpace(device))
                {
                    json.AppendProperty("device", device);
                }
                if (!string.IsNullOrWhiteSpace(os_major))
                {
                    json.AppendProperty("os_major", os_major);
                }
                if (!string.IsNullOrWhiteSpace(os_minor))
                {
                    json.AppendProperty("os_minor", os_minor);
                }
            }
예제 #3
0
 internal void Write(JsonWriter json)
 {
     if (!string.IsNullOrWhiteSpace(area))
     {
         json.AppendProperty("area", area);
     }
     if (x.HasValue)
     {
         json.AppendProperty("x", x.Value);
     }
     if (y.HasValue)
     {
         json.AppendProperty("y", y.Value);
     }
     if (z.HasValue)
     {
         json.AppendProperty("z", z.Value);
     }
 }
예제 #4
0
 internal void Write(JsonWriter json)
 {
     Debug.Assert(!string.IsNullOrWhiteSpace(message));
     json.AppendProperty("severity", GetSeverityString(severity))
     .AppendProperty("message", message);
 }