mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Merge pull request #1959 from tidusjar/DotNetCore
Merge DotNetCore into master
This commit is contained in:
commit
424b107017
1601 changed files with 70155 additions and 151002 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -62,5 +62,4 @@
|
||||||
#*.rtf diff=astextplain
|
#*.rtf diff=astextplain
|
||||||
#*.RTF diff=astextplain
|
#*.RTF diff=astextplain
|
||||||
|
|
||||||
Ombi.UI/Content/* linguist-vendored
|
Old/* linguist-vendored
|
||||||
base.scss linguist-vendored=false
|
|
||||||
|
|
293
.gitchangelog.rc
Normal file
293
.gitchangelog.rc
Normal file
|
@ -0,0 +1,293 @@
|
||||||
|
# -*- coding: utf-8; mode: python -*-
|
||||||
|
##
|
||||||
|
## Format
|
||||||
|
##
|
||||||
|
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
|
||||||
|
##
|
||||||
|
## Description
|
||||||
|
##
|
||||||
|
## ACTION is one of 'chg', 'fix', 'new'
|
||||||
|
##
|
||||||
|
## Is WHAT the change is about.
|
||||||
|
##
|
||||||
|
## 'chg' is for refactor, small improvement, cosmetic changes...
|
||||||
|
## 'fix' is for bug fixes
|
||||||
|
## 'new' is for new features, big improvement
|
||||||
|
##
|
||||||
|
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
|
||||||
|
##
|
||||||
|
## Is WHO is concerned by the change.
|
||||||
|
##
|
||||||
|
## 'dev' is for developpers (API changes, refactors...)
|
||||||
|
## 'usr' is for final users (UI changes)
|
||||||
|
## 'pkg' is for packagers (packaging changes)
|
||||||
|
## 'test' is for testers (test only related changes)
|
||||||
|
## 'doc' is for doc guys (doc only changes)
|
||||||
|
##
|
||||||
|
## COMMIT_MSG is ... well ... the commit message itself.
|
||||||
|
##
|
||||||
|
## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
|
||||||
|
##
|
||||||
|
## They are preceded with a '!' or a '@' (prefer the former, as the
|
||||||
|
## latter is wrongly interpreted in github.) Commonly used tags are:
|
||||||
|
##
|
||||||
|
## 'refactor' is obviously for refactoring code only
|
||||||
|
## 'minor' is for a very meaningless change (a typo, adding a comment)
|
||||||
|
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
|
||||||
|
## 'wip' is for partial functionality but complete subfunctionality.
|
||||||
|
##
|
||||||
|
## Example:
|
||||||
|
##
|
||||||
|
## new: usr: support of bazaar implemented
|
||||||
|
## chg: re-indentend some lines !cosmetic
|
||||||
|
## new: dev: updated code to be compatible with last version of killer lib.
|
||||||
|
## fix: pkg: updated year of licence coverage.
|
||||||
|
## new: test: added a bunch of test around user usability of feature X.
|
||||||
|
## fix: typo in spelling my name in comment. !minor
|
||||||
|
##
|
||||||
|
## Please note that multi-line commit message are supported, and only the
|
||||||
|
## first line will be considered as the "summary" of the commit message. So
|
||||||
|
## tags, and other rules only applies to the summary. The body of the commit
|
||||||
|
## message will be displayed in the changelog without reformatting.
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## ``ignore_regexps`` is a line of regexps
|
||||||
|
##
|
||||||
|
## Any commit having its full commit message matching any regexp listed here
|
||||||
|
## will be ignored and won't be reported in the changelog.
|
||||||
|
##
|
||||||
|
ignore_regexps = [
|
||||||
|
r'@minor', r'!minor',
|
||||||
|
r'@cosmetic', r'!cosmetic',
|
||||||
|
r'@refactor', r'!refactor',
|
||||||
|
r'@wip', r'!wip',
|
||||||
|
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
|
||||||
|
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
|
||||||
|
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
|
||||||
|
r'^$', ## ignore commits with empty messages
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
## ``section_regexps`` is a list of 2-tuples associating a string label and a
|
||||||
|
## list of regexp
|
||||||
|
##
|
||||||
|
## Commit messages will be classified in sections thanks to this. Section
|
||||||
|
## titles are the label, and a commit is classified under this section if any
|
||||||
|
## of the regexps associated is matching.
|
||||||
|
##
|
||||||
|
## Please note that ``section_regexps`` will only classify commits and won't
|
||||||
|
## make any changes to the contents. So you'll probably want to go check
|
||||||
|
## ``subject_process`` (or ``body_process``) to do some changes to the subject,
|
||||||
|
## whenever you are tweaking this variable.
|
||||||
|
##
|
||||||
|
section_regexps = [
|
||||||
|
('**New Features**', [
|
||||||
|
r'^[aA]dded?\s*:?\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||||
|
r'^[uU]pdated?\s*:?\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||||
|
r'^[cC]hanged?\s*:?\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||||
|
]),
|
||||||
|
('**Fixes**', [
|
||||||
|
r'^(?![mM]erge\s*)'
|
||||||
|
]
|
||||||
|
),
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
## ``body_process`` is a callable
|
||||||
|
##
|
||||||
|
## This callable will be given the original body and result will
|
||||||
|
## be used in the changelog.
|
||||||
|
##
|
||||||
|
## Available constructs are:
|
||||||
|
##
|
||||||
|
## - any python callable that take one txt argument and return txt argument.
|
||||||
|
##
|
||||||
|
## - ReSub(pattern, replacement): will apply regexp substitution.
|
||||||
|
##
|
||||||
|
## - Indent(chars=" "): will indent the text with the prefix
|
||||||
|
## Please remember that template engines gets also to modify the text and
|
||||||
|
## will usually indent themselves the text if needed.
|
||||||
|
##
|
||||||
|
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
|
||||||
|
##
|
||||||
|
## - noop: do nothing
|
||||||
|
##
|
||||||
|
## - ucfirst: ensure the first letter is uppercase.
|
||||||
|
## (usually used in the ``subject_process`` pipeline)
|
||||||
|
##
|
||||||
|
## - final_dot: ensure text finishes with a dot
|
||||||
|
## (usually used in the ``subject_process`` pipeline)
|
||||||
|
##
|
||||||
|
## - strip: remove any spaces before or after the content of the string
|
||||||
|
##
|
||||||
|
## - SetIfEmpty(msg="No commit message."): will set the text to
|
||||||
|
## whatever given ``msg`` if the current text is empty.
|
||||||
|
##
|
||||||
|
## Additionally, you can `pipe` the provided filters, for instance:
|
||||||
|
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ")
|
||||||
|
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
|
||||||
|
#body_process = noop
|
||||||
|
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
|
||||||
|
|
||||||
|
|
||||||
|
## ``subject_process`` is a callable
|
||||||
|
##
|
||||||
|
## This callable will be given the original subject and result will
|
||||||
|
## be used in the changelog.
|
||||||
|
##
|
||||||
|
## Available constructs are those listed in ``body_process`` doc.
|
||||||
|
subject_process = (strip |
|
||||||
|
ReSub(r'^([cC]hanged|[fF]ixed|[aA]dded|[uU]pdated)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
|
||||||
|
SetIfEmpty("No commit message.") | ucfirst | final_dot)
|
||||||
|
|
||||||
|
|
||||||
|
## ``tag_filter_regexp`` is a regexp
|
||||||
|
##
|
||||||
|
## Tags that will be used for the changelog must match this regexp.
|
||||||
|
##
|
||||||
|
tag_filter_regexp = r'^v[0-9]+\.[0-9]+(\.[0-9]+)?$'
|
||||||
|
|
||||||
|
|
||||||
|
## ``unreleased_version_label`` is a string or a callable that outputs a string
|
||||||
|
##
|
||||||
|
## This label will be used as the changelog Title of the last set of changes
|
||||||
|
## between last valid tag and HEAD if any.
|
||||||
|
unreleased_version_label = "(unreleased)"
|
||||||
|
|
||||||
|
|
||||||
|
## ``output_engine`` is a callable
|
||||||
|
##
|
||||||
|
## This will change the output format of the generated changelog file
|
||||||
|
##
|
||||||
|
## Available choices are:
|
||||||
|
##
|
||||||
|
## - rest_py
|
||||||
|
##
|
||||||
|
## Legacy pure python engine, outputs ReSTructured text.
|
||||||
|
## This is the default.
|
||||||
|
##
|
||||||
|
## - mustache(<template_name>)
|
||||||
|
##
|
||||||
|
## Template name could be any of the available templates in
|
||||||
|
## ``templates/mustache/*.tpl``.
|
||||||
|
## Requires python package ``pystache``.
|
||||||
|
## Examples:
|
||||||
|
## - mustache("markdown")
|
||||||
|
## - mustache("restructuredtext")
|
||||||
|
##
|
||||||
|
## - makotemplate(<template_name>)
|
||||||
|
##
|
||||||
|
## Template name could be any of the available templates in
|
||||||
|
## ``templates/mako/*.tpl``.
|
||||||
|
## Requires python package ``mako``.
|
||||||
|
## Examples:
|
||||||
|
## - makotemplate("restructuredtext")
|
||||||
|
##
|
||||||
|
#output_engine = rest_py
|
||||||
|
#output_engine = mustache("restructuredtext")
|
||||||
|
output_engine = mustache("changelog.tpl")
|
||||||
|
#output_engine = makotemplate("restructuredtext")
|
||||||
|
|
||||||
|
|
||||||
|
## ``include_merge`` is a boolean
|
||||||
|
##
|
||||||
|
## This option tells git-log whether to include merge commits in the log.
|
||||||
|
## The default is to include them.
|
||||||
|
include_merge = False
|
||||||
|
|
||||||
|
|
||||||
|
## ``log_encoding`` is a string identifier
|
||||||
|
##
|
||||||
|
## This option tells gitchangelog what encoding is outputed by ``git log``.
|
||||||
|
## The default is to be clever about it: it checks ``git config`` for
|
||||||
|
## ``i18n.logOutputEncoding``, and if not found will default to git's own
|
||||||
|
## default: ``utf-8``.
|
||||||
|
#log_encoding = 'utf-8'
|
||||||
|
|
||||||
|
|
||||||
|
## ``publish`` is a callable
|
||||||
|
##
|
||||||
|
## Sets what ``gitchangelog`` should do with the output generated by
|
||||||
|
## the output engine. ``publish`` is a callable taking one argument
|
||||||
|
## that is an interator on lines from the output engine.
|
||||||
|
##
|
||||||
|
## Some helper callable are provided:
|
||||||
|
##
|
||||||
|
## Available choices are:
|
||||||
|
##
|
||||||
|
## - stdout
|
||||||
|
##
|
||||||
|
## Outputs directly to standard output
|
||||||
|
## (This is the default)
|
||||||
|
##
|
||||||
|
## - FileInsertAtFirstRegexMatch(file, pattern, idx=lamda m: m.start())
|
||||||
|
##
|
||||||
|
## Creates a callable that will parse given file for the given
|
||||||
|
## regex pattern and will insert the output in the file.
|
||||||
|
## ``idx`` is a callable that receive the matching object and
|
||||||
|
## must return a integer index point where to insert the
|
||||||
|
## the output in the file. Default is to return the position of
|
||||||
|
## the start of the matched string.
|
||||||
|
##
|
||||||
|
## - FileRegexSubst(file, pattern, replace, flags)
|
||||||
|
##
|
||||||
|
## Apply a replace inplace in the given file. Your regex pattern must
|
||||||
|
## take care of everything and might be more complex. Check the README
|
||||||
|
## for a complete copy-pastable example.
|
||||||
|
##
|
||||||
|
# publish = FileInsertIntoFirstRegexMatch(
|
||||||
|
# "CHANGELOG.rst",
|
||||||
|
# r'/(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/',
|
||||||
|
# idx=lambda m: m.start(1)
|
||||||
|
# )
|
||||||
|
#publish = stdout
|
||||||
|
|
||||||
|
def write_to_file(content):
|
||||||
|
with open("CHANGELOG.md", "w+") as f:
|
||||||
|
for chunk in content:
|
||||||
|
f.write(chunk)
|
||||||
|
|
||||||
|
publish = write_to_file
|
||||||
|
|
||||||
|
|
||||||
|
## ``revs`` is a list of callable or a list of string
|
||||||
|
##
|
||||||
|
## callable will be called to resolve as strings and allow dynamical
|
||||||
|
## computation of these. The result will be used as revisions for
|
||||||
|
## gitchangelog (as if directly stated on the command line). This allows
|
||||||
|
## to filter exaclty which commits will be read by gitchangelog.
|
||||||
|
##
|
||||||
|
## To get a full documentation on the format of these strings, please
|
||||||
|
## refer to the ``git rev-list`` arguments. There are many examples.
|
||||||
|
##
|
||||||
|
## Using callables is especially useful, for instance, if you
|
||||||
|
## are using gitchangelog to generate incrementally your changelog.
|
||||||
|
##
|
||||||
|
## Some helpers are provided, you can use them::
|
||||||
|
##
|
||||||
|
## - FileFirstRegexMatch(file, pattern): will return a callable that will
|
||||||
|
## return the first string match for the given pattern in the given file.
|
||||||
|
## If you use named sub-patterns in your regex pattern, it'll output only
|
||||||
|
## the string matching the regex pattern named "rev".
|
||||||
|
##
|
||||||
|
## - Caret(rev): will return the rev prefixed by a "^", which is a
|
||||||
|
## way to remove the given revision and all its ancestor.
|
||||||
|
##
|
||||||
|
## Please note that if you provide a rev-list on the command line, it'll
|
||||||
|
## replace this value (which will then be ignored).
|
||||||
|
##
|
||||||
|
## If empty, then ``gitchangelog`` will act as it had to generate a full
|
||||||
|
## changelog.
|
||||||
|
##
|
||||||
|
## The default is to use all commits to make the changelog.
|
||||||
|
#revs = ["^1.0.3", ]
|
||||||
|
#revs = [
|
||||||
|
# Caret(
|
||||||
|
# FileFirstRegexMatch(
|
||||||
|
# "CHANGELOG.rst",
|
||||||
|
# r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
|
||||||
|
# "HEAD"
|
||||||
|
#]
|
||||||
|
revs = []
|
35
.github/ISSUE_TEMPLATE.md
vendored
35
.github/ISSUE_TEMPLATE.md
vendored
|
@ -1,36 +1,22 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
!! Version 2.X is not supported anymore. Pleas don't open a issue for the 2.x version.
|
|
||||||
See https://github.com/tidusjar/Ombi/issues/1455 for more information.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
|
|
||||||
!! Please use the Support / bug report template, otherwise we will close the Github issue !!
|
!! Please use the Support / bug report template, otherwise we will close the Github issue !!
|
||||||
|
|
||||||
|
Version 2.X is not supported anymore. Please don't open a issue for the 2.x version.
|
||||||
|
See https://github.com/tidusjar/Ombi/issues/1455 for more information.
|
||||||
|
|
||||||
(Pleas submit a feature request over here: http://feathub.com/tidusjar/Ombi)
|
(Pleas submit a feature request over here: http://feathub.com/tidusjar/Ombi)
|
||||||
|
|
||||||
|
|
||||||
--->
|
--->
|
||||||
|
|
||||||
#### Ombi Version:
|
#### Ombi build Version:
|
||||||
|
|
||||||
V 1.XX.XX
|
V 3.0.XX
|
||||||
|
|
||||||
#### Update Branch:
|
#### Update Branch:
|
||||||
|
|
||||||
Stable/Early Access Preview/development
|
Open Beta
|
||||||
|
|
||||||
#### Media Sever:
|
#### Media Sever:
|
||||||
|
|
||||||
|
@ -44,15 +30,12 @@ Plex/Emby
|
||||||
|
|
||||||
(Place text here)
|
(Place text here)
|
||||||
|
|
||||||
#### Mono Version (only if your not on windows)
|
|
||||||
|
|
||||||
(Place text here)
|
#### Ombi Applicable Logs (from `/logs/` directory or the Admin page):
|
||||||
|
|
||||||
#### Applicable Logs (from `/logs/` directory or the Admin page):
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
(Logs go here. Don't remove the ``` tags for showing your logs correctly. Please make sure you remove any personal information from the logs)
|
(Logs go here. Don't remove the ' tags for showing your logs correctly. Please make sure you remove any personal information from the logs)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -237,3 +237,9 @@ _Pvt_Extensions
|
||||||
*.ncrunchproject
|
*.ncrunchproject
|
||||||
*.ncrunchsolution
|
*.ncrunchsolution
|
||||||
|
|
||||||
|
*.txt
|
||||||
|
|
||||||
|
|
||||||
|
# CAKE - C# Make
|
||||||
|
/Tools/*
|
||||||
|
*.db-journal
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
language: csharp
|
language: csharp
|
||||||
solution: Ombi.sln
|
solution: src/Ombi.sln
|
||||||
install:
|
install:
|
||||||
- mono Tools/nuget.exe restore Ombi.sln
|
- mono Tools/nuget.exe restore Ombi.sln
|
||||||
- nuget install NUnit.Runners -OutputDirectory testrunner
|
- nuget install NUnit.Runners -OutputDirectory testrunner
|
||||||
|
|
Binary file not shown.
12
BuildTask.ps1
Normal file
12
BuildTask.ps1
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
param([String]$env='local')
|
||||||
|
|
||||||
|
"Environment: " + $env | Write-Output;
|
||||||
|
"Build Version: " + $env:APPVEYOR_BUILD_VERSION | Write-Output;
|
||||||
|
"Base Path: " + $env:APPVEYOR_BUILD_FOLDER | Write-Output;
|
||||||
|
|
||||||
|
$appSettingsPath = $env:APPVEYOR_BUILD_FOLDER + '\src\Ombi\appsettings.json'
|
||||||
|
$appSettings = Get-Content $appSettingsPath -raw
|
||||||
|
$appSettings = $appSettings.Replace("{{VERSIONNUMBER}}",$env:APPVEYOR_BUILD_VERSION);
|
||||||
|
$appSettings = $appSettings.Replace("{{BRANCH}}",$env:APPVEYOR_REPO_BRANCH);
|
||||||
|
Set-Content -Path $appSettingsPath -Value $appSettings
|
3888
CHANGELOG.md
Normal file
3888
CHANGELOG.md
Normal file
File diff suppressed because it is too large
Load diff
1
GitVersion.yml
Normal file
1
GitVersion.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
next-version: 3.0.0
|
|
@ -1,40 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IApiRequest.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 RestSharp;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IApiRequest
|
|
||||||
{
|
|
||||||
T Execute<T>(IRestRequest request, Uri baseUri) where T : new();
|
|
||||||
IRestResponse Execute(IRestRequest request, Uri baseUri);
|
|
||||||
T ExecuteXml<T>(IRestRequest request, Uri baseUri) where T : class;
|
|
||||||
T ExecuteJson<T>(IRestRequest request, Uri baseUri) where T : new();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
using Ombi.Api.Models.Appveyor;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IAppveyorApi
|
|
||||||
{
|
|
||||||
AppveyorProjects GetProjectHistory(string branchName, int records = 10);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: ICouchPotatoApi.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 Ombi.Api.Models.Movie;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface ICouchPotatoApi
|
|
||||||
{
|
|
||||||
bool AddMovie(string imdbid, string apiKey, string title, Uri baseUrl, string profileID = default(string));
|
|
||||||
CouchPotatoStatus GetStatus(Uri url, string apiKey);
|
|
||||||
CouchPotatoProfiles GetProfiles(Uri url, string apiKey);
|
|
||||||
CouchPotatoMovies GetMovies(Uri baseUrl, string apiKey, string[] status);
|
|
||||||
|
|
||||||
CouchPotatoApiKey GetApiKey(Uri baseUrl, string username, string password);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Ombi.Api.Models.Emby;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IEmbyApi
|
|
||||||
{
|
|
||||||
EmbyItemContainer<EmbyMovieItem> GetAllMovies(string apiKey, string userId, Uri baseUri);
|
|
||||||
EmbyItemContainer<EmbySeriesItem> GetAllShows(string apiKey, string userId, Uri baseUri);
|
|
||||||
EmbyItemContainer<EmbyEpisodeItem> GetAllEpisodes(string apiKey, string userId, Uri baseUri);
|
|
||||||
EmbyItemContainer<EmbyMovieInformation> GetCollection(string mediaId, string apiKey, string userId, Uri baseUrl);
|
|
||||||
List<EmbyUser> GetUsers(Uri baseUri, string apiKey);
|
|
||||||
EmbyItemContainer<EmbyLibrary> ViewLibrary(string apiKey, string userId, Uri baseUri);
|
|
||||||
EmbyInformation GetInformation(string mediaId, EmbyMediaType type, string apiKey, string userId, Uri baseUri);
|
|
||||||
EmbyUser LogIn(string username, string password, string apiKey, Uri baseUri);
|
|
||||||
EmbySystemInfo GetSystemInformation(string apiKey, Uri baseUrl);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IHeadphonesApi.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.Threading.Tasks;
|
|
||||||
using Ombi.Api.Models.Music;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IHeadphonesApi
|
|
||||||
{
|
|
||||||
Task<bool> AddAlbum(string apiKey, Uri baseUrl, string albumId);
|
|
||||||
HeadphonesVersion GetVersion(string apiKey, Uri baseUrl);
|
|
||||||
Task<bool> AddArtist(string apiKey, Uri baseUrl, string artistId);
|
|
||||||
Task<bool> QueueAlbum(string apiKey, Uri baseUrl, string albumId);
|
|
||||||
Task<List<HeadphonesGetIndex>> GetIndex(string apiKey, Uri baseUrl);
|
|
||||||
Task<bool> RefreshArtist(string apiKey, Uri baseUrl, string artistId);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IMusicBrainzApi.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 Ombi.Api.Models.Music;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IMusicBrainzApi
|
|
||||||
{
|
|
||||||
MusicBrainzSearchResults SearchAlbum(string searchTerm);
|
|
||||||
MusicBrainzCoverArt GetCoverArt(string releaseId);
|
|
||||||
MusicBrainzReleaseInfo GetAlbum(string releaseId);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: INetflixApi.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 Ombi.Api.Models.Netflix;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface INetflixApi
|
|
||||||
{
|
|
||||||
NetflixMovieResult CheckNetflix(string title, string year = null);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,50 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IPlexApi.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 Ombi.Api.Models.Plex;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IPlexApi
|
|
||||||
{
|
|
||||||
PlexAuthentication SignIn(string username, string password);
|
|
||||||
PlexFriends GetUsers(string authToken);
|
|
||||||
PlexSearch SearchContent(string authToken, string searchTerm, Uri plexFullHost);
|
|
||||||
PlexStatus GetStatus(string authToken, Uri uri);
|
|
||||||
PlexAccount GetAccount(string authToken);
|
|
||||||
PlexLibraries GetLibrarySections(string authToken, Uri plexFullHost);
|
|
||||||
PlexSearch GetLibrary(string authToken, Uri plexFullHost, string libraryId);
|
|
||||||
PlexMetadata GetMetadata(string authToken, Uri plexFullHost, string itemId);
|
|
||||||
PlexEpisodeMetadata GetEpisodeMetaData(string authToken, Uri host, string ratingKey);
|
|
||||||
PlexSearch GetAllEpisodes(string authToken, Uri host, string section, int startPage, int returnCount);
|
|
||||||
PlexServer GetServer(string authToken);
|
|
||||||
PlexSeasonMetadata GetSeasons(string authToken, Uri plexFullHost, string ratingKey);
|
|
||||||
RecentlyAddedModelOld RecentlyAddedOld(string authToken, Uri plexFullHost, string sectionId);
|
|
||||||
PlexRecentlyAddedModel RecentlyAdded(string authToken, Uri plexFullHost, string sectionId);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IPushbulletApi.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.Threading.Tasks;
|
|
||||||
using Ombi.Api.Models.Notifications;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IPushbulletApi
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Pushes the specified message.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="accessToken">The access token.</param>
|
|
||||||
/// <param name="title">The title.</param>
|
|
||||||
/// <param name="message">The message.</param>
|
|
||||||
/// <param name="deviceIdentifier">The device identifier.</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<PushbulletResponse> PushAsync(string accessToken, string title, string message, string deviceIdentifier = default(string));
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IPushoverApi.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.Threading.Tasks;
|
|
||||||
using Ombi.Api.Models.Notifications;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IPushoverApi
|
|
||||||
{
|
|
||||||
Task<PushoverResponse> PushAsync(string accessToken, string message, string userToken);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Ombi.Api.Models.Radarr;
|
|
||||||
using Ombi.Api.Models.Sonarr;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IRadarrApi
|
|
||||||
{
|
|
||||||
RadarrAddMovie AddMovie(int tmdbId, string title, int year, int qualityId, string rootPath, string apiKey, Uri baseUrl, bool searchNow = false);
|
|
||||||
List<RadarrMovieResponse> GetMovies(string apiKey, Uri baseUrl);
|
|
||||||
List<SonarrProfile> GetProfiles(string apiKey, Uri baseUrl);
|
|
||||||
SystemStatus SystemStatus(string apiKey, Uri baseUrl);
|
|
||||||
List<SonarrRootFolder> GetRootFolders(string apiKey, Uri baseUrl);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: ISickRageApi.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.Threading.Tasks;
|
|
||||||
using Ombi.Api.Models.SickRage;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface ISickRageApi
|
|
||||||
{
|
|
||||||
Task<SickRageTvAdd> AddSeries(int tvdbId, int seasoncount, int[] seasons, string quality, string apiKey,
|
|
||||||
Uri baseUrl);
|
|
||||||
|
|
||||||
SickRagePing Ping(string apiKey, Uri baseUrl);
|
|
||||||
|
|
||||||
Task<SickRageTvAdd> AddSeason(int tvdbId, int season, string apiKey, Uri baseUrl);
|
|
||||||
|
|
||||||
Task<SickrageShows> GetShows(string apiKey, Uri baseUrl);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: ISlackApi.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.Threading.Tasks;
|
|
||||||
using Ombi.Api.Models.Notifications;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface ISlackApi
|
|
||||||
{
|
|
||||||
Task<string> PushAsync(string team, string token, string service, SlackNotificationBody message);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,63 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: ISonarrApi.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 Ombi.Api.Models.Sonarr;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface ISonarrApi
|
|
||||||
{
|
|
||||||
List<SonarrProfile> GetProfiles(string apiKey, Uri baseUrl);
|
|
||||||
|
|
||||||
SonarrAddSeries AddSeries(int tvdbId, string title, int qualityId, bool seasonFolders, string rootPath,
|
|
||||||
int seasonCount, int[] seasons, string apiKey, Uri baseUrl, bool monitor = true,
|
|
||||||
bool searchForMissingEpisodes = false);
|
|
||||||
|
|
||||||
SonarrAddSeries AddSeriesNew(int tvdbId, string title, int qualityId, bool seasonFolders, string rootPath,
|
|
||||||
int[] seasons, string apiKey, Uri baseUrl, bool monitor = true,
|
|
||||||
bool searchForMissingEpisodes = false);
|
|
||||||
|
|
||||||
SystemStatus SystemStatus(string apiKey, Uri baseUrl);
|
|
||||||
List<SonarrRootFolder> GetRootFolders(string apiKey, Uri baseUrl);
|
|
||||||
|
|
||||||
List<Series> GetSeries(string apiKey, Uri baseUrl);
|
|
||||||
Series GetSeries(string seriesId, string apiKey, Uri baseUrl);
|
|
||||||
IEnumerable<SonarrEpisodes> GetEpisodes(string seriesId, string apiKey, Uri baseUrl);
|
|
||||||
SonarrEpisode GetEpisode(string episodeId, string apiKey, Uri baseUrl);
|
|
||||||
SonarrEpisode UpdateEpisode(SonarrEpisode episodeInfo, string apiKey, Uri baseUrl);
|
|
||||||
SonarrEpisodes UpdateEpisode(SonarrEpisodes episodeInfo, string apiKey, Uri baseUrl);
|
|
||||||
SonarrAddEpisodeResult SearchForEpisodes(int[] episodeIds, string apiKey, Uri baseUrl);
|
|
||||||
Series UpdateSeries(Series series, string apiKey, Uri baseUrl);
|
|
||||||
SonarrSeasonSearchResult SearchForSeason(int seriesId, int seasonNumber, string apiKey, Uri baseUrl);
|
|
||||||
SonarrSeriesSearchResult SearchForSeries(int seriesId, string apiKey, Uri baseUrl);
|
|
||||||
|
|
||||||
|
|
||||||
SonarrAddSeries AddSeries(SonarrAddSeries series, string apiKey, Uri baseUrl);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: IWatcherApi.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 Ombi.Api.Models.Watcher;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Interfaces
|
|
||||||
{
|
|
||||||
public interface IWatcherApi
|
|
||||||
{
|
|
||||||
WatcherAddMovieResult AddMovie(string imdbId, string apiKey, Uri baseUrl);
|
|
||||||
WatcherListStatusResultContainer ListMovies(string apiKey, Uri baseUrl);
|
|
||||||
WatcherListStatusResultContainer ListMovies(string apiKey, Uri baseUrl, string imdbId);
|
|
||||||
WatcherVersion Version(string apiKey, Uri baseUri);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,93 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{95834072-A675-415D-AA8F-877C91623810}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Ombi.Api.Interfaces</RootNamespace>
|
|
||||||
<AssemblyName>Ombi.Api.Interfaces</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="RestSharp, Version=105.2.3.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\RestSharp.105.2.3\lib\net45\RestSharp.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="TraktApiSharp, Version=0.8.0.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\TraktApiSharp.0.8.0\lib\portable-net45+netcore45+wpa81\TraktApiSharp.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="IApiRequest.cs" />
|
|
||||||
<Compile Include="IAppveyorApi.cs" />
|
|
||||||
<Compile Include="ICouchPotatoApi.cs" />
|
|
||||||
<Compile Include="IDiscordApi.cs" />
|
|
||||||
<Compile Include="IEmbyApi.cs" />
|
|
||||||
<Compile Include="IHeadphonesApi.cs" />
|
|
||||||
<Compile Include="IMusicBrainzApi.cs" />
|
|
||||||
<Compile Include="INetflixApi.cs" />
|
|
||||||
<Compile Include="IPlexApi.cs" />
|
|
||||||
<Compile Include="IPushbulletApi.cs" />
|
|
||||||
<Compile Include="IRadarrApi.cs" />
|
|
||||||
<Compile Include="ISlackApi.cs" />
|
|
||||||
<Compile Include="IPushoverApi.cs" />
|
|
||||||
<Compile Include="ISickRageApi.cs" />
|
|
||||||
<Compile Include="ISonarrApi.cs" />
|
|
||||||
<Compile Include="ITraktApi.cs" />
|
|
||||||
<Compile Include="IWatcherApi.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Ombi.Api.Models\Ombi.Api.Models.csproj">
|
|
||||||
<Project>{CB37A5F8-6DFC-4554-99D3-A42B502E4591}</Project>
|
|
||||||
<Name>Ombi.Api.Models</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,38 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("Ombi.Api.Interfaces")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Ombi.Api.Interfaces")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
|
||||||
// to COM components. If you need to access a type in this assembly from
|
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|
||||||
[assembly: Guid("95834072-a675-415d-aa8f-877c91623810")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
||||||
[assembly: AssemblyInformationalVersionAttribute("1.0.0.0")]
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
|
||||||
<package id="RestSharp" version="105.2.3" targetFramework="net45" />
|
|
||||||
<package id="TraktApiSharp" version="0.8.0" targetFramework="net45" />
|
|
||||||
</packages>
|
|
|
@ -1,114 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: AppveyorProject.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Appveyor
|
|
||||||
{
|
|
||||||
public class AppveyorProjects
|
|
||||||
{
|
|
||||||
public Project project { get; set; }
|
|
||||||
public Build[] builds { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Project
|
|
||||||
{
|
|
||||||
public int projectId { get; set; }
|
|
||||||
public int accountId { get; set; }
|
|
||||||
public string accountName { get; set; }
|
|
||||||
public object[] builds { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string slug { get; set; }
|
|
||||||
public string repositoryType { get; set; }
|
|
||||||
public string repositoryScm { get; set; }
|
|
||||||
public string repositoryName { get; set; }
|
|
||||||
public bool isPrivate { get; set; }
|
|
||||||
public bool skipBranchesWithoutAppveyorYml { get; set; }
|
|
||||||
public bool enableSecureVariablesInPullRequests { get; set; }
|
|
||||||
public bool enableSecureVariablesInPullRequestsFromSameRepo { get; set; }
|
|
||||||
public bool enableDeploymentInPullRequests { get; set; }
|
|
||||||
public bool rollingBuilds { get; set; }
|
|
||||||
public bool alwaysBuildClosedPullRequests { get; set; }
|
|
||||||
public string tags { get; set; }
|
|
||||||
public Securitydescriptor securityDescriptor { get; set; }
|
|
||||||
public DateTime created { get; set; }
|
|
||||||
public DateTime updated { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Securitydescriptor
|
|
||||||
{
|
|
||||||
public Accessrightdefinition[] accessRightDefinitions { get; set; }
|
|
||||||
public Roleace[] roleAces { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Accessrightdefinition
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public string description { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Roleace
|
|
||||||
{
|
|
||||||
public int roleId { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public bool isAdmin { get; set; }
|
|
||||||
public Accessright[] accessRights { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Accessright
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public bool allowed { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Build
|
|
||||||
{
|
|
||||||
public int buildId { get; set; }
|
|
||||||
public object[] jobs { get; set; }
|
|
||||||
public int buildNumber { get; set; }
|
|
||||||
public string version { get; set; }
|
|
||||||
public string message { get; set; }
|
|
||||||
public string messageExtended { get; set; }
|
|
||||||
public string branch { get; set; }
|
|
||||||
public bool isTag { get; set; }
|
|
||||||
public string commitId { get; set; }
|
|
||||||
public string authorName { get; set; }
|
|
||||||
public string authorUsername { get; set; }
|
|
||||||
public string committerName { get; set; }
|
|
||||||
public string committerUsername { get; set; }
|
|
||||||
public DateTime committed { get; set; }
|
|
||||||
public object[] messages { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public DateTime started { get; set; }
|
|
||||||
public DateTime finished { get; set; }
|
|
||||||
public DateTime created { get; set; }
|
|
||||||
public DateTime updated { get; set; }
|
|
||||||
public string pullRequestId { get; set; }
|
|
||||||
public string pullRequestName { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: MovieInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyChapter
|
|
||||||
{
|
|
||||||
public long StartPositionTicks { get; set; }
|
|
||||||
public string Name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyLibrary.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyImagetags
|
|
||||||
{
|
|
||||||
public string Primary { get; set; }
|
|
||||||
public string Logo { get; set; }
|
|
||||||
public string Thumb { get; set; }
|
|
||||||
|
|
||||||
public string Banner { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyInformation
|
|
||||||
{
|
|
||||||
public EmbySeriesInformation SeriesInformation { get; set; }
|
|
||||||
public EmbyMovieInformation MovieInformation { get; set; }
|
|
||||||
public EmbyEpisodeInformation EpisodeInformation { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,47 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyLibrary.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyLibrary
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public string ServerId { get; set; }
|
|
||||||
public string Id { get; set; }
|
|
||||||
public bool HasDynamicCategories { get; set; }
|
|
||||||
public string PlayAccess { get; set; }
|
|
||||||
public bool IsFolder { get; set; }
|
|
||||||
public string Type { get; set; }
|
|
||||||
public EmbyUserdata UserData { get; set; }
|
|
||||||
public int ChildCount { get; set; }
|
|
||||||
public string CollectionType { get; set; }
|
|
||||||
public string OriginalCollectionType { get; set; }
|
|
||||||
public EmbyImagetags ImageTags { get; set; }
|
|
||||||
public object[] BackdropImageTags { get; set; }
|
|
||||||
public string LocationType { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,59 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: MovieInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyMediasource
|
|
||||||
{
|
|
||||||
public string Protocol { get; set; }
|
|
||||||
public string Id { get; set; }
|
|
||||||
public string Path { get; set; }
|
|
||||||
public string Type { get; set; }
|
|
||||||
public string Container { get; set; }
|
|
||||||
public string Name { get; set; }
|
|
||||||
public bool IsRemote { get; set; }
|
|
||||||
public string ETag { get; set; }
|
|
||||||
public long RunTimeTicks { get; set; }
|
|
||||||
public bool ReadAtNativeFramerate { get; set; }
|
|
||||||
public bool SupportsTranscoding { get; set; }
|
|
||||||
public bool SupportsDirectStream { get; set; }
|
|
||||||
public bool SupportsDirectPlay { get; set; }
|
|
||||||
public bool IsInfiniteStream { get; set; }
|
|
||||||
public bool RequiresOpening { get; set; }
|
|
||||||
public bool RequiresClosing { get; set; }
|
|
||||||
public bool SupportsProbing { get; set; }
|
|
||||||
public string VideoType { get; set; }
|
|
||||||
public EmbyMediastream[] MediaStreams { get; set; }
|
|
||||||
public object[] PlayableStreamFileNames { get; set; }
|
|
||||||
public object[] Formats { get; set; }
|
|
||||||
public int Bitrate { get; set; }
|
|
||||||
public EmbyRequiredhttpheaders RequiredHttpHeaders { get; set; }
|
|
||||||
public int DefaultAudioStreamIndex { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,64 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: MovieInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyMediastream
|
|
||||||
{
|
|
||||||
public string Codec { get; set; }
|
|
||||||
public string Language { get; set; }
|
|
||||||
public string TimeBase { get; set; }
|
|
||||||
public string CodecTimeBase { get; set; }
|
|
||||||
public string NalLengthSize { get; set; }
|
|
||||||
public bool IsInterlaced { get; set; }
|
|
||||||
public bool IsAVC { get; set; }
|
|
||||||
public int BitRate { get; set; }
|
|
||||||
public int BitDepth { get; set; }
|
|
||||||
public int RefFrames { get; set; }
|
|
||||||
public bool IsDefault { get; set; }
|
|
||||||
public bool IsForced { get; set; }
|
|
||||||
public int Height { get; set; }
|
|
||||||
public int Width { get; set; }
|
|
||||||
public float AverageFrameRate { get; set; }
|
|
||||||
public float RealFrameRate { get; set; }
|
|
||||||
public string Profile { get; set; }
|
|
||||||
public string Type { get; set; }
|
|
||||||
public string AspectRatio { get; set; }
|
|
||||||
public int Index { get; set; }
|
|
||||||
public bool IsExternal { get; set; }
|
|
||||||
public bool IsTextSubtitleStream { get; set; }
|
|
||||||
public bool SupportsExternalStream { get; set; }
|
|
||||||
public string PixelFormat { get; set; }
|
|
||||||
public int Level { get; set; }
|
|
||||||
public bool IsAnamorphic { get; set; }
|
|
||||||
public string DisplayTitle { get; set; }
|
|
||||||
public string ChannelLayout { get; set; }
|
|
||||||
public int Channels { get; set; }
|
|
||||||
public int SampleRate { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,59 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyMovieItem.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyMovieItem
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public string ServerId { get; set; }
|
|
||||||
public string Id { get; set; }
|
|
||||||
public string Container { get; set; }
|
|
||||||
public DateTime PremiereDate { get; set; }
|
|
||||||
public object[] ProductionLocations { get; set; }
|
|
||||||
public string OfficialRating { get; set; }
|
|
||||||
public float CommunityRating { get; set; }
|
|
||||||
public long RunTimeTicks { get; set; }
|
|
||||||
public string PlayAccess { get; set; }
|
|
||||||
public int ProductionYear { get; set; }
|
|
||||||
public bool IsPlaceHolder { get; set; }
|
|
||||||
public bool IsHD { get; set; }
|
|
||||||
public bool IsFolder { get; set; }
|
|
||||||
public string Type { get; set; }
|
|
||||||
public int LocalTrailerCount { get; set; }
|
|
||||||
public EmbyUserdata UserData { get; set; }
|
|
||||||
public string VideoType { get; set; }
|
|
||||||
public EmbyImagetags ImageTags { get; set; }
|
|
||||||
public string[] BackdropImageTags { get; set; }
|
|
||||||
public string LocationType { get; set; }
|
|
||||||
public string MediaType { get; set; }
|
|
||||||
public bool HasSubtitles { get; set; }
|
|
||||||
public int CriticRating { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: MovieInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyRemotetrailer
|
|
||||||
{
|
|
||||||
public string Url { get; set; }
|
|
||||||
public string Name { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbySeriesItem.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbySeriesItem
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public string ServerId { get; set; }
|
|
||||||
public string Id { get; set; }
|
|
||||||
public DateTime PremiereDate { get; set; }
|
|
||||||
public string OfficialRating { get; set; }
|
|
||||||
public float CommunityRating { get; set; }
|
|
||||||
public long RunTimeTicks { get; set; }
|
|
||||||
public string PlayAccess { get; set; }
|
|
||||||
public int ProductionYear { get; set; }
|
|
||||||
public bool IsFolder { get; set; }
|
|
||||||
public string Type { get; set; }
|
|
||||||
public int LocalTrailerCount { get; set; }
|
|
||||||
public EmbyUserdata UserData { get; set; }
|
|
||||||
public int ChildCount { get; set; }
|
|
||||||
public string Status { get; set; }
|
|
||||||
public string AirTime { get; set; }
|
|
||||||
public string[] AirDays { get; set; }
|
|
||||||
public EmbyImagetags ImageTags { get; set; }
|
|
||||||
public string[] BackdropImageTags { get; set; }
|
|
||||||
public string LocationType { get; set; }
|
|
||||||
public DateTime EndDate { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyEpisodeInformation.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 Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbySeriesstudioinfo
|
|
||||||
{
|
|
||||||
public string Name { get; set; }
|
|
||||||
public string Id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: EmbyLibrary.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Emby
|
|
||||||
{
|
|
||||||
public class EmbyUserdata
|
|
||||||
{
|
|
||||||
public double PlaybackPositionTicks { get; set; }
|
|
||||||
public int PlayCount { get; set; }
|
|
||||||
public bool IsFavorite { get; set; }
|
|
||||||
public bool Played { get; set; }
|
|
||||||
public string Key { get; set; }
|
|
||||||
public DateTime LastPlayedDate { get; set; }
|
|
||||||
public int UnplayedItemCount { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,119 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: CouchPotatoAdd.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Movie
|
|
||||||
{
|
|
||||||
public class CouchPotatoAdd
|
|
||||||
{
|
|
||||||
public Movie movie { get; set; }
|
|
||||||
public bool success { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Rating
|
|
||||||
{
|
|
||||||
public List<string> imdb { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Images
|
|
||||||
{
|
|
||||||
public List<string> actors { get; set; }
|
|
||||||
public List<string> backdrop { get; set; }
|
|
||||||
public List<string> backdrop_original { get; set; }
|
|
||||||
public List<object> banner { get; set; }
|
|
||||||
public List<object> clear_art { get; set; }
|
|
||||||
public List<object> disc_art { get; set; }
|
|
||||||
public List<object> extra_fanart { get; set; }
|
|
||||||
public List<object> extra_thumbs { get; set; }
|
|
||||||
public List<object> landscape { get; set; }
|
|
||||||
public List<object> logo { get; set; }
|
|
||||||
public List<string> poster { get; set; }
|
|
||||||
public List<string> poster_original { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Info
|
|
||||||
{
|
|
||||||
public List<string> actor_roles { get; set; }
|
|
||||||
public List<string> actors { get; set; }
|
|
||||||
public List<string> directors { get; set; }
|
|
||||||
public List<string> genres { get; set; }
|
|
||||||
public Images images { get; set; }
|
|
||||||
public string imdb { get; set; }
|
|
||||||
public string mpaa { get; set; }
|
|
||||||
public string original_title { get; set; }
|
|
||||||
public string plot { get; set; }
|
|
||||||
public Rating rating { get; set; }
|
|
||||||
public Release_Date release_date { get; set; }
|
|
||||||
public string released { get; set; }
|
|
||||||
public int runtime { get; set; }
|
|
||||||
public string tagline { get; set; }
|
|
||||||
public List<string> titles { get; set; }
|
|
||||||
public int tmdb_id { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public bool via_imdb { get; set; }
|
|
||||||
public bool via_tmdb { get; set; }
|
|
||||||
public List<string> writers { get; set; }
|
|
||||||
public int year { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Release_Date
|
|
||||||
{
|
|
||||||
public bool bluray { get; set; }
|
|
||||||
public int dvd { get; set; }
|
|
||||||
public int expires { get; set; }
|
|
||||||
public int theater { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Files
|
|
||||||
{
|
|
||||||
public List<string> image_poster { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Identifiers
|
|
||||||
{
|
|
||||||
public string imdb { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Movie
|
|
||||||
{
|
|
||||||
public string _id { get; set; }
|
|
||||||
public string _rev { get; set; }
|
|
||||||
public string _t { get; set; }
|
|
||||||
public object category_id { get; set; }
|
|
||||||
public Files files { get; set; }
|
|
||||||
public Identifiers identifiers { get; set; }
|
|
||||||
public Info info { get; set; }
|
|
||||||
public int last_edit { get; set; }
|
|
||||||
public string profile_id { get; set; }
|
|
||||||
public List<object> releases { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public List<object> tags { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: CouchPotatoApiKey.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Movie
|
|
||||||
{
|
|
||||||
public class CouchPotatoApiKey
|
|
||||||
{
|
|
||||||
[JsonProperty("success")]
|
|
||||||
public bool success { get; set; }
|
|
||||||
[JsonProperty("api_key")]
|
|
||||||
public string ApiKey { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Movie
|
|
||||||
{
|
|
||||||
public class CouchPotatoMovies
|
|
||||||
{
|
|
||||||
public List<Movie> movies { get; set; }
|
|
||||||
public int total { get; set; }
|
|
||||||
public bool success { get; set; }
|
|
||||||
public bool empty { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: CouchPotatoProfiles.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Movie
|
|
||||||
{
|
|
||||||
public class ProfileList
|
|
||||||
{
|
|
||||||
public bool core { get; set; }
|
|
||||||
public bool hide { get; set; }
|
|
||||||
public string _rev { get; set; }
|
|
||||||
public List<bool> finish { get; set; }
|
|
||||||
public List<string> qualities { get; set; }
|
|
||||||
public string _id { get; set; }
|
|
||||||
public string _t { get; set; }
|
|
||||||
public string label { get; set; }
|
|
||||||
public int minimum_score { get; set; }
|
|
||||||
public List<int> stop_after { get; set; }
|
|
||||||
public List<object> wait_for { get; set; }
|
|
||||||
public int order { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "3d")]
|
|
||||||
public List<object> threeD { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class CouchPotatoProfiles
|
|
||||||
{
|
|
||||||
public List<ProfileList> list { get; set; }
|
|
||||||
public bool success { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,104 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: TmdbMovieDetails.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Movie
|
|
||||||
{
|
|
||||||
|
|
||||||
public class Genre
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ProductionCompany
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ProductionCountry
|
|
||||||
{
|
|
||||||
public string iso_3166_1 { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SpokenLanguage
|
|
||||||
{
|
|
||||||
public string iso_639_1 { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Result
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
public string iso_639_1 { get; set; }
|
|
||||||
public string iso_3166_1 { get; set; }
|
|
||||||
public string key { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string site { get; set; }
|
|
||||||
public int size { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Videos
|
|
||||||
{
|
|
||||||
public List<Result> results { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TmdbMovieDetails
|
|
||||||
{
|
|
||||||
public bool adult { get; set; }
|
|
||||||
public string backdrop_path { get; set; }
|
|
||||||
public object belongs_to_collection { get; set; }
|
|
||||||
public int budget { get; set; }
|
|
||||||
public List<Genre> genres { get; set; }
|
|
||||||
public string homepage { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public string imdb_id { get; set; }
|
|
||||||
public string original_language { get; set; }
|
|
||||||
public string original_title { get; set; }
|
|
||||||
public string overview { get; set; }
|
|
||||||
public double popularity { get; set; }
|
|
||||||
public string poster_path { get; set; }
|
|
||||||
public List<ProductionCompany> production_companies { get; set; }
|
|
||||||
public List<ProductionCountry> production_countries { get; set; }
|
|
||||||
public string release_date { get; set; }
|
|
||||||
public int revenue { get; set; }
|
|
||||||
public int runtime { get; set; }
|
|
||||||
public List<SpokenLanguage> spoken_languages { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string tagline { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public bool video { get; set; }
|
|
||||||
public double vote_average { get; set; }
|
|
||||||
public int vote_count { get; set; }
|
|
||||||
public Videos videos { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: HeadphonesAlbumSearchResult.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 Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class HeadphonesAlbumSearchResult
|
|
||||||
{
|
|
||||||
public string rgid { get; set; }
|
|
||||||
public string albumurl { get; set; }
|
|
||||||
public string tracks { get; set; }
|
|
||||||
public string date { get; set; }
|
|
||||||
public string id { get; set; } // Artist ID
|
|
||||||
public string rgtype { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string url { get; set; }
|
|
||||||
public string country { get; set; }
|
|
||||||
public string albumid { get; set; } // AlbumId
|
|
||||||
public int score { get; set; }
|
|
||||||
public string uniquename { get; set; }
|
|
||||||
public string formats { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: HeadphonesSearchResult.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 Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class HeadphonesArtistSearchResult
|
|
||||||
{
|
|
||||||
public string url { get; set; } // MusicBrainz url
|
|
||||||
public int score { get; set; } // Search Match score?
|
|
||||||
public string name { get; set; } // Artist Name
|
|
||||||
public string uniquename { get; set; } // Artist Unique Name
|
|
||||||
public string id { get; set; } // Artist Unique ID for MusicBrainz
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,49 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: HeadphonesGetIndex.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 Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class HeadphonesGetIndex
|
|
||||||
{
|
|
||||||
public string Status { get; set; }
|
|
||||||
public string ThumbURL { get; set; }
|
|
||||||
public string DateAdded { get; set; }
|
|
||||||
public string MetaCritic { get; set; }
|
|
||||||
public int? TotalTracks { get; set; }
|
|
||||||
public object Type { get; set; }
|
|
||||||
public int? IncludeExtras { get; set; }
|
|
||||||
public string ArtistName { get; set; }
|
|
||||||
public string LastUpdated { get; set; }
|
|
||||||
public string ReleaseDate { get; set; }
|
|
||||||
public string AlbumID { get; set; }
|
|
||||||
public string ArtistID { get; set; }
|
|
||||||
public string ArtworkURL { get; set; }
|
|
||||||
public string Extras { get; set; }
|
|
||||||
public int? HaveTracks { get; set; }
|
|
||||||
public string LatestAlbum { get; set; }
|
|
||||||
public string ArtistSortName { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: HeadphonesVersion.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 Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class HeadphonesVersion
|
|
||||||
{
|
|
||||||
public string install_type { get; set; }
|
|
||||||
public object current_version { get; set; }
|
|
||||||
public string git_path { get; set; }
|
|
||||||
public string latest_version { get; set; }
|
|
||||||
public int commits_behind { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: MusicBrainzCoverArt.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class Thumbnails
|
|
||||||
{
|
|
||||||
public string large { get; set; }
|
|
||||||
public string small { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Image
|
|
||||||
{
|
|
||||||
public List<string> types { get; set; }
|
|
||||||
public bool front { get; set; }
|
|
||||||
public bool back { get; set; }
|
|
||||||
public int edit { get; set; }
|
|
||||||
public string image { get; set; }
|
|
||||||
public string comment { get; set; }
|
|
||||||
public bool approved { get; set; }
|
|
||||||
public string id { get; set; }
|
|
||||||
public Thumbnails thumbnails { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class MusicBrainzCoverArt
|
|
||||||
{
|
|
||||||
public List<Image> images { get; set; }
|
|
||||||
public string release { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,68 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: MusicBrainzReleaseInfo.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class CoverArtArchive
|
|
||||||
{
|
|
||||||
public int count { get; set; }
|
|
||||||
public bool back { get; set; }
|
|
||||||
public bool artwork { get; set; }
|
|
||||||
public bool front { get; set; }
|
|
||||||
public bool darkened { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public class MusicBrainzReleaseInfo
|
|
||||||
{
|
|
||||||
[JsonProperty(PropertyName = "artist-credit")]
|
|
||||||
public List<ArtistCredit> ArtistCredits { get; set; }
|
|
||||||
public string date { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string asin { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string quality { get; set; }
|
|
||||||
public string country { get; set; }
|
|
||||||
public string packaging { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "text-representation")]
|
|
||||||
public TextRepresentation TextRepresentation { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "cover-art-archive")]
|
|
||||||
public CoverArtArchive CoverArtArchive { get; set; }
|
|
||||||
public string barcode { get; set; }
|
|
||||||
public string disambiguation { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "release-events")]
|
|
||||||
public List<ReleaseEvent> ReleaseEvents { get; set; }
|
|
||||||
public string id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,154 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: MusicBrainzSearchResults.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Music
|
|
||||||
{
|
|
||||||
public class TextRepresentation
|
|
||||||
{
|
|
||||||
public string language { get; set; }
|
|
||||||
public string script { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Alias
|
|
||||||
{
|
|
||||||
[JsonProperty(PropertyName = "sort-name")]
|
|
||||||
public string SortName { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public object locale { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public object primary { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "begin-date")]
|
|
||||||
public object BeginDate { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "end-date")]
|
|
||||||
public object EndDate { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Artist
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "sort-date")]
|
|
||||||
public string SortName { get; set; }
|
|
||||||
public string disambiguation { get; set; }
|
|
||||||
public List<Alias> aliases { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ArtistCredit
|
|
||||||
{
|
|
||||||
public Artist artist { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string joinphrase { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ReleaseGroup
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "primary-type")]
|
|
||||||
public string PrimaryType { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "secondary-types")]
|
|
||||||
public List<string> SecondaryTypes { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Area
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "sort-name")]
|
|
||||||
public string SortName { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "iso-3166-1-codes")]
|
|
||||||
public List<string> ISO31661Codes { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ReleaseEvent
|
|
||||||
{
|
|
||||||
public string date { get; set; }
|
|
||||||
public Area area { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Label
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class LabelInfo
|
|
||||||
{
|
|
||||||
[JsonProperty(PropertyName = "catalog-number")]
|
|
||||||
public string CatalogNumber { get; set; }
|
|
||||||
public Label label { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Medium
|
|
||||||
{
|
|
||||||
public string format { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "disc-count")]
|
|
||||||
public int DiscCount { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "catalog-number")]
|
|
||||||
public int CatalogNumber { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Release
|
|
||||||
{
|
|
||||||
public string id { get; set; }
|
|
||||||
public string score { get; set; }
|
|
||||||
public int count { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string disambiguation { get; set; }
|
|
||||||
public string packaging { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "text-representation")]
|
|
||||||
public TextRepresentation TextRepresentation { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "artist-credit")]
|
|
||||||
public List<ArtistCredit> ArtistCredit { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "release-group")]
|
|
||||||
public ReleaseGroup ReleaseGroup { get; set; }
|
|
||||||
public string date { get; set; }
|
|
||||||
public string country { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "release-events")]
|
|
||||||
public List<ReleaseEvent> ReleaseEvents { get; set; }
|
|
||||||
public string barcode { get; set; }
|
|
||||||
public string asin { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "label-info")]
|
|
||||||
public List<LabelInfo> LabelInfo { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "track-count")]
|
|
||||||
public int TrackCount { get; set; }
|
|
||||||
public List<Medium> media { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class MusicBrainzSearchResults
|
|
||||||
{
|
|
||||||
public string created { get; set; }
|
|
||||||
public int count { get; set; }
|
|
||||||
public int offset { get; set; }
|
|
||||||
public List<Release> releases { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,69 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: NetflixMovieResult.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Netflix
|
|
||||||
{
|
|
||||||
public class NetflixMovieResult
|
|
||||||
{
|
|
||||||
[JsonProperty(PropertyName= "unit")]
|
|
||||||
public int Unit { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "show_id")]
|
|
||||||
public int ShowId { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "show_title")]
|
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
[JsonProperty(PropertyName = "release_year")]
|
|
||||||
public string ReleaseYear { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "rating")]
|
|
||||||
public string Rating { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "Category")]
|
|
||||||
public string Category { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "show_cast")]
|
|
||||||
public string ShowCast { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "director")]
|
|
||||||
public string Director { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "summary")]
|
|
||||||
public string Summary { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "poster")]
|
|
||||||
public string Poster { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "mediatype")]
|
|
||||||
public string Mediatype { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "runtime")]
|
|
||||||
public string Runtime { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
// For errors
|
|
||||||
[JsonProperty(PropertyName = "errorcode")]
|
|
||||||
public int ErrorCode { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "message")]
|
|
||||||
public string Message { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: DiscordWebhookRequest.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 Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class DiscordWebhookRequest
|
|
||||||
{
|
|
||||||
public string content { get; set; }
|
|
||||||
public string username { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,47 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: DiscordWebhookResponse.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 Newtonsoft.Json;
|
|
||||||
using Newtonsoft.Json.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class DiscordWebhookResponse
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "channel_id")]
|
|
||||||
public string channelid { get; set; }
|
|
||||||
|
|
||||||
public string token { get; set; }
|
|
||||||
public string avatar { get; set; }
|
|
||||||
[JsonProperty(PropertyName = "guild_id")]
|
|
||||||
public string guildid { get; set; }
|
|
||||||
|
|
||||||
public string id { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PushbulletPush.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 Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class PushbulletPush
|
|
||||||
{
|
|
||||||
public string body { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public string device_iden { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PushbulletResponse.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 Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class PushbulletResponse
|
|
||||||
{
|
|
||||||
public bool active { get; set; }
|
|
||||||
public string iden { get; set; }
|
|
||||||
public double created { get; set; }
|
|
||||||
public double modified { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public bool dismissed { get; set; }
|
|
||||||
public string direction { get; set; }
|
|
||||||
public string sender_iden { get; set; }
|
|
||||||
public string sender_email { get; set; }
|
|
||||||
public string sender_email_normalized { get; set; }
|
|
||||||
public string sender_name { get; set; }
|
|
||||||
public string receiver_iden { get; set; }
|
|
||||||
public string receiver_email { get; set; }
|
|
||||||
public string receiver_email_normalized { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string body { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PushoverResponse.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 Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class PushoverResponse
|
|
||||||
{
|
|
||||||
public int status { get; set; }
|
|
||||||
public string request { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,57 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SlackNotificationBody.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Notifications
|
|
||||||
{
|
|
||||||
public class SlackNotificationBody
|
|
||||||
{
|
|
||||||
[JsonConstructor]
|
|
||||||
public SlackNotificationBody()
|
|
||||||
{
|
|
||||||
username = "Ombi";
|
|
||||||
}
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
private string _username;
|
|
||||||
public string username
|
|
||||||
{
|
|
||||||
get { return _username; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (!string.IsNullOrEmpty(value))
|
|
||||||
_username = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public string channel { get; set; }
|
|
||||||
public string text { get; set; }
|
|
||||||
|
|
||||||
public string icon_url { get; set; }
|
|
||||||
public string icon_emoji { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,170 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{CB37A5F8-6DFC-4554-99D3-A42B502E4591}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Ombi.Api.Models</RootNamespace>
|
|
||||||
<AssemblyName>Ombi.Api.Models</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="RestSharp, Version=105.2.3.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\RestSharp.105.2.3\lib\net45\RestSharp.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Appveyor\AppveyorProject.cs" />
|
|
||||||
<Compile Include="Emby\EmbyChapter.cs" />
|
|
||||||
<Compile Include="Emby\EmbyConfiguration.cs" />
|
|
||||||
<Compile Include="Emby\EmbyEpisodeInformation.cs" />
|
|
||||||
<Compile Include="Emby\EmbyEpisodeItem.cs" />
|
|
||||||
<Compile Include="Emby\EmbyExternalurl.cs" />
|
|
||||||
<Compile Include="Emby\EmbyImagetags.cs" />
|
|
||||||
<Compile Include="Emby\EmbyInformation.cs" />
|
|
||||||
<Compile Include="Emby\EmbyItem.cs" />
|
|
||||||
<Compile Include="Emby\EmbyItemContainer.cs" />
|
|
||||||
<Compile Include="Emby\EmbyMediasource.cs" />
|
|
||||||
<Compile Include="Emby\EmbyMediastream.cs" />
|
|
||||||
<Compile Include="Emby\EmbyMediaType.cs" />
|
|
||||||
<Compile Include="Emby\EmbyMovieItem.cs" />
|
|
||||||
<Compile Include="Emby\EmbyPerson.cs" />
|
|
||||||
<Compile Include="Emby\EmbyPolicy.cs" />
|
|
||||||
<Compile Include="Emby\EmbyProviderids.cs" />
|
|
||||||
<Compile Include="Emby\EmbyRemotetrailer.cs" />
|
|
||||||
<Compile Include="Emby\EmbyRequiredhttpheaders.cs" />
|
|
||||||
<Compile Include="Emby\EmbySeriesInformation.cs" />
|
|
||||||
<Compile Include="Emby\EmbySeriesItem.cs" />
|
|
||||||
<Compile Include="Emby\EmbySeriesstudioinfo.cs" />
|
|
||||||
<Compile Include="Emby\EmbyStudio.cs" />
|
|
||||||
<Compile Include="Emby\EmbySystemInfo.cs" />
|
|
||||||
<Compile Include="Emby\EmbyUser.cs" />
|
|
||||||
<Compile Include="Emby\EmbyUserdata.cs" />
|
|
||||||
<Compile Include="Emby\EmbyMovieInformation.cs" />
|
|
||||||
<Compile Include="Movie\CouchPotatoAdd.cs" />
|
|
||||||
<Compile Include="Movie\CouchPotatoMovies.cs" />
|
|
||||||
<Compile Include="Movie\CouchPotatoProfiles.cs" />
|
|
||||||
<Compile Include="Movie\CouchPotatoStatus.cs" />
|
|
||||||
<Compile Include="Movie\CouchPotatoApiKey.cs" />
|
|
||||||
<Compile Include="Movie\TmdbMovieDetails.cs" />
|
|
||||||
<Compile Include="Music\HeadphonesAlbumSearchResult.cs" />
|
|
||||||
<Compile Include="Music\HeadphonesArtistSearchResult.cs" />
|
|
||||||
<Compile Include="Music\HeadphonesGetIndex.cs" />
|
|
||||||
<Compile Include="Music\HeadphonesVersion.cs" />
|
|
||||||
<Compile Include="Music\MusicBrainzCoverArt.cs" />
|
|
||||||
<Compile Include="Music\MusicBrainzReleaseInfo.cs" />
|
|
||||||
<Compile Include="Music\MusicBrainzSearchResults.cs" />
|
|
||||||
<Compile Include="Netflix\NetflixMovieResult.cs" />
|
|
||||||
<Compile Include="Notifications\DiscordWebhookRequest.cs" />
|
|
||||||
<Compile Include="Notifications\DiscordWebhookResponse.cs" />
|
|
||||||
<Compile Include="Notifications\PushbulletPush.cs" />
|
|
||||||
<Compile Include="Notifications\PushbulletResponse.cs" />
|
|
||||||
<Compile Include="Notifications\PushoverResponse.cs" />
|
|
||||||
<Compile Include="Notifications\SlackNotificationBody.cs" />
|
|
||||||
<Compile Include="Plex\PlexAccount.cs" />
|
|
||||||
<Compile Include="Plex\PlexAuthentication.cs" />
|
|
||||||
<Compile Include="Plex\PlexEpisodeMetadata.cs" />
|
|
||||||
<Compile Include="Plex\PlexError.cs" />
|
|
||||||
<Compile Include="Plex\PlexFriends.cs" />
|
|
||||||
<Compile Include="Plex\PlexLibraries.cs" />
|
|
||||||
<Compile Include="Plex\PlexMetadata.cs" />
|
|
||||||
<Compile Include="Plex\PlexSearch.cs" />
|
|
||||||
<Compile Include="Plex\PlexServer.cs" />
|
|
||||||
<Compile Include="Plex\PlexStatus.cs" />
|
|
||||||
<Compile Include="Plex\PlexMediaType.cs" />
|
|
||||||
<Compile Include="Plex\PlexUserRequest.cs" />
|
|
||||||
<Compile Include="Plex\RecentlyAddedModelOld.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Radarr\RadarrAddMovie.cs" />
|
|
||||||
<Compile Include="Radarr\RadarrAddOptions.cs" />
|
|
||||||
<Compile Include="Radarr\RadarrError.cs" />
|
|
||||||
<Compile Include="Radarr\RadarrMovieContainer.cs" />
|
|
||||||
<Compile Include="Radarr\RadarrMovieResponse.cs" />
|
|
||||||
<Compile Include="SickRage\SickRageBase.cs" />
|
|
||||||
<Compile Include="SickRage\SickrageShows.cs" />
|
|
||||||
<Compile Include="SickRage\SickRagePing.cs" />
|
|
||||||
<Compile Include="SickRage\SickRageSeasonList.cs" />
|
|
||||||
<Compile Include="SickRage\SickRageShowInformation.cs" />
|
|
||||||
<Compile Include="SickRage\SickRageStatus.cs" />
|
|
||||||
<Compile Include="SickRage\SickRageTvAdd.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrAddEpisodeBody.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrAddEpisodeResult.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrAddSeries.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrAllSeries.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrEpisode.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrEpisodes.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrError.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrProfile.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrRootFolder.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrSearchCommand.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrSeasonSearchResult.cs" />
|
|
||||||
<Compile Include="Sonarr\SonarrSeriesSearchResult.cs" />
|
|
||||||
<Compile Include="Sonarr\SystemStatus.cs" />
|
|
||||||
<Compile Include="Tv\Authentication.cs" />
|
|
||||||
<Compile Include="Tv\TvMazeEpisodes.cs" />
|
|
||||||
<Compile Include="Tv\TvMazeSearch.cs" />
|
|
||||||
<Compile Include="Tv\TvMazeSeasons.cs" />
|
|
||||||
<Compile Include="Tv\TVMazeShow.cs" />
|
|
||||||
<Compile Include="Tv\TvSearchResult.cs" />
|
|
||||||
<Compile Include="Tv\TvShow.cs" />
|
|
||||||
<Compile Include="Tv\TvShowImages.cs" />
|
|
||||||
<Compile Include="Watcher\WatcherAddMovieResult.cs" />
|
|
||||||
<Compile Include="Watcher\WatcherListStatusResult.cs" />
|
|
||||||
<Compile Include="Watcher\WatcherVersion.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Ombi.Helpers\Ombi.Helpers.csproj">
|
|
||||||
<Project>{1252336D-42A3-482A-804C-836E60173DFA}</Project>
|
|
||||||
<Name>Ombi.Helpers</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,17 +0,0 @@
|
||||||
using System.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "user")]
|
|
||||||
public class PlexAccount
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "id")]
|
|
||||||
public string Id { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "username")]
|
|
||||||
public string Username { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "email")]
|
|
||||||
public string Email { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "authenticationToken")]
|
|
||||||
public string AuthToken { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,64 +0,0 @@
|
||||||
#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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
public class PlexAuthentication
|
|
||||||
{
|
|
||||||
public User user { get; set; }
|
|
||||||
}
|
|
||||||
public class Subscription
|
|
||||||
{
|
|
||||||
public bool active { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public object plan { get; set; }
|
|
||||||
public object features { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Roles
|
|
||||||
{
|
|
||||||
public List<object> roles { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class User
|
|
||||||
{
|
|
||||||
public string email { get; set; }
|
|
||||||
public string uuid { get; set; }
|
|
||||||
public string joined_at { get; set; }
|
|
||||||
public string username { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string authentication_token { get; set; }
|
|
||||||
public Subscription subscription { get; set; }
|
|
||||||
public Roles roles { get; set; }
|
|
||||||
public List<string> entitlements { get; set; }
|
|
||||||
public object confirmed_at { get; set; }
|
|
||||||
public int forum_id { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PlexEpisodeMetadata.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.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexEpisodeMetadata
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Video")]
|
|
||||||
public List<Video> Video { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "art")]
|
|
||||||
public string Art { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "banner")]
|
|
||||||
public string Banner { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "identifier")]
|
|
||||||
public string Identifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionID")]
|
|
||||||
public string LibrarySectionID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionTitle")]
|
|
||||||
public string LibrarySectionTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionUUID")]
|
|
||||||
public string LibrarySectionUUID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagPrefix")]
|
|
||||||
public string MediaTagPrefix { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagVersion")]
|
|
||||||
public string MediaTagVersion { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mixedParents")]
|
|
||||||
public string MixedParents { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "nocache")]
|
|
||||||
public string Nocache { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentIndex")]
|
|
||||||
public string ParentIndex { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentTitle")]
|
|
||||||
public string ParentTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentYear")]
|
|
||||||
public string ParentYear { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "theme")]
|
|
||||||
public string Theme { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title1")]
|
|
||||||
public string Title1 { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title2")]
|
|
||||||
public string Title2 { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "viewGroup")]
|
|
||||||
public string ViewGroup { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "viewMode")]
|
|
||||||
public string ViewMode { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PlexError.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.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "errors")]
|
|
||||||
public class PlexError
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "error")]
|
|
||||||
public string Error { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexLibraries
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Directory")]
|
|
||||||
public List<Directory> Directories { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Location")]
|
|
||||||
public partial class Location
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "id")]
|
|
||||||
public int id { get; set; }
|
|
||||||
[XmlElement(ElementName = "path")]
|
|
||||||
public string path { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,83 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PlexMetadata.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.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexMetadata
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName= "Video")]
|
|
||||||
public Video Video { get; set; }
|
|
||||||
[XmlElement(ElementName = "Directory")]
|
|
||||||
public Directory1 Directory { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "identifier")]
|
|
||||||
public string Identifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionID")]
|
|
||||||
public string LibrarySectionID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionTitle")]
|
|
||||||
public string LibrarySectionTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionUUID")]
|
|
||||||
public string LibrarySectionUUID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagPrefix")]
|
|
||||||
public string MediaTagPrefix { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagVersion")]
|
|
||||||
public string MediaTagVersion { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexSeasonMetadata
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Video")]
|
|
||||||
public Video Video { get; set; }
|
|
||||||
[XmlElement(ElementName = "Directory")]
|
|
||||||
public List<Directory1> Directory { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "identifier")]
|
|
||||||
public string Identifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionID")]
|
|
||||||
public string LibrarySectionID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionTitle")]
|
|
||||||
public string LibrarySectionTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionUUID")]
|
|
||||||
public string LibrarySectionUUID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagPrefix")]
|
|
||||||
public string MediaTagPrefix { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagVersion")]
|
|
||||||
public string MediaTagVersion { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,344 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PlexSearch.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.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "Part")]
|
|
||||||
public class Part
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "id")]
|
|
||||||
public string Id { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "duration")]
|
|
||||||
public string Duration { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "file")]
|
|
||||||
public string File { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audioProfile")]
|
|
||||||
public string AudioProfile { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "container")]
|
|
||||||
public string Container { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "videoProfile")]
|
|
||||||
public string VideoProfile { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "has64bitOffsets")]
|
|
||||||
public string Has64bitOffsets { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "hasChapterTextStream")]
|
|
||||||
public string HasChapterTextStream { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "optimizedForStreaming")]
|
|
||||||
public string OptimizedForStreaming { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Media")]
|
|
||||||
public class Media
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Part")]
|
|
||||||
public Part Part { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "videoResolution")]
|
|
||||||
public string VideoResolution { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "id")]
|
|
||||||
public string Id { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "duration")]
|
|
||||||
public string Duration { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "bitrate")]
|
|
||||||
public string Bitrate { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "width")]
|
|
||||||
public string Width { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "height")]
|
|
||||||
public string Height { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "aspectRatio")]
|
|
||||||
public string AspectRatio { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audioChannels")]
|
|
||||||
public string AudioChannels { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audioCodec")]
|
|
||||||
public string AudioCodec { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "videoCodec")]
|
|
||||||
public string VideoCodec { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "container")]
|
|
||||||
public string Container { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "videoFrameRate")]
|
|
||||||
public string VideoFrameRate { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audioProfile")]
|
|
||||||
public string AudioProfile { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "videoProfile")]
|
|
||||||
public string VideoProfile { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "optimizedForStreaming")]
|
|
||||||
public string OptimizedForStreaming { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "has64bitOffsets")]
|
|
||||||
public string Has64bitOffsets { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Genre")]
|
|
||||||
public class Genre
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "tag")]
|
|
||||||
public string Tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Writer")]
|
|
||||||
public class Writer
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "tag")]
|
|
||||||
public string Tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Director")]
|
|
||||||
public class Director
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "tag")]
|
|
||||||
public string Tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Country")]
|
|
||||||
public class Country
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "tag")]
|
|
||||||
public string Tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Role")]
|
|
||||||
public class Role
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "tag")]
|
|
||||||
public string Tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Video")]
|
|
||||||
public class Video
|
|
||||||
{
|
|
||||||
public string ProviderId { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "guid")]
|
|
||||||
public string Guid { get; set; }
|
|
||||||
[XmlElement(ElementName = "Media")]
|
|
||||||
public List<Media> Media { get; set; }
|
|
||||||
[XmlElement(ElementName = "Genre")]
|
|
||||||
public List<Genre> Genre { get; set; }
|
|
||||||
[XmlElement(ElementName = "Writer")]
|
|
||||||
public List<Writer> Writer { get; set; }
|
|
||||||
[XmlElement(ElementName = "Director")]
|
|
||||||
public Director Director { get; set; }
|
|
||||||
[XmlElement(ElementName = "Country")]
|
|
||||||
public Country Country { get; set; }
|
|
||||||
[XmlElement(ElementName = "Role")]
|
|
||||||
public List<Role> Role { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionID")]
|
|
||||||
public string LibrarySectionID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionTitle")]
|
|
||||||
public string LibrarySectionTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionUUID")]
|
|
||||||
public string LibrarySectionUUID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "personal")]
|
|
||||||
public string Personal { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "sourceTitle")]
|
|
||||||
public string SourceTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "ratingKey")]
|
|
||||||
public string RatingKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "studio")]
|
|
||||||
public string Studio { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "type")]
|
|
||||||
public string Type { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title")]
|
|
||||||
public string Title { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "contentRating")]
|
|
||||||
public string ContentRating { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "summary")]
|
|
||||||
public string Summary { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "rating")]
|
|
||||||
public string Rating { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audienceRating")]
|
|
||||||
public string AudienceRating { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "year")]
|
|
||||||
public string Year { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "tagline")]
|
|
||||||
public string Tagline { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "thumb")]
|
|
||||||
public string Thumb { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "art")]
|
|
||||||
public string Art { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "duration")]
|
|
||||||
public string Duration { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "originallyAvailableAt")]
|
|
||||||
public string OriginallyAvailableAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "addedAt")]
|
|
||||||
public string AddedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "updatedAt")]
|
|
||||||
public string UpdatedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "audienceRatingImage")]
|
|
||||||
public string AudienceRatingImage { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "chapterSource")]
|
|
||||||
public string ChapterSource { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "ratingImage")]
|
|
||||||
public string RatingImage { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "titleSort")]
|
|
||||||
public string TitleSort { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentRatingKey")]
|
|
||||||
public string ParentRatingKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentRatingKey")]
|
|
||||||
public string GrandparentRatingKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentKey")]
|
|
||||||
public string GrandparentKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentKey")]
|
|
||||||
public string ParentKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentTitle")]
|
|
||||||
public string GrandparentTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "index")]
|
|
||||||
public string Index { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentIndex")]
|
|
||||||
public string ParentIndex { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentThumb")]
|
|
||||||
public string ParentThumb { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentThumb")]
|
|
||||||
public string GrandparentThumb { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentArt")]
|
|
||||||
public string GrandparentArt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "viewCount")]
|
|
||||||
public string ViewCount { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "lastViewedAt")]
|
|
||||||
public string LastViewedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "grandparentTheme")]
|
|
||||||
public string GrandparentTheme { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Provider")]
|
|
||||||
public class Provider
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title")]
|
|
||||||
public string Title { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "type")]
|
|
||||||
public string Type { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "Directory")]
|
|
||||||
public class Directory1
|
|
||||||
{
|
|
||||||
public Directory1()
|
|
||||||
{
|
|
||||||
Seasons = new List<Directory1>();
|
|
||||||
}
|
|
||||||
public string ProviderId { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "guid")]
|
|
||||||
public string Guid { get; set; }
|
|
||||||
[XmlElement(ElementName = "Genre")]
|
|
||||||
public List<Genre> Genre { get; set; }
|
|
||||||
[XmlElement(ElementName = "Role")]
|
|
||||||
public List<Role> Role { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionID")]
|
|
||||||
public string LibrarySectionID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionTitle")]
|
|
||||||
public string LibrarySectionTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "librarySectionUUID")]
|
|
||||||
public string LibrarySectionUUID { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "personal")]
|
|
||||||
public string Personal { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "sourceTitle")]
|
|
||||||
public string SourceTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "ratingKey")]
|
|
||||||
public string RatingKey { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "studio")]
|
|
||||||
public string Studio { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "type")]
|
|
||||||
public string Type { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title")]
|
|
||||||
public string Title { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "contentRating")]
|
|
||||||
public string ContentRating { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "summary")]
|
|
||||||
public string Summary { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "index")]
|
|
||||||
public string Index { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "rating")]
|
|
||||||
public string Rating { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "viewCount")]
|
|
||||||
public string ViewCount { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "lastViewedAt")]
|
|
||||||
public string LastViewedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "year")]
|
|
||||||
public string Year { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "thumb")]
|
|
||||||
public string Thumb { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "art")]
|
|
||||||
public string Art { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "banner")]
|
|
||||||
public string Banner { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "theme")]
|
|
||||||
public string Theme { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "duration")]
|
|
||||||
public string Duration { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "originallyAvailableAt")]
|
|
||||||
public string OriginallyAvailableAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "leafCount")]
|
|
||||||
public string LeafCount { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "viewedLeafCount")]
|
|
||||||
public string ViewedLeafCount { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "childCount")]
|
|
||||||
public string ChildCount { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "addedAt")]
|
|
||||||
public string AddedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "updatedAt")]
|
|
||||||
public string UpdatedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "parentTitle")]
|
|
||||||
public string ParentTitle { get; set; }
|
|
||||||
public List<Directory1> Seasons { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexSearch
|
|
||||||
{
|
|
||||||
|
|
||||||
[XmlElement(ElementName = "Directory")]
|
|
||||||
public List<Directory1> Directory { get; set; }
|
|
||||||
[XmlElement(ElementName = "Video")]
|
|
||||||
public List<Video> Video { get; set; }
|
|
||||||
[XmlElement(ElementName = "Provider")]
|
|
||||||
public List<Provider> Provider { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "totalSize")]
|
|
||||||
public string TotalSize { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "identifier")]
|
|
||||||
public string Identifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagPrefix")]
|
|
||||||
public string MediaTagPrefix { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "mediaTagVersion")]
|
|
||||||
public string MediaTagVersion { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,86 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: PlexServer.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.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "Server")]
|
|
||||||
public class ServerInfo
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "accessToken")]
|
|
||||||
public string AccessToken { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "name")]
|
|
||||||
public string Name { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "address")]
|
|
||||||
public string Address { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "port")]
|
|
||||||
public string Port { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "version")]
|
|
||||||
public string Version { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "scheme")]
|
|
||||||
public string Scheme { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "host")]
|
|
||||||
public string Host { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "localAddresses")]
|
|
||||||
public string LocalAddresses { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "machineIdentifier")]
|
|
||||||
public string MachineIdentifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "createdAt")]
|
|
||||||
public string CreatedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "updatedAt")]
|
|
||||||
public string UpdatedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "owned")]
|
|
||||||
public string Owned { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "synced")]
|
|
||||||
public string Synced { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "sourceTitle")]
|
|
||||||
public string SourceTitle { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "ownerId")]
|
|
||||||
public string OwnerId { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "home")]
|
|
||||||
public string Home { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexServer
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Server")]
|
|
||||||
public List<ServerInfo> Server { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "friendlyName")]
|
|
||||||
public string FriendlyName { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "identifier")]
|
|
||||||
public string Identifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "machineIdentifier")]
|
|
||||||
public string MachineIdentifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
[XmlRoot(ElementName = "Directory")]
|
|
||||||
public class Directory
|
|
||||||
{
|
|
||||||
[XmlAttribute(AttributeName = "count")]
|
|
||||||
public string Count { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "key")]
|
|
||||||
public string Key { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "title")]
|
|
||||||
public string Title { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "type")]
|
|
||||||
public string type { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[XmlRoot(ElementName = "MediaContainer")]
|
|
||||||
public class PlexStatus
|
|
||||||
{
|
|
||||||
[XmlElement(ElementName = "Directory")]
|
|
||||||
public List<Directory> Directory { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "size")]
|
|
||||||
public string Size { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowCameraUpload")]
|
|
||||||
public string AllowCameraUpload { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowChannelAccess")]
|
|
||||||
public string AllowChannelAccess { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowMediaDeletion")]
|
|
||||||
public string AllowMediaDeletion { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "allowSync")]
|
|
||||||
public string AllowSync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "backgroundProcessing")]
|
|
||||||
public string BackgroundProcessing { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "certificate")]
|
|
||||||
public string Certificate { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "companionProxy")]
|
|
||||||
public string CompanionProxy { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "friendlyName")]
|
|
||||||
public string FriendlyName { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "machineIdentifier")]
|
|
||||||
public string MachineIdentifier { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "multiuser")]
|
|
||||||
public string Multiuser { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "myPlex")]
|
|
||||||
public string MyPlex { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "myPlexMappingState")]
|
|
||||||
public string MyPlexMappingState { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "myPlexSigninState")]
|
|
||||||
public string MyPlexSigninState { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "myPlexSubscription")]
|
|
||||||
public string MyPlexSubscription { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "myPlexUsername")]
|
|
||||||
public string MyPlexUsername { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "platform")]
|
|
||||||
public string Platform { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "platformVersion")]
|
|
||||||
public string PlatformVersion { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "requestParametersInCookie")]
|
|
||||||
public string RequestParametersInCookie { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "sync")]
|
|
||||||
public string Sync { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderActiveVideoSessions")]
|
|
||||||
public string TranscoderActiveVideoSessions { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderAudio")]
|
|
||||||
public string TranscoderAudio { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderLyrics")]
|
|
||||||
public string TranscoderLyrics { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderPhoto")]
|
|
||||||
public string TranscoderPhoto { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderSubtitles")]
|
|
||||||
public string TranscoderSubtitles { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderVideo")]
|
|
||||||
public string TranscoderVideo { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderVideoBitrates")]
|
|
||||||
public string TranscoderVideoBitrates { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderVideoQualities")]
|
|
||||||
public string TranscoderVideoQualities { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "transcoderVideoResolutions")]
|
|
||||||
public string TranscoderVideoResolutions { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "updatedAt")]
|
|
||||||
public string UpdatedAt { get; set; }
|
|
||||||
[XmlAttribute(AttributeName = "version")]
|
|
||||||
public string Version { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,241 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: RecentlyAddedModelOld.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Plex
|
|
||||||
{
|
|
||||||
public class RecentlyAddedChild
|
|
||||||
{
|
|
||||||
public string _elementType { get; set; }
|
|
||||||
public int ratingKey { get; set; }
|
|
||||||
public string key { get; set; }
|
|
||||||
public int parentRatingKey { get; set; }
|
|
||||||
public int grandparentRatingKey { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string grandparentKey { get; set; }
|
|
||||||
public string parentKey { get; set; }
|
|
||||||
public string grandparentTitle { get; set; }
|
|
||||||
public string summary { get; set; }
|
|
||||||
public int index { get; set; }
|
|
||||||
public int parentIndex { get; set; }
|
|
||||||
public string thumb { get; set; }
|
|
||||||
public string art { get; set; }
|
|
||||||
public string grandparentThumb { get; set; }
|
|
||||||
public string grandparentArt { get; set; }
|
|
||||||
public int duration { get; set; }
|
|
||||||
public int addedAt { get; set; }
|
|
||||||
public int updatedAt { get; set; }
|
|
||||||
public string chapterSource { get; set; }
|
|
||||||
public List<Child2> _children { get; set; }
|
|
||||||
public string contentRating { get; set; }
|
|
||||||
public int? year { get; set; }
|
|
||||||
public string parentThumb { get; set; }
|
|
||||||
public string grandparentTheme { get; set; }
|
|
||||||
public string originallyAvailableAt { get; set; }
|
|
||||||
public string titleSort { get; set; }
|
|
||||||
public int? viewCount { get; set; }
|
|
||||||
public int? lastViewedAt { get; set; }
|
|
||||||
public int? viewOffset { get; set; }
|
|
||||||
public string rating { get; set; }
|
|
||||||
public string studio { get; set; }
|
|
||||||
public string tagline { get; set; }
|
|
||||||
public string originalTitle { get; set; }
|
|
||||||
public string audienceRating { get; set; }
|
|
||||||
public string audienceRatingImage { get; set; }
|
|
||||||
public string ratingImage { get; set; }
|
|
||||||
}
|
|
||||||
public class Child3
|
|
||||||
{
|
|
||||||
public string _elementType { get; set; }
|
|
||||||
public string id { get; set; }
|
|
||||||
public string key { get; set; }
|
|
||||||
public double duration { get; set; }
|
|
||||||
public string file { get; set; }
|
|
||||||
public double size { get; set; }
|
|
||||||
public string audioProfile { get; set; }
|
|
||||||
public string container { get; set; }
|
|
||||||
public string videoProfile { get; set; }
|
|
||||||
public string deepAnalysisVersion { get; set; }
|
|
||||||
public string requiredBandwidths { get; set; }
|
|
||||||
public string hasThumbnail { get; set; }
|
|
||||||
public bool? has64bitOffsets { get; set; }
|
|
||||||
public bool? optimizedForStreaming { get; set; }
|
|
||||||
public bool? hasChapterTextStream { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Child2
|
|
||||||
{
|
|
||||||
public string _elementType { get; set; }
|
|
||||||
public string videoResolution { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public int duration { get; set; }
|
|
||||||
public int bitrate { get; set; }
|
|
||||||
public int width { get; set; }
|
|
||||||
public int height { get; set; }
|
|
||||||
public string aspectRatio { get; set; }
|
|
||||||
public int audioChannels { get; set; }
|
|
||||||
public string audioCodec { get; set; }
|
|
||||||
public string videoCodec { get; set; }
|
|
||||||
public string container { get; set; }
|
|
||||||
public string videoFrameRate { get; set; }
|
|
||||||
public string audioProfile { get; set; }
|
|
||||||
public string videoProfile { get; set; }
|
|
||||||
public List<Child3> _children { get; set; }
|
|
||||||
public string tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RecentlyAddedModelOld
|
|
||||||
{
|
|
||||||
public string _elementType { get; set; }
|
|
||||||
public string allowSync { get; set; }
|
|
||||||
public string art { get; set; }
|
|
||||||
public string identifier { get; set; }
|
|
||||||
public string librarySectionID { get; set; }
|
|
||||||
public string librarySectionTitle { get; set; }
|
|
||||||
public string librarySectionUUID { get; set; }
|
|
||||||
public string mediaTagPrefix { get; set; }
|
|
||||||
public string mediaTagVersion { get; set; }
|
|
||||||
public string mixedParents { get; set; }
|
|
||||||
public string nocache { get; set; }
|
|
||||||
public string thumb { get; set; }
|
|
||||||
public string title1 { get; set; }
|
|
||||||
public string title2 { get; set; }
|
|
||||||
public string viewGroup { get; set; }
|
|
||||||
public string viewMode { get; set; }
|
|
||||||
public List<RecentlyAddedChild> _children { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 1.3 and forward!
|
|
||||||
public class PartRecentlyAdded
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string key { get; set; }
|
|
||||||
public int duration { get; set; }
|
|
||||||
public string file { get; set; }
|
|
||||||
public double size { get; set; }
|
|
||||||
public string audioProfile { get; set; }
|
|
||||||
public string container { get; set; }
|
|
||||||
public string videoProfile { get; set; }
|
|
||||||
public string deepAnalysisVersion { get; set; }
|
|
||||||
public string requiredBandwidths { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Medium
|
|
||||||
{
|
|
||||||
public string videoResolution { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public int duration { get; set; }
|
|
||||||
public int bitrate { get; set; }
|
|
||||||
public int width { get; set; }
|
|
||||||
public int height { get; set; }
|
|
||||||
public double aspectRatio { get; set; }
|
|
||||||
public int audioChannels { get; set; }
|
|
||||||
public string audioCodec { get; set; }
|
|
||||||
public string videoCodec { get; set; }
|
|
||||||
public string container { get; set; }
|
|
||||||
public string videoFrameRate { get; set; }
|
|
||||||
public string audioProfile { get; set; }
|
|
||||||
public string videoProfile { get; set; }
|
|
||||||
public List<PartRecentlyAdded> Part { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class DirectorRecentlyAdded
|
|
||||||
{
|
|
||||||
public string tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class WriterRecentlyAdded
|
|
||||||
{
|
|
||||||
public string tag { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Metadata
|
|
||||||
{
|
|
||||||
public string ratingKey { get; set; }
|
|
||||||
public string key { get; set; }
|
|
||||||
public string parentRatingKey { get; set; }
|
|
||||||
public string grandparentRatingKey { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string titleSort { get; set; }
|
|
||||||
public string grandparentKey { get; set; }
|
|
||||||
public string parentKey { get; set; }
|
|
||||||
public string grandparentTitle { get; set; }
|
|
||||||
public string contentRating { get; set; }
|
|
||||||
public string summary { get; set; }
|
|
||||||
public int index { get; set; }
|
|
||||||
public int parentIndex { get; set; }
|
|
||||||
public int year { get; set; }
|
|
||||||
public string thumb { get; set; }
|
|
||||||
public string art { get; set; }
|
|
||||||
public string parentThumb { get; set; }
|
|
||||||
public string grandparentThumb { get; set; }
|
|
||||||
public string grandparentArt { get; set; }
|
|
||||||
public string grandparentTheme { get; set; }
|
|
||||||
public int duration { get; set; }
|
|
||||||
public string originallyAvailableAt { get; set; }
|
|
||||||
public int addedAt { get; set; }
|
|
||||||
public int updatedAt { get; set; }
|
|
||||||
public List<Medium> Media { get; set; }
|
|
||||||
public List<DirectorRecentlyAdded> Director { get; set; }
|
|
||||||
public List<WriterRecentlyAdded> Writer { get; set; }
|
|
||||||
public int? viewCount { get; set; }
|
|
||||||
public int? lastViewedAt { get; set; }
|
|
||||||
public double? rating { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class MediaContainer
|
|
||||||
{
|
|
||||||
public double size { get; set; }
|
|
||||||
public double totalSize { get; set; }
|
|
||||||
public bool allowSync { get; set; }
|
|
||||||
public string art { get; set; }
|
|
||||||
public string identifier { get; set; }
|
|
||||||
public int librarySectionID { get; set; }
|
|
||||||
public string librarySectionTitle { get; set; }
|
|
||||||
public string librarySectionUUID { get; set; }
|
|
||||||
public string mediaTagPrefix { get; set; }
|
|
||||||
public int mediaTagVersion { get; set; }
|
|
||||||
public bool mixedParents { get; set; }
|
|
||||||
public bool nocache { get; set; }
|
|
||||||
public int offset { get; set; }
|
|
||||||
public string thumb { get; set; }
|
|
||||||
public string title1 { get; set; }
|
|
||||||
public string title2 { get; set; }
|
|
||||||
public string viewGroup { get; set; }
|
|
||||||
public int viewMode { get; set; }
|
|
||||||
public List<Metadata> Metadata { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class PlexRecentlyAddedModel
|
|
||||||
{
|
|
||||||
public MediaContainer MediaContainer { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("Ombi.Api.Models")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Ombi.Api.Models")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
|
||||||
// to COM components. If you need to access a type in this assembly from
|
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|
||||||
[assembly: Guid("cb37a5f8-6dfc-4554-99d3-a42b502e4591")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
|
|
||||||
[assembly: AssemblyInformationalVersionAttribute("1.0.0.0")]
|
|
|
@ -1,56 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: RadarrAddMovie.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 Newtonsoft.Json;
|
|
||||||
using Ombi.Api.Models.Sonarr;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Radarr
|
|
||||||
{
|
|
||||||
public class RadarrAddMovie
|
|
||||||
{
|
|
||||||
|
|
||||||
public RadarrAddMovie()
|
|
||||||
{
|
|
||||||
images = new List<string>();
|
|
||||||
}
|
|
||||||
public RadarrError Error { get; set; }
|
|
||||||
public RadarrAddOptions addOptions { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string rootFolderPath { get; set; }
|
|
||||||
public int qualityProfileId { get; set; }
|
|
||||||
public bool monitored { get; set; }
|
|
||||||
public int tmdbId { get; set; }
|
|
||||||
public List<string> images { get; set; }
|
|
||||||
public string cleanTitle { get; set; }
|
|
||||||
public string imdbId { get; set; }
|
|
||||||
public string titleSlug { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public int year { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: RadarrError.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 Ombi.Api.Models.Radarr
|
|
||||||
{
|
|
||||||
public class RadarrError
|
|
||||||
{
|
|
||||||
public string message { get; set; }
|
|
||||||
public string description { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,80 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: RadarrMovieResponse.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Radarr
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public class Image
|
|
||||||
{
|
|
||||||
public string coverType { get; set; }
|
|
||||||
public string url { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Ratings
|
|
||||||
{
|
|
||||||
public int votes { get; set; }
|
|
||||||
public double value { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RadarrMovieResponse
|
|
||||||
{
|
|
||||||
public string title { get; set; }
|
|
||||||
public string sortTitle { get; set; }
|
|
||||||
public double sizeOnDisk { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string overview { get; set; }
|
|
||||||
public string inCinemas { get; set; }
|
|
||||||
public string physicalRelease { get; set; }
|
|
||||||
public List<Image> images { get; set; }
|
|
||||||
public string website { get; set; }
|
|
||||||
public bool downloaded { get; set; }
|
|
||||||
public int year { get; set; }
|
|
||||||
public bool hasFile { get; set; }
|
|
||||||
public string youTubeTrailerId { get; set; }
|
|
||||||
public string studio { get; set; }
|
|
||||||
public string path { get; set; }
|
|
||||||
public int profileId { get; set; }
|
|
||||||
public bool monitored { get; set; }
|
|
||||||
public int runtime { get; set; }
|
|
||||||
public string lastInfoSync { get; set; }
|
|
||||||
public string cleanTitle { get; set; }
|
|
||||||
public string imdbId { get; set; }
|
|
||||||
public int tmdbId { get; set; }
|
|
||||||
public string titleSlug { get; set; }
|
|
||||||
public List<string> genres { get; set; }
|
|
||||||
public List<object> tags { get; set; }
|
|
||||||
public string added { get; set; }
|
|
||||||
public Ratings ratings { get; set; }
|
|
||||||
public List<string> alternativeTitles { get; set; }
|
|
||||||
public int qualityProfileId { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SickRagePing.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 Ombi.Api.Models.SickRage
|
|
||||||
{
|
|
||||||
public class SickRagePingData
|
|
||||||
{
|
|
||||||
public int pid { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SickRagePing : SickRageBase<SickRagePingData>
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,82 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SickRageShowInformation.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.SickRage
|
|
||||||
{
|
|
||||||
public class Cache
|
|
||||||
{
|
|
||||||
public int banner { get; set; }
|
|
||||||
public int poster { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class QualityDetails
|
|
||||||
{
|
|
||||||
public List<object> archive { get; set; }
|
|
||||||
public List<string> initial { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SeasonList
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Data
|
|
||||||
{
|
|
||||||
public int air_by_date { get; set; }
|
|
||||||
public string airs { get; set; }
|
|
||||||
public int anime { get; set; }
|
|
||||||
public int archive_firstmatch { get; set; }
|
|
||||||
public Cache cache { get; set; }
|
|
||||||
public int dvdorder { get; set; }
|
|
||||||
public int flatten_folders { get; set; }
|
|
||||||
public List<string> genre { get; set; }
|
|
||||||
public string imdbid { get; set; }
|
|
||||||
public int indexerid { get; set; }
|
|
||||||
public string language { get; set; }
|
|
||||||
public string location { get; set; }
|
|
||||||
public string network { get; set; }
|
|
||||||
public string next_ep_airdate { get; set; }
|
|
||||||
public int paused { get; set; }
|
|
||||||
public string quality { get; set; }
|
|
||||||
public QualityDetails quality_details { get; set; }
|
|
||||||
public List<object> rls_ignore_words { get; set; }
|
|
||||||
public List<object> rls_require_words { get; set; }
|
|
||||||
public int scene { get; set; }
|
|
||||||
public SeasonList season_list { get; set; }
|
|
||||||
public string show_name { get; set; }
|
|
||||||
public int sports { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public int subtitles { get; set; }
|
|
||||||
public int tvdbid { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SickRageShowInformation : SickRageBase<Data>
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SickRageStatus.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 Ombi.Api.Models.SickRage
|
|
||||||
{
|
|
||||||
public static class SickRageStatus
|
|
||||||
{
|
|
||||||
public const string Wanted = "wanted";
|
|
||||||
public const string Skipped = "skipped";
|
|
||||||
public const string Ignored = "Ignored";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SickRageTvAdd.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 Ombi.Api.Models.SickRage
|
|
||||||
{
|
|
||||||
public class SickRageTvAddData
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SickRageTvAdd : SickRageBase<SickRageTvAddData>
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SickrageShows.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.SickRage
|
|
||||||
{
|
|
||||||
public class SickrageShows : SickRageBase<Dictionary<int, Item>>
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Item
|
|
||||||
{
|
|
||||||
public int tvdbid { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrAddEpisodeBody.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SonarrAddEpisodeBody
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public int[] episodeIds { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,58 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrAddEpisodeResult.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class Body
|
|
||||||
{
|
|
||||||
public List<int> episodeIds { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public string completionMessage { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SonarrAddEpisodeResult
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public Body body { get; set; }
|
|
||||||
public string priority { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string queued { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
public string state { get; set; }
|
|
||||||
public bool manual { get; set; }
|
|
||||||
public string startedOn { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,73 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrEpisode.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
|
|
||||||
public class Revision
|
|
||||||
{
|
|
||||||
public int version { get; set; }
|
|
||||||
public int real { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class EpisodeFile
|
|
||||||
{
|
|
||||||
public int seriesId { get; set; }
|
|
||||||
public int seasonNumber { get; set; }
|
|
||||||
public string relativePath { get; set; }
|
|
||||||
public string path { get; set; }
|
|
||||||
public long size { get; set; }
|
|
||||||
public string dateAdded { get; set; }
|
|
||||||
public Quality quality { get; set; }
|
|
||||||
public bool qualityCutoffNotMet { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class SonarrEpisode
|
|
||||||
{
|
|
||||||
public int seriesId { get; set; }
|
|
||||||
public int episodeFileId { get; set; }
|
|
||||||
public int seasonNumber { get; set; }
|
|
||||||
public int episodeNumber { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public string airDate { get; set; }
|
|
||||||
public string airDateUtc { get; set; }
|
|
||||||
public string overview { get; set; }
|
|
||||||
public EpisodeFile episodeFile { get; set; }
|
|
||||||
public bool hasFile { get; set; }
|
|
||||||
public bool monitored { get; set; }
|
|
||||||
public int absoluteEpisodeNumber { get; set; }
|
|
||||||
public bool unverifiedSceneNumbering { get; set; }
|
|
||||||
public Series series { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrError.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SonarrError
|
|
||||||
{
|
|
||||||
public string propertyName { get; set; }
|
|
||||||
public string errorMessage { get; set; }
|
|
||||||
public object attemptedValue { get; set; }
|
|
||||||
public FormattedMessagePlaceholderValues formattedMessagePlaceholderValues { get; set; }
|
|
||||||
}
|
|
||||||
public class FormattedMessagePlaceholderValues
|
|
||||||
{
|
|
||||||
public string propertyName { get; set; }
|
|
||||||
public object propertyValue { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,57 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrProfile.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class Cutoff
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Quality
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Item
|
|
||||||
{
|
|
||||||
public Quality quality { get; set; }
|
|
||||||
public bool allowed { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SonarrProfile
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public Cutoff cutoff { get; set; }
|
|
||||||
public List<Item> items { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2017 Jamie Rees
|
|
||||||
// File: SonarrRootFolder.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SonarrRootFolder
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string path { get; set; }
|
|
||||||
public long freespace { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrSearchCommand.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SonarrSearchCommand
|
|
||||||
{
|
|
||||||
public int seriesId { get; set; }
|
|
||||||
public int seasonNumber { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,55 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrSeasonSearchResult.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SeasonBody
|
|
||||||
{
|
|
||||||
public int seriesId { get; set; }
|
|
||||||
public int seasonNumber { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public string completionMessage { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SonarrSeasonSearchResult
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public SeasonBody body { get; set; }
|
|
||||||
public string priority { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string queued { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
public string state { get; set; }
|
|
||||||
public bool manual { get; set; }
|
|
||||||
public string startedOn { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SonarrSeriesSearchResult.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SeriesBody
|
|
||||||
{
|
|
||||||
public int seriesId { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public string completionMessage { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class SonarrSeriesSearchResult
|
|
||||||
{
|
|
||||||
public string name { get; set; }
|
|
||||||
public SeriesBody body { get; set; }
|
|
||||||
public string priority { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string queued { get; set; }
|
|
||||||
public string started { get; set; }
|
|
||||||
public string trigger { get; set; }
|
|
||||||
public string state { get; set; }
|
|
||||||
public bool manual { get; set; }
|
|
||||||
public string startedOn { get; set; }
|
|
||||||
public string stateChangeTime { get; set; }
|
|
||||||
public bool sendUpdatesToClient { get; set; }
|
|
||||||
public bool updateScheduledTask { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,51 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: SystemStatus.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 Ombi.Api.Models.Sonarr
|
|
||||||
{
|
|
||||||
public class SystemStatus
|
|
||||||
{
|
|
||||||
public string version { get; set; }
|
|
||||||
public string buildTime { get; set; }
|
|
||||||
public bool isDebug { get; set; }
|
|
||||||
public bool isProduction { get; set; }
|
|
||||||
public bool isAdmin { get; set; }
|
|
||||||
public bool isUserInteractive { get; set; }
|
|
||||||
public string startupPath { get; set; }
|
|
||||||
public string appData { get; set; }
|
|
||||||
public string osVersion { get; set; }
|
|
||||||
public bool isMonoRuntime { get; set; }
|
|
||||||
public bool isMono { get; set; }
|
|
||||||
public bool isLinux { get; set; }
|
|
||||||
public bool isOsx { get; set; }
|
|
||||||
public bool isWindows { get; set; }
|
|
||||||
public string branch { get; set; }
|
|
||||||
public string authentication { get; set; }
|
|
||||||
public string sqliteVersion { get; set; }
|
|
||||||
public string urlBase { get; set; }
|
|
||||||
public string runtimeVersion { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: Authentication.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 Ombi.Api.Models.Tv
|
|
||||||
{
|
|
||||||
public class Authentication
|
|
||||||
{
|
|
||||||
public string token { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: TvMazeEpisodes.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 Ombi.Api.Models.Tv
|
|
||||||
{
|
|
||||||
public class TvMazeEpisodes
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string url { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public int season { get; set; }
|
|
||||||
public int number { get; set; }
|
|
||||||
public string airdate { get; set; }
|
|
||||||
public string airtime { get; set; }
|
|
||||||
public string airstamp { get; set; }
|
|
||||||
public int runtime { get; set; }
|
|
||||||
public Image image { get; set; }
|
|
||||||
public string summary { get; set; }
|
|
||||||
public Links _links { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,120 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: TvMazeSearch.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Tv
|
|
||||||
{
|
|
||||||
public class Schedule
|
|
||||||
{
|
|
||||||
public List<object> days { get; set; }
|
|
||||||
public string time { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Rating
|
|
||||||
{
|
|
||||||
public double? average { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Country
|
|
||||||
{
|
|
||||||
public string code { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public string timezone { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Network
|
|
||||||
{
|
|
||||||
public Country country { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Externals
|
|
||||||
{
|
|
||||||
public string imdb { get; set; }
|
|
||||||
public int? thetvdb { get; set; }
|
|
||||||
public int? tvrage { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Image
|
|
||||||
{
|
|
||||||
public string medium { get; set; }
|
|
||||||
public string original { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Self
|
|
||||||
{
|
|
||||||
public string href { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Previousepisode
|
|
||||||
{
|
|
||||||
public string href { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Nextepisode
|
|
||||||
{
|
|
||||||
public string href { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Links
|
|
||||||
{
|
|
||||||
public Nextepisode nextepisode { get; set; }
|
|
||||||
public Previousepisode previousepisode { get; set; }
|
|
||||||
public Self self { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Show
|
|
||||||
{
|
|
||||||
public Links _links { get; set; }
|
|
||||||
public Externals externals { get; set; }
|
|
||||||
public List<object> genres { get; set; }
|
|
||||||
public int id { get; set; }
|
|
||||||
public Image image { get; set; }
|
|
||||||
public string language { get; set; }
|
|
||||||
public string name { get; set; }
|
|
||||||
public Network network { get; set; }
|
|
||||||
public string premiered { get; set; }
|
|
||||||
public Rating rating { get; set; }
|
|
||||||
public int? runtime { get; set; }
|
|
||||||
public Schedule schedule { get; set; }
|
|
||||||
public string status { get; set; }
|
|
||||||
public string summary { get; set; }
|
|
||||||
public string type { get; set; }
|
|
||||||
public int updated { get; set; }
|
|
||||||
public string url { get; set; }
|
|
||||||
public object webChannel { get; set; }
|
|
||||||
public int weight { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TvMazeSearch
|
|
||||||
{
|
|
||||||
public double score { get; set; }
|
|
||||||
public Show show { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,69 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: TvSearchResult.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Tv
|
|
||||||
{
|
|
||||||
public class TvShowSearchResult
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public int airedSeason { get; set; }
|
|
||||||
public int airedEpisodeNumber { get; set; }
|
|
||||||
public string episodeName { get; set; }
|
|
||||||
public string firstAired { get; set; }
|
|
||||||
public string guestStars { get; set; }
|
|
||||||
public string director { get; set; }
|
|
||||||
public List<string> writers { get; set; }
|
|
||||||
public string overview { get; set; }
|
|
||||||
public string productionCode { get; set; }
|
|
||||||
public string showUrl { get; set; }
|
|
||||||
public int lastUpdated { get; set; }
|
|
||||||
public string dvdDiscid { get; set; }
|
|
||||||
public int dvdSeason { get; set; }
|
|
||||||
public int dvdEpisodeNumber { get; set; }
|
|
||||||
public int dvdChapter { get; set; }
|
|
||||||
public int absoluteNumber { get; set; }
|
|
||||||
public string filename { get; set; }
|
|
||||||
public string seriesId { get; set; }
|
|
||||||
public string lastUpdatedBy { get; set; }
|
|
||||||
public int airsAfterSeason { get; set; }
|
|
||||||
public int airsBeforeSeason { get; set; }
|
|
||||||
public int airsBeforeEpisode { get; set; }
|
|
||||||
public string thumbAuthor { get; set; }
|
|
||||||
public string thumbAdded { get; set; }
|
|
||||||
public string thumbWidth { get; set; }
|
|
||||||
public string thumbHeight { get; set; }
|
|
||||||
public string imdbId { get; set; }
|
|
||||||
public int siteRating { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TvSearchResult
|
|
||||||
{
|
|
||||||
public List<TvShow> data { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: TvShowImages.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;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Tv
|
|
||||||
{
|
|
||||||
public class RatingsInfo
|
|
||||||
{
|
|
||||||
public double average { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Datum
|
|
||||||
{
|
|
||||||
public int id { get; set; }
|
|
||||||
public string keyType { get; set; }
|
|
||||||
public string subKey { get; set; }
|
|
||||||
public string fileName { get; set; }
|
|
||||||
public string resolution { get; set; }
|
|
||||||
public RatingsInfo ratingsInfo { get; set; }
|
|
||||||
public string thumbnail { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TvShowImages
|
|
||||||
{
|
|
||||||
public List<Datum> data { get; set; }
|
|
||||||
public object errors { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: WatcherAddMovieResult.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 Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Watcher
|
|
||||||
{
|
|
||||||
public class WatcherAddMovieResult
|
|
||||||
{
|
|
||||||
public bool response { get; set; }
|
|
||||||
public string message { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public string ErrorMessage { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public bool Error { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,83 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: WatcherListStatusResult.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 Newtonsoft.Json;
|
|
||||||
using RestSharp.Deserializers;
|
|
||||||
|
|
||||||
namespace Ombi.Api.Models.Watcher
|
|
||||||
{
|
|
||||||
public class Quality2
|
|
||||||
{
|
|
||||||
[JsonProperty("720P")]
|
|
||||||
public List<string> Q720P { get; set; }
|
|
||||||
[JsonProperty("1080P")]
|
|
||||||
public List<string> Q1080P { get; set; }
|
|
||||||
[JsonProperty("4K")]
|
|
||||||
public List<string> Q4K { get; set; }
|
|
||||||
public List<string> SD { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Filters
|
|
||||||
{
|
|
||||||
public string preferredwords { get; set; }
|
|
||||||
public string ignoredwords { get; set; }
|
|
||||||
public string requiredwords { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class WatcherListStatusResult
|
|
||||||
{
|
|
||||||
public string status { get; set; }
|
|
||||||
public string plot { get; set; }
|
|
||||||
public string rated { get; set; }
|
|
||||||
public string title { get; set; }
|
|
||||||
public object finishedscore { get; set; }
|
|
||||||
public string predb { get; set; }
|
|
||||||
public string year { get; set; }
|
|
||||||
public string poster { get; set; }
|
|
||||||
public string tomatourl { get; set; }
|
|
||||||
public string released { get; set; }
|
|
||||||
public object finisheddate { get; set; }
|
|
||||||
public string dvd { get; set; }
|
|
||||||
public string tomatorating { get; set; }
|
|
||||||
public string imdbid { get; set; }
|
|
||||||
public string quality { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public class WatcherListStatusResultContainer
|
|
||||||
{
|
|
||||||
[JsonProperty("movies")]
|
|
||||||
public List<WatcherListStatusResult> Movies { get; set; }
|
|
||||||
[JsonProperty("response")]
|
|
||||||
public bool Response { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public string ErrorMessage { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public bool Error { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
using System;
|
|
||||||
namespace Ombi.Api.Models
|
|
||||||
{
|
|
||||||
public class WatcherResponse<T>
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
|
|
||||||
<package id="RestSharp" version="105.2.3" targetFramework="net45" />
|
|
||||||
</packages>
|
|
|
@ -1,118 +0,0 @@
|
||||||
#region Copyright
|
|
||||||
// /************************************************************************
|
|
||||||
// Copyright (c) 2016 Jamie Rees
|
|
||||||
// File: ApiRequest.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.IO;
|
|
||||||
using System.Net;
|
|
||||||
using System.Xml.Serialization;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using NLog;
|
|
||||||
using Ombi.Api.Interfaces;
|
|
||||||
using Ombi.Helpers.Exceptions;
|
|
||||||
using RestSharp;
|
|
||||||
|
|
||||||
namespace Ombi.Api
|
|
||||||
{
|
|
||||||
public class ApiRequest : IApiRequest
|
|
||||||
{
|
|
||||||
private readonly JsonSerializerSettings _settings = new JsonSerializerSettings
|
|
||||||
{
|
|
||||||
NullValueHandling = NullValueHandling.Ignore,
|
|
||||||
MissingMemberHandling = MissingMemberHandling.Ignore
|
|
||||||
};
|
|
||||||
|
|
||||||
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
|
|
||||||
/// <summary>
|
|
||||||
/// An API request handler
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T">The type of class you want to deserialize</typeparam>
|
|
||||||
/// <param name="request">The request.</param>
|
|
||||||
/// <param name="baseUri">The base URI.</param>
|
|
||||||
/// <returns>The type of class you want to deserialize</returns>
|
|
||||||
public T Execute<T>(IRestRequest request, Uri baseUri) where T : new()
|
|
||||||
{
|
|
||||||
var client = new RestClient { BaseUrl = baseUri };
|
|
||||||
var response = client.Execute<T>(request);
|
|
||||||
Log.Trace($"Request made to {response.ResponseUri} with status code {response.StatusCode}. The response was {response.Content}");
|
|
||||||
if ((int)response.StatusCode < 300)
|
|
||||||
return response.Data;
|
|
||||||
else
|
|
||||||
throw new ApiRequestException($"Got StatusCode={response.StatusCode} for {response.ResponseUri}.");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public IRestResponse Execute(IRestRequest request, Uri baseUri)
|
|
||||||
{
|
|
||||||
var client = new RestClient { BaseUrl = baseUri };
|
|
||||||
var response = client.Execute(request);
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
public T ExecuteXml<T>(IRestRequest request, Uri baseUri) where T : class
|
|
||||||
{
|
|
||||||
var client = new RestClient { BaseUrl = baseUri };
|
|
||||||
var response = client.Execute(request);
|
|
||||||
Log.Trace($"Request made to {response.ResponseUri} with status code {response.StatusCode}. The response was {response.Content}");
|
|
||||||
if ((int)response.StatusCode < 300)
|
|
||||||
return DeserializeXml<T>(response.Content);
|
|
||||||
else
|
|
||||||
throw new ApiRequestException($"Got StatusCode={response.StatusCode} for {response.ResponseUri}.");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public T ExecuteJson<T>(IRestRequest request, Uri baseUri) where T : new()
|
|
||||||
{
|
|
||||||
var client = new RestClient { BaseUrl = baseUri };
|
|
||||||
var response = client.Execute(request);
|
|
||||||
Log.Trace($"Request made to {response.ResponseUri} with status code {response.StatusCode}. The response was {response.Content}");
|
|
||||||
|
|
||||||
if ((int)response.StatusCode < 300)
|
|
||||||
return JsonConvert.DeserializeObject<T>(response.Content, _settings);
|
|
||||||
else
|
|
||||||
throw new ApiRequestException($"Got StatusCode={response.StatusCode} for {response.ResponseUri}.");
|
|
||||||
}
|
|
||||||
|
|
||||||
private T DeserializeXml<T>(string input)
|
|
||||||
where T : class
|
|
||||||
{
|
|
||||||
var ser = new XmlSerializer(typeof(T));
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
using (var sr = new StringReader(input))
|
|
||||||
return (T)ser.Deserialize(sr);
|
|
||||||
}
|
|
||||||
catch (InvalidOperationException e)
|
|
||||||
{
|
|
||||||
Log.Error(e);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue