changeset 113:954f66bb8dbf

Portable library added for DTO
author adminsh@apollo
date Sat, 19 May 2012 16:21:07 +0100
parents b9d5f934cb21
children e51a6af1c98d
files SSRS/SSRS.Services.DTO/Parameter.cs SSRS/SSRS.Services.DTO/ReportExecutionRequest.cs SSRS/SSRS.Services.DTO/ReportExecutionResponse.cs SSRS/SSRS.Services.DTO/ReportInfo.cs SSRS/SSRS.Services.DTO/ReportsRequest.cs SSRS/SSRS.Services.DTO/ReportsResponse.cs SSRS/SSRS.Services.DTO/SSRS.Services.DTO.csproj
diffstat 7 files changed, 72 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/Parameter.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,11 @@
+namespace SSRS.Services.DTO
+{
+    public class Parameter
+    {
+        public string[] DefaultValues { get; set; }
+        public string Name { get; set; }
+        public bool Nullable { get; set; }
+        public string ParameterType { get; set; }
+        public string Value { get; set; }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/ReportExecutionRequest.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,9 @@
+namespace SSRS.Services.DTO
+{
+    public class ReportExecutionRequest
+    {
+        public string Name { get; set; }
+        public string Format { get; set; }
+        public Parameter[] Parameters { get; set; }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/ReportExecutionResponse.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,7 @@
+namespace SSRS.Services.DTO
+{
+    public class ReportExecutionResponse
+    {
+        public byte[] Result { get; set; }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/ReportInfo.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,23 @@
+using System.Collections.Generic;
+
+namespace SSRS.Services.DTO
+{
+    public class ReportInfo
+    {
+        public string Name { get; set; }
+        public IList<Parameter> Parameters { get; set; }
+        public string Path { get; set; }
+
+        public ReportInfo() { }
+
+        public static ReportInfo Create(string name, IList<Parameter> parameters, string path)
+        {
+            return new ReportInfo()
+                {
+                    Name = name, 
+                    Parameters = parameters, 
+                    Path = path
+                };
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/ReportsRequest.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,7 @@
+namespace SSRS.Services.DTO
+{
+    public class ReportsRequest
+    {
+        public bool IncludeParameters { get; set; }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.DTO/ReportsResponse.cs	Sat May 19 16:21:07 2012 +0100
@@ -0,0 +1,9 @@
+using System.Collections.Generic;
+
+namespace SSRS.Services.DTO
+{
+    public class ReportsResponse
+    {
+        public List<ReportInfo> Result { get; set; }
+    }
+}
--- a/SSRS/SSRS.Services.DTO/SSRS.Services.DTO.csproj	Sat May 19 16:09:07 2012 +0100
+++ b/SSRS/SSRS.Services.DTO/SSRS.Services.DTO.csproj	Sat May 19 16:21:07 2012 +0100
@@ -5,7 +5,7 @@
     <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{42B88F74-5B24-4F7A-9409-F9FD30F99C7C}</ProjectGuid>
+    <ProjectGuid>{29663C66-DB7C-4704-8BF8-52B3BCFABC19}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>SSRS.Services.DTO</RootNamespace>
@@ -14,8 +14,6 @@
     <TargetFrameworkProfile>Profile3</TargetFrameworkProfile>
     <FileAlignment>512</FileAlignment>
     <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
-    <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
-    <RestorePackages>true</RestorePackages>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
@@ -35,23 +33,18 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <!-- A reference to the entire .NET Framework is automatically included -->
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Parameter.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="ReportExecutionRequest.cs" />
     <Compile Include="ReportExecutionResponse.cs" />
-    <Compile Include="Parameter.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="ReportInfo.cs" />
     <Compile Include="ReportsRequest.cs" />
     <Compile Include="ReportsResponse.cs" />
-    <Compile Include="RestServiceAttribute.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Runtime.Serialization" />
-    <Reference Include="System.ServiceModel" />
-    <Reference Include="System.Xml.Serialization" />
   </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
-  <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">