XmlRoot message public class Message XmlAttribute to public string To

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
[XmlRoot ("message")]
public class Message
{
[XmlAttribute ("to")]
public string To;
[XmlAttribute ("from")]
public string From;
[XmlAttribute ("type")]
public string Type;
[XmlAttribute ("xml:lang")]
public string Language;
[XmlElement ("body")]
public string Body;
}