Files
Newtonsoft.Json/Src/Newtonsoft.Json.Tests/TestObjects/Shortie.cs
T
JamesNK 63160b04ff -Added documentation (gasp!)
-Fixed serialization of Uri members on Silverlight/Compact Framework
-Fixed serialization of JToken members
-Fixed (hopefully) cache threading issues
2009-06-16 09:50:59 +00:00

38 lines
871 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace Newtonsoft.Json.Tests.TestObjects
{
[XmlRoot("short")]
[JsonObject(MemberSerialization.OptIn)]
public class Shortie
{
[JsonProperty("original")]
[XmlElement("original")]
public String Original { get; set; }
[JsonProperty("shortened")]
[XmlElement("shortened")]
public String Shortened { get; set; }
[JsonProperty("short")]
[XmlElement("short")]
public String Short { get; set; }
public ShortieException Error { get; set; }
}
public class ShortieException
{
[JsonProperty("code")]
[XmlElement("code")]
public int Code { get; set; }
[JsonProperty("msg")]
[XmlElement("msg")]
public String ErrorMessage { get; set; }
}
}