Using a specific namespace for the abstraction

This commit is contained in:
Zoe Roux 2021-08-14 19:32:26 +02:00
parent fab9b8a5c7
commit cd73ea953b
156 changed files with 340 additions and 305 deletions

View File

@ -1,10 +1,10 @@
using System;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A class to ease configuration management. This work WITH Microsoft's package, you can still use IOptions patterns

View File

@ -2,10 +2,10 @@ using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Microsoft.AspNetCore.Mvc;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A service to abstract the file system to allow custom file systems (like distant file systems or external providers)

View File

@ -1,8 +1,8 @@
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// An interface to identify episodes, shows and metadata based on the episode file.

View File

@ -4,10 +4,10 @@ using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// An interface to interract with the database. Every repository is mapped through here.

View File

@ -1,9 +1,9 @@
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
using JetBrains.Annotations;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// An interface to automatically retrieve metadata from external providers.

View File

@ -4,7 +4,7 @@ using Autofac;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A common interface used to discord plugins

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A manager to load plugins and retrieve information from them.

View File

@ -4,10 +4,10 @@ using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// Information about the pagination. How many items should be displayed and where to start.
@ -106,7 +106,7 @@ namespace Kyoo.Controllers
}
/// <summary>
/// A base class for repositories. Every service implementing this will be handled by the <see cref="LibraryManager"/>.
/// A base class for repositories. Every service implementing this will be handled by the <see cref="ILibraryManager"/>.
/// </summary>
public interface IBaseRepository
{

View File

@ -4,10 +4,10 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A single task parameter. This struct contains metadata to display and utility functions to get them in the task.

View File

@ -2,10 +2,10 @@ using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using Kyoo.Common.Models.Attributes;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Models.Attributes;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A service to handle long running tasks.

View File

@ -1,8 +1,8 @@
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using System.Threading.Tasks;
using JetBrains.Annotations;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// Download images and retrieve the path of those images for a resource.

View File

@ -1,7 +1,7 @@
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using System.Threading.Tasks;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
public interface ITranscoder
{

View File

@ -1,7 +1,7 @@
using System;
using Microsoft.Extensions.DependencyInjection;
namespace Kyoo.Controllers
namespace Kyoo.Abstractions.Controllers
{
/// <summary>
/// A list of constant priorities used for <see cref="IStartupAction"/>'s <see cref="IStartupAction.Priority"/>.

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>Kyoo.Abstraction</Title>
<Title>Kyoo.Abstractions</Title>
<Authors>Zoe Roux</Authors>
<Description>Base package to create plugins for Kyoo.</Description>
<PackageProjectUrl>https://github.com/AnonymusRaccoon/Kyoo</PackageProjectUrl>
@ -16,7 +16,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<LangVersion>default</LangVersion>
<RootNamespace>Kyoo.Abstraction</RootNamespace>
<RootNamespace>Kyoo.Abstractions</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@ -1,4 +1,4 @@
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A class wrapping a value that will be set after the completion of the task it is related to.

View File

@ -1,6 +1,6 @@
using System;
namespace Kyoo.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// An attribute to inform that the property is computed automatically and can't be assigned manually.

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Common.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// An attribute to inform how a <see cref="IFileSystem"/> works.

View File

@ -1,6 +1,6 @@
using System;
namespace Kyoo.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// Specify that a property can't be merged.

View File

@ -2,7 +2,7 @@ using System;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.DependencyInjection;
namespace Kyoo.Models.Permissions
namespace Kyoo.Abstractions.Models.Permissions
{
/// <summary>
/// The kind of permission needed.

View File

@ -1,7 +1,7 @@
using System;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// The targeted relation can be edited via calls to the repository's <see cref="IRepository{T}.Edit"/> method.

View File

@ -1,6 +1,6 @@
using System;
namespace Kyoo.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// Remove an property from the serialization pipeline. It will simply be skipped.

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Common.Models.Attributes
namespace Kyoo.Abstractions.Models.Attributes
{
/// <summary>
/// An attribute to inform how a <see cref="IFileSystem"/> works.

View File

@ -1,4 +1,4 @@
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A chapter to split an episode in multiple parts.

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Reflection;
using JetBrains.Annotations;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A class given information about a strongly typed configuration.

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;
namespace Kyoo.Models.Exceptions
namespace Kyoo.Abstractions.Models.Exceptions
{
/// <summary>
/// An exception raised when an item already exists in the database.

View File

@ -1,8 +1,8 @@
using System;
using System.Runtime.Serialization;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Models.Exceptions
namespace Kyoo.Abstractions.Models.Exceptions
{
/// <summary>
/// An exception raised when an <see cref="IIdentifier"/> failed.

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.Serialization;
namespace Kyoo.Models.Exceptions
namespace Kyoo.Abstractions.Models.Exceptions
{
/// <summary>
/// An exception raised when an item could not be found.

View File

@ -1,8 +1,8 @@
using System;
using System.Runtime.Serialization;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Models.Exceptions
namespace Kyoo.Abstractions.Models.Exceptions
{
/// <summary>
/// An exception raised when an <see cref="ITask"/> failed.

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// The type of item, ether a show, a movie or a collection.

View File

@ -1,8 +1,8 @@
using System;
using System.Linq.Expressions;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// ID and link of an item on an external provider.

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A page of resource that contains information about the pagination of resources.

View File

@ -1,4 +1,4 @@
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A role a person played for a show. It can be an actor, musician, voice actor, director, writer...

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A class representing collections of <see cref="Show"/>.

View File

@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using Kyoo.Controllers;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A class to represent a single show's episode.

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A genre that allow one to specify categories for shows.

View File

@ -2,9 +2,9 @@ using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// An interface applied to resources containing external metadata.

View File

@ -1,6 +1,6 @@
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// An interface to represent a resource that can be retrieved from the database.

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// An interface representing items that contains images (like posters, thumbnails, logo, banners...)

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A library containing <see cref="Show"/> and <see cref="Collection"/>.

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// An actor, voice actor, writer, animator, somebody who worked on a <see cref="Show"/>.

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using Kyoo.Controllers;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// This class contains metadata about <see cref="IMetadataProvider"/>.

View File

@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using Kyoo.Controllers;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A season of a <see cref="Show"/>.

View File

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using Kyoo.Controllers;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A series or a movie.

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A studio that make shows.

View File

@ -3,9 +3,9 @@ using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// The list of available stream types.

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A single user of the app.

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// Results of a search request.

View File

@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Controllers;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
using PathIO = System.IO.Path;
namespace Kyoo.Models
namespace Kyoo.Abstractions.Models
{
/// <summary>
/// A watch item give information useful for playback.

View File

@ -1,9 +1,9 @@
using Autofac;
using Autofac.Builder;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
using Microsoft.Extensions.Configuration;
namespace Kyoo
namespace Kyoo.Abstractions
{
/// <summary>
/// A static class with helper functions to setup external modules

View File

@ -5,8 +5,8 @@ using System.ComponentModel;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
using Kyoo.Models;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo
{

View File

@ -7,10 +7,11 @@ using Autofac;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Kyoo.Abstractions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Permissions;
using Kyoo.Authentication.Models;
using Kyoo.Authentication.Views;
using Kyoo.Controllers;
using Kyoo.Models.Permissions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;

View File

@ -2,8 +2,8 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Abstractions.Models.Permissions;
using Kyoo.Authentication.Models;
using Kyoo.Models.Permissions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Http;

View File

@ -3,7 +3,7 @@ using System.Linq;
using System.Security.Claims;
using IdentityModel;
using IdentityServer4;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
namespace Kyoo.Authentication
{

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
namespace Kyoo.Authentication.Models.DTO
{
@ -34,7 +34,7 @@ namespace Kyoo.Authentication.Models.DTO
/// <returns></returns>
public User ToUser()
{
return new()
return new User
{
Slug = Utility.ToSlug(Username),
Username = Username,

View File

@ -8,11 +8,11 @@ using System.Threading.Tasks;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.Authentication.Models;
using Kyoo.Authentication.Models.DTO;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
namespace Kyoo.CommonApi
{

View File

@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Models.Permissions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.Abstractions.Models.Permissions;
using Microsoft.AspNetCore.Mvc;
namespace Kyoo.CommonApi

View File

@ -5,9 +5,9 @@ using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;

View File

@ -4,8 +4,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Kyoo.Models;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;

View File

@ -4,10 +4,11 @@ using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading.Tasks;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.CommonApi;
using Kyoo.Models;
using Kyoo.Models.Attributes;
using Kyoo.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Models.Attributes;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Filters;

View File

@ -1,7 +1,7 @@
// <auto-generated />
using System;
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Kyoo.Postgresql;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;

View File

@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

View File

@ -1,7 +1,7 @@
// <auto-generated />
using System;
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Kyoo.Postgresql;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;

View File

@ -1,7 +1,7 @@
// <auto-generated />
using System;
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Kyoo.Postgresql;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;

View File

@ -3,7 +3,7 @@ using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
using EFCore.NamingConventions.Internal;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore;
using Npgsql;

View File

@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;

View File

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

View File

@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.Search;
namespace Kyoo.TheMovieDb

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.TvShows;
namespace Kyoo.TheMovieDb

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.Movies;
using TMDbLib.Objects.Search;

View File

@ -1,9 +1,9 @@
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.General;
using TMDbLib.Objects.People;
using TMDbLib.Objects.Search;
using Images = Kyoo.Models.Images;
using Images = Kyoo.Abstractions.Models.Images;
using TvCast = TMDbLib.Objects.TvShows.Cast;
using MovieCast = TMDbLib.Objects.Movies.Cast;
@ -15,11 +15,11 @@ namespace Kyoo.TheMovieDb
public static partial class Convertors
{
/// <summary>
/// Convert a <see cref="MovieCast"/> to a <see cref="PeopleRole"/>.
/// Convert a <see cref="MovieCast"/> to a <see cref="Abstractions.Models.PeopleRole"/>.
/// </summary>
/// <param name="cast">An internal TheMovieDB cast.</param>
/// <param name="provider">The provider that represent TheMovieDB inside Kyoo.</param>
/// <returns>A <see cref="PeopleRole"/> representing the movie cast.</returns>
/// <returns>A <see cref="Abstractions.Models.PeopleRole"/> representing the movie cast.</returns>
public static PeopleRole ToPeople(this MovieCast cast, Provider provider)
{
return new PeopleRole

View File

@ -1,5 +1,5 @@
using System.Collections.Generic;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.TvShows;
namespace Kyoo.TheMovieDb

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.Search;
using TMDbLib.Objects.TvShows;

View File

@ -1,4 +1,4 @@
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TMDbLib.Objects.Companies;
using TMDbLib.Objects.Search;

View File

@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
using Autofac;
using Kyoo.Controllers;
using Kyoo.Abstractions;
using Kyoo.Abstractions.Controllers;
using Kyoo.TheMovieDb.Models;
namespace Kyoo.TheMovieDb

View File

@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.TheMovieDb.Models;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Kyoo.Models;
using Kyoo.Abstractions.Models;
using TvDbSharper.Dto;
namespace Kyoo.TheTvdb

View File

@ -1,7 +1,8 @@
using System;
using System.Collections.Generic;
using Autofac;
using Kyoo.Controllers;
using Kyoo.Abstractions;
using Kyoo.Abstractions.Controllers;
using Kyoo.TheTvdb.Models;
using TvDbSharper;

View File

@ -3,8 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Kyoo.Controllers;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.TheTvdb.Models;
using Microsoft.Extensions.Options;
using TvDbSharper;

View File

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using Kyoo.Controllers;
using Kyoo.Abstractions.Controllers;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.SpaServices.AngularCli;

View File

@ -5,9 +5,10 @@ using System.Dynamic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.Api;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json.Linq;

View File

@ -6,8 +6,9 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Autofac.Features.Metadata;
using JetBrains.Annotations;
using Kyoo.Common.Models.Attributes;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models.Attributes;
using Kyoo.Abstractions.Models;
using Kyoo.Models.Options;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;

View File

@ -4,8 +4,9 @@ using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using Kyoo.Common.Models.Attributes;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
using Microsoft.AspNetCore.Mvc;
namespace Kyoo.Controllers

View File

@ -2,8 +2,9 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Kyoo.Common.Models.Attributes;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Attributes;
using Kyoo.Models.Options;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.StaticFiles;

View File

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
namespace Kyoo.Controllers
{

View File

@ -1,4 +1,4 @@
using Kyoo.Models.Permissions;
using Kyoo.Abstractions.Models.Permissions;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;

View File

@ -4,6 +4,7 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using Kyoo.Abstractions.Controllers;
using Kyoo.Models.Options;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

View File

@ -1,8 +1,9 @@
using System;
using Kyoo.Models;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Microsoft.Extensions.Logging;
namespace Kyoo.Controllers

View File

@ -4,8 +4,9 @@ using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Kyoo.Models.Options;
using Kyoo.Models.Watch;
using Microsoft.Extensions.Options;

View File

@ -3,7 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,7 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,7 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,7 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

View File

@ -3,8 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Kyoo.Models;
using Kyoo.Models.Exceptions;
using Kyoo.Abstractions.Controllers;
using Kyoo.Abstractions.Models;
using Kyoo.Abstractions.Models.Exceptions;
using Microsoft.EntityFrameworkCore;
namespace Kyoo.Controllers

Some files were not shown because too many files have changed in this diff Show More