aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/TestService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-08-13 16:21:10 -0400
committerGitHub <noreply@github.com>2017-08-13 16:21:10 -0400
commitdc578f3742b474bd85d556299a6b2763f4d9acda (patch)
treecc4a8d1de140ece77160349e51a64857656ab373 /MediaBrowser.Api/TestService.cs
parentf6ed934a7e32bf10c3a141773d713bf3b19e784f (diff)
parent7f200f057d33e3ef52b1b1b1bf1767577295317e (diff)
Merge pull request #2815 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Api/TestService.cs')
-rw-r--r--MediaBrowser.Api/TestService.cs77
1 files changed, 0 insertions, 77 deletions
diff --git a/MediaBrowser.Api/TestService.cs b/MediaBrowser.Api/TestService.cs
deleted file mode 100644
index 5340b816c..000000000
--- a/MediaBrowser.Api/TestService.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MediaBrowser.Model.Services;
-
-namespace MediaBrowser.Api
-{
- [Route("/Test/String", "GET")]
- public class GetString
- {
- }
-
- [Route("/Test/OptimizedString", "GET")]
- public class GetOptimizedString
- {
- }
-
- [Route("/Test/Bytes", "GET")]
- public class GetBytes
- {
- }
-
- [Route("/Test/OptimizedBytes", "GET")]
- public class GetOptimizedBytes
- {
- }
-
- [Route("/Test/Stream", "GET")]
- public class GetStream
- {
- }
-
- [Route("/Test/OptimizedStream", "GET")]
- public class GetOptimizedStream
- {
- }
-
- [Route("/Test/BytesWithContentType", "GET")]
- public class GetBytesWithContentType
- {
- }
-
- public class TestService : BaseApiService
- {
- public object Get(GetString request)
- {
- return "Welcome to Emby!";
- }
- public object Get(GetOptimizedString request)
- {
- return ToOptimizedResult("Welcome to Emby!");
- }
- public object Get(GetBytes request)
- {
- return Encoding.UTF8.GetBytes("Welcome to Emby!");
- }
- public object Get(GetOptimizedBytes request)
- {
- return ToOptimizedResult(Encoding.UTF8.GetBytes("Welcome to Emby!"));
- }
- public object Get(GetBytesWithContentType request)
- {
- return ApiEntryPoint.Instance.ResultFactory.GetResult(Encoding.UTF8.GetBytes("Welcome to Emby!"), "text/html");
- }
- public object Get(GetStream request)
- {
- return new MemoryStream(Encoding.UTF8.GetBytes("Welcome to Emby!"));
- }
- public object Get(GetOptimizedStream request)
- {
- return ToOptimizedResult(new MemoryStream(Encoding.UTF8.GetBytes("Welcome to Emby!")));
- }
- }
-}