From 49eb44f852ab21e72c17bbc436ffa79525a1aba3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 11 Feb 2012 22:22:50 +0400 Subject: v 0.999 :) --- Juick/Api/Message.cs | 27 +++++++++++++++++++++++++++ Juick/Api/User.cs | 21 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Juick/Api/Message.cs create mode 100644 Juick/Api/User.cs (limited to 'Juick/Api') diff --git a/Juick/Api/Message.cs b/Juick/Api/Message.cs new file mode 100644 index 0000000..b4d4ddc --- /dev/null +++ b/Juick/Api/Message.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Json; + +namespace Juick.Api +{ + [DataContract] + public class Message + { + [DataMember] public int mid; + [DataMember] public int rid; + [DataMember] public string body; + [DataMember] public User user; + [DataMember] public DateTime timestamp; + [DataMember] public int replies; + } +} diff --git a/Juick/Api/User.cs b/Juick/Api/User.cs new file mode 100644 index 0000000..f7bd6eb --- /dev/null +++ b/Juick/Api/User.cs @@ -0,0 +1,21 @@ +using System; +using System.Net; +using System.Runtime.Serialization; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; + +namespace Juick.Api +{ + [DataContract] + public class User + { + [DataMember] public int uid; + [DataMember] public string uname; + } +} -- cgit v1.2.3