aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-20 20:56:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-20 20:56:24 -0400
commit1774e5b1ac9f809fd97c1d95666fc563afa87914 (patch)
treef0c2c3f84de84def4f9e80d1f187069e4763f496 /MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs
parentad3c30c14535780fcbd11b049603991e8d3cfe9e (diff)
added upnp ConnectionManager.cs
Diffstat (limited to 'MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs')
-rw-r--r--MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs378
1 files changed, 0 insertions, 378 deletions
diff --git a/MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs b/MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs
deleted file mode 100644
index 9ccfaf603..000000000
--- a/MediaBrowser.Dlna/Server/ServiceActionListBuilder.cs
+++ /dev/null
@@ -1,378 +0,0 @@
-using MediaBrowser.Dlna.Common;
-using System.Collections.Generic;
-
-namespace MediaBrowser.Dlna.Server
-{
- public class ServiceActionListBuilder
- {
- public IEnumerable<ServiceAction> GetActions()
- {
- var list = new List<ServiceAction>
- {
- GetSearchCapabilitiesAction(),
- GetSortCapabilitiesAction(),
- GetGetSystemUpdateIDAction(),
- GetBrowseAction(),
- GetSearchAction(),
- GetX_GetFeatureListAction(),
- GetXSetBookmarkAction(),
- GetBrowseByLetterAction()
- };
-
- return list;
- }
-
- private ServiceAction GetGetSystemUpdateIDAction()
- {
- var action = new ServiceAction
- {
- Name = "GetSystemUpdateID"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Id",
- Direction = "out",
- RelatedStateVariable = "SystemUpdateID"
- });
-
- return action;
- }
-
- private ServiceAction GetSearchCapabilitiesAction()
- {
- var action = new ServiceAction
- {
- Name = "GetSearchCapabilities"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SearchCaps",
- Direction = "out",
- RelatedStateVariable = "SearchCapabilities"
- });
-
- return action;
- }
-
- private ServiceAction GetSortCapabilitiesAction()
- {
- var action = new ServiceAction
- {
- Name = "GetSortCapabilities"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SortCaps",
- Direction = "out",
- RelatedStateVariable = "SortCapabilities"
- });
-
- return action;
- }
-
- private ServiceAction GetX_GetFeatureListAction()
- {
- var action = new ServiceAction
- {
- Name = "X_GetFeatureList"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "FeatureList",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Featurelist"
- });
-
- return action;
- }
-
- private ServiceAction GetSearchAction()
- {
- var action = new ServiceAction
- {
- Name = "Search"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "ContainerID",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_ObjectID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SearchCriteria",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_SearchCriteria"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Filter",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Filter"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "StartingIndex",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Index"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "RequestedCount",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SortCriteria",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_SortCriteria"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Result",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Result"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "NumberReturned",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "TotalMatches",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "UpdateID",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_UpdateID"
- });
-
- return action;
- }
-
- private ServiceAction GetBrowseAction()
- {
- var action = new ServiceAction
- {
- Name = "Browse"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "ObjectID",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_ObjectID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "BrowseFlag",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_BrowseFlag"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Filter",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Filter"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "StartingIndex",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Index"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "RequestedCount",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SortCriteria",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_SortCriteria"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Result",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Result"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "NumberReturned",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "TotalMatches",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "UpdateID",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_UpdateID"
- });
-
- return action;
- }
-
- private ServiceAction GetBrowseByLetterAction()
- {
- var action = new ServiceAction
- {
- Name = "X_BrowseByLetter"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "ObjectID",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_ObjectID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "BrowseFlag",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_BrowseFlag"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Filter",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Filter"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "StartingLetter",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_BrowseLetter"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "RequestedCount",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "SortCriteria",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_SortCriteria"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "Result",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Result"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "NumberReturned",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "TotalMatches",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Count"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "UpdateID",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_UpdateID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "StartingIndex",
- Direction = "out",
- RelatedStateVariable = "A_ARG_TYPE_Index"
- });
-
- return action;
- }
-
- private ServiceAction GetXSetBookmarkAction()
- {
- var action = new ServiceAction
- {
- Name = "X_SetBookmark"
- };
-
- action.ArgumentList.Add(new Argument
- {
- Name = "CategoryType",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_CategoryType"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "RID",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_RID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "ObjectID",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_ObjectID"
- });
-
- action.ArgumentList.Add(new Argument
- {
- Name = "PosSecond",
- Direction = "in",
- RelatedStateVariable = "A_ARG_TYPE_PosSec"
- });
-
- return action;
- }
- }
-}