From 7eb3fc7465c038de80e140f6956999aeb035505a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 8 Feb 2013 02:03:05 +0400 Subject: Move Juick.Api out to Portable Library --- Juick.sln | 10 ++++-- Juick/Api/Message.cs | 28 --------------- Juick/Api/Photo.cs | 20 ----------- Juick/Api/User.cs | 21 ----------- Juick/Juick.csproj | 11 +++--- Juick/ViewModels/MessageListViewModelBase.cs | 5 ++- Juick/ViewModels/MessageViewModel.cs | 5 ++- JuickApi/JuickApi.csproj | 52 ++++++++++++++++++++++++++++ JuickApi/Message.cs | 16 +++++++++ JuickApi/Photo.cs | 9 +++++ JuickApi/Properties/AssemblyInfo.cs | 30 ++++++++++++++++ JuickApi/User.cs | 9 +++++ 12 files changed, 135 insertions(+), 81 deletions(-) delete mode 100644 Juick/Api/Message.cs delete mode 100644 Juick/Api/Photo.cs delete mode 100644 Juick/Api/User.cs create mode 100644 JuickApi/JuickApi.csproj create mode 100644 JuickApi/Message.cs create mode 100644 JuickApi/Photo.cs create mode 100644 JuickApi/Properties/AssemblyInfo.cs create mode 100644 JuickApi/User.cs diff --git a/Juick.sln b/Juick.sln index 868fde2..25fa975 100644 --- a/Juick.sln +++ b/Juick.sln @@ -1,8 +1,10 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Juick", "Juick\Juick.csproj", "{324D7F67-600D-4239-90D9-07C9CA17A4F3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JuickApi", "JuickApi\JuickApi.csproj", "{51F516BC-4EF9-4C81-B4A5-3E97809B70CE}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {324D7F67-600D-4239-90D9-07C9CA17A4F3}.Release|Any CPU.ActiveCfg = Release|Any CPU {324D7F67-600D-4239-90D9-07C9CA17A4F3}.Release|Any CPU.Build.0 = Release|Any CPU {324D7F67-600D-4239-90D9-07C9CA17A4F3}.Release|Any CPU.Deploy.0 = Release|Any CPU + {51F516BC-4EF9-4C81-B4A5-3E97809B70CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51F516BC-4EF9-4C81-B4A5-3E97809B70CE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51F516BC-4EF9-4C81-B4A5-3E97809B70CE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {51F516BC-4EF9-4C81-B4A5-3E97809B70CE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Juick/Api/Message.cs b/Juick/Api/Message.cs deleted file mode 100644 index e5b5611..0000000 --- a/Juick/Api/Message.cs +++ /dev/null @@ -1,28 +0,0 @@ -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 -{ - public class Message - { - public int Mid { get; set; } - public int Rid { get; set; } - public string Body { get; set; } - public User User { get; set; } - public string Timestamp { get; set; } - public int Replies { get; set; } - public List Tags { get; set; } - public Photo Photo { get; set; } - } -} diff --git a/Juick/Api/Photo.cs b/Juick/Api/Photo.cs deleted file mode 100644 index a5cf895..0000000 --- a/Juick/Api/Photo.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -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; - -namespace Juick.Api -{ - public class Photo - { - public string Thumbnail { get; set; } - public string Small { get; set; } - public string Medium { get; set; } - } -} diff --git a/Juick/Api/User.cs b/Juick/Api/User.cs deleted file mode 100644 index cd823eb..0000000 --- a/Juick/Api/User.cs +++ /dev/null @@ -1,21 +0,0 @@ -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 -{ - public class User - { - public int Uid { get; set; } - public string UName { get; set; } - public string Fullname { get; set; } - } -} diff --git a/Juick/Juick.csproj b/Juick/Juick.csproj index d161046..c330761 100644 --- a/Juick/Juick.csproj +++ b/Juick/Juick.csproj @@ -66,9 +66,6 @@ - - - App.xaml @@ -91,8 +88,8 @@ ThreadView.xaml - + @@ -169,6 +166,12 @@ + + + {51F516BC-4EF9-4C81-B4A5-3E97809B70CE} + JuickApi + + + + + + + + + + + + \ No newline at end of file diff --git a/JuickApi/Message.cs b/JuickApi/Message.cs new file mode 100644 index 0000000..9bd3230 --- /dev/null +++ b/JuickApi/Message.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; + +namespace JuickApi +{ + public class Message + { + public int Mid { get; set; } + public int Rid { get; set; } + public string Body { get; set; } + public User User { get; set; } + public string Timestamp { get; set; } + public int Replies { get; set; } + public List Tags { get; set; } + public Photo Photo { get; set; } + } +} diff --git a/JuickApi/Photo.cs b/JuickApi/Photo.cs new file mode 100644 index 0000000..e6cce2b --- /dev/null +++ b/JuickApi/Photo.cs @@ -0,0 +1,9 @@ +namespace JuickApi +{ + public class Photo + { + public string Thumbnail { get; set; } + public string Small { get; set; } + public string Medium { get; set; } + } +} diff --git a/JuickApi/Properties/AssemblyInfo.cs b/JuickApi/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..58faa6d --- /dev/null +++ b/JuickApi/Properties/AssemblyInfo.cs @@ -0,0 +1,30 @@ +using System.Resources; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("JuickApi")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("JuickApi")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/JuickApi/User.cs b/JuickApi/User.cs new file mode 100644 index 0000000..dd8bae2 --- /dev/null +++ b/JuickApi/User.cs @@ -0,0 +1,9 @@ +namespace JuickApi +{ + public class User + { + public int Uid { get; set; } + public string UName { get; set; } + public string Fullname { get; set; } + } +} -- cgit v1.2.3