summaryrefslogtreecommitdiff
path: root/Juick/Api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2012-02-11 22:22:50 +0400
committerGravatar Vitaly Takmazov2012-02-11 22:22:50 +0400
commit49eb44f852ab21e72c17bbc436ffa79525a1aba3 (patch)
tree249cd1d69dc8078104dc2bc35cfcbbce98cd85f4 /Juick/Api
v 0.999 :)
Diffstat (limited to 'Juick/Api')
-rw-r--r--Juick/Api/Message.cs27
-rw-r--r--Juick/Api/User.cs21
2 files changed, 48 insertions, 0 deletions
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;
+ }
+}