Mass rename

This commit is contained in:
tidusjar 2016-03-03 09:01:03 +00:00
parent 4f7ac123dd
commit 9de159b533
66 changed files with 657 additions and 198 deletions

View file

@ -1,4 +1,4 @@
# Request Plex! # Plex Requests .NET!
[![Gitter](https://badges.gitter.im/tidusjar/RequestPlex.svg)](https://gitter.im/tidusjar/RequestPlex?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Gitter](https://badges.gitter.im/tidusjar/RequestPlex.svg)](https://gitter.im/tidusjar/RequestPlex?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Build status](https://ci.appveyor.com/api/projects/status/hgj8j6lcea7j0yhn?svg=true)](https://ci.appveyor.com/project/tidusjar/requestplex) [![Build status](https://ci.appveyor.com/api/projects/status/hgj8j6lcea7j0yhn?svg=true)](https://ci.appveyor.com/project/tidusjar/requestplex)

View file

@ -1,12 +1,34 @@
using System; #region Copyright
using System.Collections.Generic; // /************************************************************************
using System.Linq; // Copyright (c) 2016 Jamie Rees
using System.Text; // File: IApiRequest.cs
using System.Threading.Tasks; // Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System;
using RestSharp; using RestSharp;
namespace RequestPlex.Api.Interfaces namespace PlexRequests.Api.Interfaces
{ {
public interface IApiRequest public interface IApiRequest
{ {

View file

@ -7,8 +7,8 @@
<ProjectGuid>{95834072-A675-415D-AA8F-877C91623810}</ProjectGuid> <ProjectGuid>{95834072-A675-415D-AA8F-877C91623810}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.Api.Interfaces</RootNamespace> <RootNamespace>PlexRequests.Api.Interfaces</RootNamespace>
<AssemblyName>RequestPlex.Api.Interfaces</AssemblyName> <AssemblyName>PlexRequests.Api.Interfaces</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>

View file

@ -1,14 +1,36 @@
using System; #region Copyright
using System.Collections.Generic; // /************************************************************************
using System.Linq; // Copyright (c) 2016 Jamie Rees
using System.Text; // File: ApiRequest.cs
using System.Threading.Tasks; // Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System;
using RequestPlex.Api.Interfaces; using PlexRequests.Api.Interfaces;
using RestSharp; using RestSharp;
namespace RequestPlex.Api namespace PlexRequests.Api
{ {
public class ApiRequest : IApiRequest public class ApiRequest : IApiRequest
{ {

View file

@ -1,11 +1,32 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: PlexAuthentication.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace RequestPlex.Api.Models namespace PlexRequests.Api.Models
{ {
public class PlexAuthentication public class PlexAuthentication
{ {
@ -38,3 +59,4 @@ namespace RequestPlex.Api.Models
public int forum_id { get; set; } public int forum_id { get; set; }
} }
} }

View file

@ -1,12 +1,33 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: PlexFriends.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization; using System.Xml.Serialization;
using RestSharp.Deserializers;
namespace RequestPlex.Api.Models namespace PlexRequests.Api.Models
{ {
[XmlRoot(ElementName = "Server")] [XmlRoot(ElementName = "Server")]
public class Server public class Server

View file

@ -1,5 +1,31 @@
 #region Copyright
namespace RequestPlex.Api.Models // /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: PlexUserRequest.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
namespace PlexRequests.Api.Models
{ {
public class PlexUserRequest public class PlexUserRequest
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.Api.Models.Tv namespace PlexRequests.Api.Models.Tv
{ {
public class Authentication public class Authentication
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using System.Collections.Generic; using System.Collections.Generic;
namespace RequestPlex.Api.Models.Tv namespace PlexRequests.Api.Models.Tv
{ {
public class TvShowSearchResult public class TvShowSearchResult
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using System.Collections.Generic; using System.Collections.Generic;
namespace RequestPlex.Api.Models.Tv namespace PlexRequests.Api.Models.Tv
{ {
public class TvShow public class TvShow
{ {

View file

@ -24,11 +24,9 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
using System; using PlexRequests.Helpers;
using RequestPlex.Helpers; namespace PlexRequests.Api
namespace RequestPlex.Api
{ {
public abstract class MovieBase public abstract class MovieBase
{ {

View file

@ -26,11 +26,11 @@
#endregion #endregion
using System; using System;
using RequestPlex.Api.Models; using PlexRequests.Api.Models;
using RestSharp; using RestSharp;
namespace RequestPlex.Api namespace PlexRequests.Api
{ {
public class PlexApi public class PlexApi
{ {

View file

@ -7,8 +7,8 @@
<ProjectGuid>{8CB8D235-2674-442D-9C6A-35FCAEEB160D}</ProjectGuid> <ProjectGuid>{8CB8D235-2674-442D-9C6A-35FCAEEB160D}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.Api</RootNamespace> <RootNamespace>PlexRequests.Api</RootNamespace>
<AssemblyName>RequestPlex.Api</AssemblyName> <AssemblyName>PlexRequests.Api</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
@ -79,13 +79,13 @@
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RequestPlex.Api.Interfaces\RequestPlex.Api.Interfaces.csproj"> <ProjectReference Include="..\RequestPlex.Api.Interfaces\PlexRequests.Api.Interfaces.csproj">
<Project>{95834072-A675-415D-AA8F-877C91623810}</Project> <Project>{95834072-A675-415D-AA8F-877C91623810}</Project>
<Name>RequestPlex.Api.Interfaces</Name> <Name>PlexRequests.Api.Interfaces</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Helpers\RequestPlex.Helpers.csproj"> <ProjectReference Include="..\RequestPlex.Helpers\PlexRequests.Helpers.csproj">
<Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project> <Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project>
<Name>RequestPlex.Helpers</Name> <Name>PlexRequests.Helpers</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />

View file

@ -1,4 +1,30 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: TheMovieDbApi.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -8,7 +34,7 @@ using TMDbLib.Objects.Movies;
using TMDbLib.Objects.Search; using TMDbLib.Objects.Search;
using TMDbLib.Objects.TvShows; using TMDbLib.Objects.TvShows;
namespace RequestPlex.Api namespace PlexRequests.Api
{ {
public class TheMovieDbApi : MovieBase public class TheMovieDbApi : MovieBase
{ {

View file

@ -24,14 +24,11 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
using PlexRequests.Api.Models.Tv;
using Newtonsoft.Json;
using RequestPlex.Api.Models.Tv;
using RestSharp; using RestSharp;
namespace RequestPlex.Api namespace PlexRequests.Api
{ {
public class TheTvDbApi : TvBase public class TheTvDbApi : TvBase
{ {

View file

@ -26,9 +26,9 @@
#endregion #endregion
using System; using System;
using RequestPlex.Helpers; using PlexRequests.Helpers;
namespace RequestPlex.Api namespace PlexRequests.Api
{ {
public abstract class TvBase public abstract class TvBase
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class CacheKeys public class CacheKeys
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public interface ISettingsService<T> public interface ISettingsService<T>
{ {

View file

@ -7,8 +7,8 @@
<ProjectGuid>{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}</ProjectGuid> <ProjectGuid>{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.Core</RootNamespace> <RootNamespace>PlexRequests.Core</RootNamespace>
<AssemblyName>RequestPlex.Core</AssemblyName> <AssemblyName>PlexRequests.Core</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
@ -82,17 +82,17 @@
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RequestPlex.Api\RequestPlex.Api.csproj"> <ProjectReference Include="..\RequestPlex.Api\PlexRequests.Api.csproj">
<Project>{8CB8D235-2674-442D-9C6A-35FCAEEB160D}</Project> <Project>{8CB8D235-2674-442D-9C6A-35FCAEEB160D}</Project>
<Name>RequestPlex.Api</Name> <Name>PlexRequests.Api</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Helpers\RequestPlex.Helpers.csproj"> <ProjectReference Include="..\RequestPlex.Helpers\PlexRequests.Helpers.csproj">
<Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project> <Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project>
<Name>RequestPlex.Helpers</Name> <Name>PlexRequests.Helpers</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Store\RequestPlex.Store.csproj"> <ProjectReference Include="..\RequestPlex.Store\PlexRequests.Store.csproj">
<Project>{92433867-2B7B-477B-A566-96C382427525}</Project> <Project>{92433867-2B7B-477B-A566-96C382427525}</Project>
<Name>RequestPlex.Store</Name> <Name>PlexRequests.Store</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View file

@ -26,9 +26,9 @@
#endregion #endregion
using System.Linq; using System.Linq;
using RequestPlex.Store; using PlexRequests.Store;
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class RequestService public class RequestService
{ {

View file

@ -1,4 +1,30 @@
namespace RequestPlex.Core.SettingModels #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: CouchPotatoSettings.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
namespace PlexRequests.Core.SettingModels
{ {
public class CouchPotatoSettings : Settings public class CouchPotatoSettings : Settings
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.Core.SettingModels namespace PlexRequests.Core.SettingModels
{ {
public class RequestPlexSettings : Settings public class RequestPlexSettings : Settings
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.Core.SettingModels namespace PlexRequests.Core.SettingModels
{ {
public class Settings public class Settings
{ {

View file

@ -1,4 +1,30 @@
namespace RequestPlex.Core.SettingModels #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: SickRageSettings.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
namespace PlexRequests.Core.SettingModels
{ {
public class SickRageSettings : Settings public class SickRageSettings : Settings
{ {

View file

@ -1,4 +1,30 @@
namespace RequestPlex.Core.SettingModels #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: SonarrSettings.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
namespace PlexRequests.Core.SettingModels
{ {
public class SonarrSettings : Settings public class SonarrSettings : Settings
{ {

View file

@ -29,12 +29,11 @@ using System.Linq;
using Mono.Data.Sqlite; using Mono.Data.Sqlite;
using RequestPlex.Api; using PlexRequests.Api;
using RequestPlex.Api.Models.Tv; using PlexRequests.Helpers;
using RequestPlex.Helpers; using PlexRequests.Store;
using RequestPlex.Store;
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class SettingsService public class SettingsService
{ {

View file

@ -26,14 +26,12 @@
#endregion #endregion
using Newtonsoft.Json; using Newtonsoft.Json;
using Omu.ValueInjecter; using PlexRequests.Core.SettingModels;
using PlexRequests.Helpers;
using PlexRequests.Store;
using PlexRequests.Store.Models;
using RequestPlex.Core.SettingModels; namespace PlexRequests.Core
using RequestPlex.Helpers;
using RequestPlex.Store;
using RequestPlex.Store.Models;
namespace RequestPlex.Core
{ {
public class SettingsServiceV2<T> : ISettingsService<T> public class SettingsServiceV2<T> : ISettingsService<T>
where T : Settings, new() where T : Settings, new()

View file

@ -1,8 +1,34 @@
using Mono.Data.Sqlite; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: Setup.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Mono.Data.Sqlite;
using RequestPlex.Store; using PlexRequests.Store;
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class Setup public class Setup
{ {

View file

@ -1,12 +1,34 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: UserIdentity.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Nancy.Security; using Nancy.Security;
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class UserIdentity : IUserIdentity public class UserIdentity : IUserIdentity
{ {

View file

@ -31,9 +31,9 @@ using Nancy;
using Nancy.Authentication.Forms; using Nancy.Authentication.Forms;
using Nancy.Security; using Nancy.Security;
using RequestPlex.Store; using PlexRequests.Store;
namespace RequestPlex.Core namespace PlexRequests.Core
{ {
public class UserMapper : IUserMapper public class UserMapper : IUserMapper
{ {

View file

@ -1,7 +1,33 @@
using System.Diagnostics; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: AssemblyHelper.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Diagnostics;
using System.Reflection; using System.Reflection;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
public class AssemblyHelper public class AssemblyHelper
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using System; using System;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
public interface ICacheProvider public interface ICacheProvider
{ {

View file

@ -28,7 +28,7 @@ using System;
using System.Linq; using System.Linq;
using System.Runtime.Caching; using System.Runtime.Caching;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
public class MemoryCacheProvider : ICacheProvider public class MemoryCacheProvider : ICacheProvider
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using Newtonsoft.Json; using Newtonsoft.Json;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
/// <summary> /// <summary>
/// Provides a method for performing a deep copy of an object. /// Provides a method for performing a deep copy of an object.

View file

@ -7,8 +7,8 @@
<ProjectGuid>{1252336D-42A3-482A-804C-836E60173DFA}</ProjectGuid> <ProjectGuid>{1252336D-42A3-482A-804C-836E60173DFA}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.Helpers</RootNamespace> <RootNamespace>PlexRequests.Helpers</RootNamespace>
<AssemblyName>RequestPlex.Helpers</AssemblyName> <AssemblyName>PlexRequests.Helpers</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>

View file

@ -28,7 +28,7 @@ using System.Runtime.Serialization.Formatters;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
public static class SerializerSettings public static class SerializerSettings
{ {

View file

@ -30,7 +30,7 @@ using System.Linq;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
namespace RequestPlex.Helpers namespace PlexRequests.Helpers
{ {
public class StringCipher public class StringCipher
{ {

View file

@ -30,7 +30,7 @@ using System.IO;
using Mono.Data.Sqlite; using Mono.Data.Sqlite;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public class DbConfiguration : ISqliteConfiguration public class DbConfiguration : ISqliteConfiguration
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public class Entity public class Entity
{ {

View file

@ -29,7 +29,7 @@ using System.Collections.Generic;
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public class GenericRepository<T> : IRepository<T> where T : Entity public class GenericRepository<T> : IRepository<T> where T : Entity
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using System.Collections.Generic; using System.Collections.Generic;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public interface IRepository<T> public interface IRepository<T>
{ {

View file

@ -26,9 +26,9 @@
#endregion #endregion
using System.Collections.Generic; using System.Collections.Generic;
using RequestPlex.Store.Models; using PlexRequests.Store.Models;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public interface ISettingsRepository public interface ISettingsRepository
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using System.Data; using System.Data;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public interface ISqliteConfiguration public interface ISqliteConfiguration
{ {

View file

@ -26,7 +26,7 @@
#endregion #endregion
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store.Models namespace PlexRequests.Store.Models
{ {
[Table("GlobalSettings")] [Table("GlobalSettings")]

View file

@ -7,8 +7,8 @@
<ProjectGuid>{92433867-2B7B-477B-A566-96C382427525}</ProjectGuid> <ProjectGuid>{92433867-2B7B-477B-A566-96C382427525}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.Store</RootNamespace> <RootNamespace>PlexRequests.Store</RootNamespace>
<AssemblyName>RequestPlex.Store</AssemblyName> <AssemblyName>PlexRequests.Store</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
@ -87,9 +87,9 @@
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RequestPlex.Helpers\RequestPlex.Helpers.csproj"> <ProjectReference Include="..\RequestPlex.Helpers\PlexRequests.Helpers.csproj">
<Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project> <Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project>
<Name>RequestPlex.Helpers</Name> <Name>PlexRequests.Helpers</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View file

@ -24,17 +24,15 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
using RequestPlex.Helpers; using PlexRequests.Helpers;
using RequestPlex.Store.Models; using PlexRequests.Store.Models;
namespace RequestPlex.Store.Repository namespace PlexRequests.Store.Repository
{ {
public class JsonRepository : ISettingsRepository public class JsonRepository : ISettingsRepository
{ {

View file

@ -2,7 +2,7 @@
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
[Table("Requested")] [Table("Requested")]
public class RequestedModel : Entity public class RequestedModel : Entity

View file

@ -1,8 +1,32 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: SettingsModel.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
[Table("Settings")] [Table("Settings")]
public class SettingsModel : Entity public class SettingsModel : Entity

View file

@ -8,7 +8,7 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace RequestPlex.Store { namespace PlexRequests.Store {
using System; using System;
@ -39,7 +39,7 @@ namespace RequestPlex.Store {
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RequestPlex.Store.Sql", typeof(Sql).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PlexRequests.Store.Sql", typeof(Sql).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
@ -65,10 +65,22 @@ namespace RequestPlex.Store {
/// ///
///CREATE TABLE IF NOT EXISTS User ///CREATE TABLE IF NOT EXISTS User
///( ///(
/// UserID varchar PRIMARY KEY, /// Id INTEGER PRIMARY KEY AUTOINCREMENT,
/// User varchar(50) NOT NULL ,
/// UserName varchar(50) NOT NULL, /// UserName varchar(50) NOT NULL,
/// Password varchar(100) NOT NULL /// Password varchar(100) NOT NULL
///);. ///);
///
///CREATE TABLE IF NOT EXISTS Settings
///(
/// Id INTEGER PRIMARY KEY AUTOINCREMENT,
/// Port INTEGER NOT NULL,
/// UserAuthentication INTEGER NOT NULL,
/// PlexAuthToken varchar(50)
///);
///
///CREATE TABLE IF NOT EXISTS Requested
///( [rest of string was truncated]&quot;;.
/// </summary> /// </summary>
internal static string SqlTables { internal static string SqlTables {
get { get {

View file

@ -29,7 +29,7 @@ using System.Data;
using Dapper; using Dapper;
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public static class TableCreation public static class TableCreation
{ {

View file

@ -1,8 +1,32 @@
using System; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: UserModel.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
[Table("User")] [Table("User")]
public class UserModel : Entity public class UserModel : Entity

View file

@ -30,7 +30,7 @@ using System.Linq;
using Dapper.Contrib.Extensions; using Dapper.Contrib.Extensions;
namespace RequestPlex.Store namespace PlexRequests.Store
{ {
public class UserRepository<T> : IRepository<T> where T : UserModel public class UserRepository<T> : IRepository<T> where T : UserModel
{ {
@ -94,3 +94,4 @@ namespace RequestPlex.Store
} }
} }
} }

View file

@ -1,4 +1,30 @@
using Mono.Data.Sqlite; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: Bootstrapper.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Mono.Data.Sqlite;
using Nancy; using Nancy;
using Nancy.Authentication.Forms; using Nancy.Authentication.Forms;
@ -7,15 +33,13 @@ using Nancy.Diagnostics;
using Nancy.Session; using Nancy.Session;
using Nancy.TinyIoc; using Nancy.TinyIoc;
using RequestPlex.Core; using PlexRequests.Core;
using RequestPlex.Core.SettingModels; using PlexRequests.Core.SettingModels;
using RequestPlex.Helpers; using PlexRequests.Helpers;
using RequestPlex.Store; using PlexRequests.Store;
using RequestPlex.Store.Repository; using PlexRequests.Store.Repository;
using FormsAuthentication = Nancy.Authentication.Forms.FormsAuthentication; namespace PlexRequests.UI
namespace RequestPlex.UI
{ {
public class Bootstrapper : DefaultNancyBootstrapper public class Bootstrapper : DefaultNancyBootstrapper
{ {

View file

@ -1,10 +1,30 @@
using System; #region Copyright
using System.Collections.Generic; // /************************************************************************
using System.Linq; // Copyright (c) 2016 Jamie Rees
using System.Text; // File: PlexAuth.cs
using System.Threading.Tasks; // Created By: Jamie Rees
//
namespace RequestPlex.UI.Models // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
namespace PlexRequests.UI.Models
{ {
public class PlexAuth public class PlexAuth
{ {

View file

@ -24,11 +24,9 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
using System; using PlexRequests.Store;
using RequestPlex.Store; namespace PlexRequests.UI.Models
namespace RequestPlex.UI.Models
{ {
public class RequestViewModel public class RequestViewModel
{ {

View file

@ -24,7 +24,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
namespace RequestPlex.UI.Models namespace PlexRequests.UI.Models
{ {
public class SessionKeys public class SessionKeys
{ {

View file

@ -33,12 +33,12 @@ using Nancy.ModelBinding;
using Nancy.Responses.Negotiation; using Nancy.Responses.Negotiation;
using Nancy.Security; using Nancy.Security;
using RequestPlex.Api; using PlexRequests.Api;
using RequestPlex.Core; using PlexRequests.Core;
using RequestPlex.Core.SettingModels; using PlexRequests.Core.SettingModels;
using RequestPlex.UI.Models; using PlexRequests.UI.Models;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
public class AdminModule : NancyModule public class AdminModule : NancyModule
{ {

View file

@ -1,8 +1,33 @@
using Nancy; #region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: IndexModule.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Nancy;
using Nancy.Extensions; using Nancy.Extensions;
using Nancy.Responses;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
public class IndexModule : NancyModule public class IndexModule : NancyModule
{ {

View file

@ -1,3 +1,29 @@
#region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: LoginModule.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System; using System;
using System.Dynamic; using System.Dynamic;
@ -5,9 +31,9 @@ using Nancy;
using Nancy.Authentication.Forms; using Nancy.Authentication.Forms;
using Nancy.Extensions; using Nancy.Extensions;
using RequestPlex.Core; using PlexRequests.Core;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
public class LoginModule : NancyModule public class LoginModule : NancyModule
{ {

View file

@ -24,7 +24,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/ // ************************************************************************/
#endregion #endregion
using System.Collections.Generic;
using System.Linq; using System.Linq;
using Humanizer; using Humanizer;
@ -32,10 +31,10 @@ using Humanizer;
using Nancy; using Nancy;
using Nancy.Responses.Negotiation; using Nancy.Responses.Negotiation;
using RequestPlex.Store; using PlexRequests.Store;
using RequestPlex.UI.Models; using PlexRequests.UI.Models;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
public class RequestsModule : NancyModule public class RequestsModule : NancyModule
{ {

View file

@ -1,13 +1,38 @@
#region Copyright
// /************************************************************************
// Copyright (c) 2016 Jamie Rees
// File: SearchModule.cs
// Created By: Jamie Rees
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using Nancy; using Nancy;
using Nancy.Responses.Negotiation; using Nancy.Responses.Negotiation;
using RequestPlex.Api; using PlexRequests.Api;
using RequestPlex.Api.Models.Tv; using PlexRequests.Core;
using RequestPlex.Core; using PlexRequests.Helpers;
using RequestPlex.Helpers; using PlexRequests.Store;
using RequestPlex.Store;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
public class SearchModule : NancyModule public class SearchModule : NancyModule
{ {

View file

@ -26,9 +26,9 @@
#endregion #endregion
using Nancy; using Nancy;
using RequestPlex.UI.Models; using PlexRequests.UI.Models;
namespace RequestPlex.UI.Modules namespace PlexRequests.UI.Modules
{ {
// TODO: Check the settings to see if we need to authenticate // TODO: Check the settings to see if we need to authenticate
// TODO: Add ability to logout // TODO: Add ability to logout

View file

@ -7,8 +7,8 @@
<ProjectGuid>{68F5F5F3-B8BB-4911-875F-6F00AAE04EA6}</ProjectGuid> <ProjectGuid>{68F5F5F3-B8BB-4911-875F-6F00AAE04EA6}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RequestPlex.UI</RootNamespace> <RootNamespace>PlexRequests.UI</RootNamespace>
<AssemblyName>RequestPlex</AssemblyName> <AssemblyName>PlexRequests</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
@ -233,21 +233,21 @@
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RequestPlex.Api\RequestPlex.Api.csproj"> <ProjectReference Include="..\RequestPlex.Api\PlexRequests.Api.csproj">
<Project>{8cb8d235-2674-442d-9c6a-35fcaeeb160d}</Project> <Project>{8cb8d235-2674-442d-9c6a-35fcaeeb160d}</Project>
<Name>RequestPlex.Api</Name> <Name>PlexRequests.Api</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Core\RequestPlex.Core.csproj"> <ProjectReference Include="..\RequestPlex.Core\PlexRequests.Core.csproj">
<Project>{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}</Project> <Project>{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}</Project>
<Name>RequestPlex.Core</Name> <Name>PlexRequests.Core</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Helpers\RequestPlex.Helpers.csproj"> <ProjectReference Include="..\RequestPlex.Helpers\PlexRequests.Helpers.csproj">
<Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project> <Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project>
<Name>RequestPlex.Helpers</Name> <Name>PlexRequests.Helpers</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\RequestPlex.Store\RequestPlex.Store.csproj"> <ProjectReference Include="..\RequestPlex.Store\PlexRequests.Store.csproj">
<Project>{92433867-2B7B-477B-A566-96C382427525}</Project> <Project>{92433867-2B7B-477B-A566-96C382427525}</Project>
<Name>RequestPlex.Store</Name> <Name>PlexRequests.Store</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View file

@ -30,13 +30,13 @@ using Microsoft.Owin.Hosting;
using Mono.Data.Sqlite; using Mono.Data.Sqlite;
using RequestPlex.Core; using PlexRequests.Core;
using RequestPlex.Core.SettingModels; using PlexRequests.Core.SettingModels;
using RequestPlex.Helpers; using PlexRequests.Helpers;
using RequestPlex.Store; using PlexRequests.Store;
using RequestPlex.Store.Repository; using PlexRequests.Store.Repository;
namespace RequestPlex.UI namespace PlexRequests.UI
{ {
class Program class Program
{ {

View file

@ -28,7 +28,7 @@ using System;
using Owin; using Owin;
namespace RequestPlex.UI namespace PlexRequests.UI
{ {
public class Startup public class Startup
{ {

View file

@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.24720.0 VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.UI", "RequestPlex.UI\RequestPlex.UI.csproj", "{68F5F5F3-B8BB-4911-875F-6F00AAE04EA6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.UI", "RequestPlex.UI\PlexRequests.UI.csproj", "{68F5F5F3-B8BB-4911-875F-6F00AAE04EA6}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.Api", "RequestPlex.Api\RequestPlex.Api.csproj", "{8CB8D235-2674-442D-9C6A-35FCAEEB160D}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.Api", "RequestPlex.Api\PlexRequests.Api.csproj", "{8CB8D235-2674-442D-9C6A-35FCAEEB160D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.Api.Interfaces", "RequestPlex.Api.Interfaces\RequestPlex.Api.Interfaces.csproj", "{95834072-A675-415D-AA8F-877C91623810}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.Api.Interfaces", "RequestPlex.Api.Interfaces\PlexRequests.Api.Interfaces.csproj", "{95834072-A675-415D-AA8F-877C91623810}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.Core", "RequestPlex.Core\RequestPlex.Core.csproj", "{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.Core", "RequestPlex.Core\PlexRequests.Core.csproj", "{DD7DC444-D3BF-4027-8AB9-EFC71F5EC581}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.Store", "RequestPlex.Store\RequestPlex.Store.csproj", "{92433867-2B7B-477B-A566-96C382427525}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.Store", "RequestPlex.Store\PlexRequests.Store.csproj", "{92433867-2B7B-477B-A566-96C382427525}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F4BC839C-B8FF-48BE-B22E-536A0A0A81A5}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F4BC839C-B8FF-48BE-B22E-536A0A0A81A5}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
@ -19,7 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md README.md = README.md
EndProjectSection EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RequestPlex.Helpers", "RequestPlex.Helpers\RequestPlex.Helpers.csproj", "{1252336D-42A3-482A-804C-836E60173DFA}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlexRequests.Helpers", "RequestPlex.Helpers\PlexRequests.Helpers.csproj", "{1252336D-42A3-482A-804C-836E60173DFA}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution