From bf2c5dde8c21dfb21238e718abb7ecdd0a0e762f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1s=C3=A1ry=20D=C3=A1niel?= Date: Thu, 28 Sep 2017 11:25:34 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C30479 --- .../IntegrationTests/IntegrationTests.csproj | 1 - client/IntegrationTests/MediaCubeClientIT.cs | 47 - .../IO/Swagger/Api/DefaultApi.cs | 2757 ----------------- .../IO/Swagger/Client/ApiClient.cs | 273 -- .../IO/Swagger/Client/ApiException.cs | 47 - .../IO/Swagger/Client/Configuration.cs | 133 - .../IO/Swagger/Model/AtomicLong.cs | 36 - .../IO/Swagger/Model/BaseType.cs | 36 - .../IO/Swagger/Model/BreakType.cs | 36 - .../IO/Swagger/Model/CreateJobParameters.cs | 68 - .../IO/Swagger/Model/DeclarationType.cs | 36 - .../IO/Swagger/Model/DeliveryMethod.cs | 36 - .../IO/Swagger/Model/Domain.cs | 60 - .../IO/Swagger/Model/DomainCategory.cs | 52 - .../Swagger/Model/DomainCategoryResponse.cs | 68 - .../IO/Swagger/Model/DomainResponse.cs | 68 - .../IO/Swagger/Model/Domains.cs | 44 - .../IO/Swagger/Model/DynamicAttributes.cs | 76 - .../IO/Swagger/Model/EntityBase.cs | 44 - .../IO/Swagger/Model/FileType.cs | 92 - .../IO/Swagger/Model/FilterLogic.cs | 36 - .../IO/Swagger/Model/FilterValueLogic.cs | 36 - .../IO/Swagger/Model/Folder.cs | 76 - .../IO/Swagger/Model/FolderResponse.cs | 68 - .../GetFilteredDomainByDisplayParameters.cs | 52 - .../IO/Swagger/Model/GetFilteredParameters.cs | 52 - .../IO/Swagger/Model/GuiType.cs | 36 - .../MediaCubeClient/IO/Swagger/Model/Item.cs | 140 - .../IO/Swagger/Model/ItemResponse.cs | 68 - .../IO/Swagger/Model/ItemType.cs | 84 - .../IO/Swagger/Model/ItemTypeResponse.cs | 68 - .../MediaCubeClient/IO/Swagger/Model/Job.cs | 132 - .../IO/Swagger/Model/JobMessage.cs | 44 - .../IO/Swagger/Model/JobStart.cs | 52 - .../IO/Swagger/Model/JobStartType.cs | 36 - .../IO/Swagger/Model/JobStatus.cs | 36 - .../IO/Swagger/Model/JobTemplatesInfo.cs | 52 - .../IO/Swagger/Model/ListType.cs | 36 - .../IO/Swagger/Model/LogEvent.cs | 68 - .../IO/Swagger/Model/LogLevel.cs | 36 - .../IO/Swagger/Model/LoginParameters.cs | 52 - .../Swagger/Model/MapObjectObjectElement.cs | 52 - .../Swagger/Model/MapStringObjectElement.cs | 52 - .../IO/Swagger/Model/MdType.cs | 36 - .../MediaCubeClient/IO/Swagger/Model/Media.cs | 156 - .../IO/Swagger/Model/MediaFile.cs | 108 - .../IO/Swagger/Model/MediaFileResponse.cs | 68 - .../IO/Swagger/Model/MediaResponse.cs | 68 - .../IO/Swagger/Model/Metadata.cs | 172 - .../IO/Swagger/Model/MetadataElement.cs | 84 - .../Swagger/Model/MetadataElementResponse.cs | 68 - .../IO/Swagger/Model/MetadataResponse.cs | 68 - .../IO/Swagger/Model/MetadataType.cs | 84 - .../IO/Swagger/Model/MetadataTypeResponse.cs | 68 - .../IO/Swagger/Model/OrderDirection.cs | 36 - .../IO/Swagger/Model/QueryObject.cs | 60 - .../IO/Swagger/Model/RemoteFile.cs | 84 - .../IO/Swagger/Model/RemoteFileResponse.cs | 76 - .../IO/Swagger/Model/RemoteStoreProtocol.cs | 36 - .../IO/Swagger/Model/RemoveParameters.cs | 52 - .../IO/Swagger/Model/RenderParameter.cs | 68 - .../Swagger/Model/ReplyMessageParameters.cs | 60 - .../IO/Swagger/Model/RestartRequest.cs | 44 - .../IO/Swagger/Model/ResumeRequest.cs | 44 - .../MediaCubeClient/IO/Swagger/Model/Scene.cs | 84 - .../IO/Swagger/Model/SceneContent.cs | 84 - .../IO/Swagger/Model/SceneContentResponse.cs | 68 - .../IO/Swagger/Model/SceneResponse.cs | 68 - .../IO/Swagger/Model/SearchDefinition.cs | 76 - .../Swagger/Model/SearchDefinitionResponse.cs | 68 - .../IO/Swagger/Model/SearchFilter.cs | 84 - .../IO/Swagger/Model/SearchResult.cs | 76 - .../MediaCubeClient/IO/Swagger/Model/Shot.cs | 100 - .../IO/Swagger/Model/ShotResponse.cs | 68 - .../IO/Swagger/Model/Signal.cs | 60 - .../IO/Swagger/Model/SignalType.cs | 36 - .../IO/Swagger/Model/SqlIndexType.cs | 36 - .../IO/Swagger/Model/StaticTables.cs | 36 - .../MediaCubeClient/IO/Swagger/Model/Store.cs | 76 - .../IO/Swagger/Model/StoreResponse.cs | 68 - .../IO/Swagger/Model/StoreUri.cs | 164 - .../IO/Swagger/Model/StoreUriResponse.cs | 68 - .../IO/Swagger/Model/Syncable.cs | 44 - .../IO/Swagger/Model/SystemResponse.cs | 68 - .../IO/Swagger/Model/Template.cs | 84 - .../IO/Swagger/Model/TemplateDeclaration.cs | 68 - .../IO/Swagger/Model/TemplateResponse.cs | 68 - .../IO/Swagger/Model/TemplateStep.cs | 68 - .../IO/Swagger/Model/TranscoderProfile.cs | 60 - .../IO/Swagger/Model/UserInfo.cs | 100 - .../IO/Swagger/Model/UserInfoResponse.cs | 68 - .../IO/Swagger/Model/UserMessage.cs | 108 - .../IO/Swagger/Model/UserReplyMessage.cs | 60 - .../IO/Swagger/Model/UserRight.cs | 36 - .../IO/Swagger/Model/ValidReplies.cs | 36 - client/MediaCubeClient/MediaCubeClient.csproj | 93 - .../deploy-mediacube-product.launch | 2 +- server/-modules/pom.xml | 2 +- 98 files changed, 2 insertions(+), 9197 deletions(-) delete mode 100644 client/IntegrationTests/MediaCubeClientIT.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Api/DefaultApi.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Client/ApiClient.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Client/ApiException.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Client/Configuration.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/AtomicLong.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/BaseType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/BreakType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/CreateJobParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DeclarationType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DeliveryMethod.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Domain.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DomainCategory.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DomainCategoryResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DomainResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Domains.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/DynamicAttributes.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/EntityBase.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/FileType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/FilterLogic.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/FilterValueLogic.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Folder.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/FolderResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/GetFilteredDomainByDisplayParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/GetFilteredParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/GuiType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Item.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ItemResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ItemType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ItemTypeResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Job.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/JobMessage.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/JobStart.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/JobStartType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/JobStatus.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/JobTemplatesInfo.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ListType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/LogEvent.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/LogLevel.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/LoginParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MapObjectObjectElement.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MapStringObjectElement.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MdType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Media.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MediaFile.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MediaFileResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MediaResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Metadata.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MetadataElement.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MetadataElementResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MetadataResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MetadataType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/MetadataTypeResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/OrderDirection.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/QueryObject.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RemoteFile.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RemoteFileResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RemoteStoreProtocol.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RemoveParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RenderParameter.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ReplyMessageParameters.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/RestartRequest.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ResumeRequest.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Scene.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SceneContent.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SceneContentResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SceneResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SearchDefinition.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SearchDefinitionResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SearchFilter.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SearchResult.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Shot.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ShotResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Signal.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SignalType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SqlIndexType.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/StaticTables.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Store.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/StoreResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/StoreUri.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/StoreUriResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Syncable.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/SystemResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/Template.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/TemplateDeclaration.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/TemplateResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/TemplateStep.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/TranscoderProfile.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/UserInfo.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/UserInfoResponse.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/UserMessage.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/UserReplyMessage.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/UserRight.cs delete mode 100644 client/MediaCubeClient/IO/Swagger/Model/ValidReplies.cs diff --git a/client/IntegrationTests/IntegrationTests.csproj b/client/IntegrationTests/IntegrationTests.csproj index 88437a5b..4e056781 100644 --- a/client/IntegrationTests/IntegrationTests.csproj +++ b/client/IntegrationTests/IntegrationTests.csproj @@ -78,7 +78,6 @@ - diff --git a/client/IntegrationTests/MediaCubeClientIT.cs b/client/IntegrationTests/MediaCubeClientIT.cs deleted file mode 100644 index 33a33391..00000000 --- a/client/IntegrationTests/MediaCubeClientIT.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using IO.Swagger.Api; -using IO.Swagger.Model; -using System.Diagnostics; -using System.Net; -using NexioClient; -using System.Threading; -using Newtonsoft.Json.Linq; -using System.Linq; - -namespace IntegrationTests { - [TestClass] - public class MediaCubeAPITests { - - [ClassInitialize] - static public void ClassInitialize(TestContext context) { - ServicePointManager.ServerCertificateValidationCallback += (s, c, ch, e) => true; - } - - [TestMethod] - public void TestLoginLogout() { - DefaultApi sut = new DefaultApi("https://localhost:8443/rest/service"); - UserInfo result = sut.LoginPost(new LoginParameters() { Username = "admin", Password = "admin" }); - Assert.IsNotNull(result); - Debug.WriteLine("Logged in"); - sut.MasLogoutGet(); - } - - [TestMethod] - public void TestWebSocket() { - CountdownEvent cde = new CountdownEvent(1); - NexioAPI ws = new NexioAPI("ws://localhost:8080/services/nexio"); - ws.Open((sender, e) => { - JObject resultObject = JObject.Parse(e.Data); - JToken resultList = JToken.Parse(resultObject.GetValue("data").ToString()); - resultList.Children().First().ToList().ForEach(d => { - Debug.WriteLine(d["longnameid"]); - }); - cde.Signal(); - }); - ws.GetListAsync(); - cde.Wait(); - ws.Close(); - } - - } -} diff --git a/client/MediaCubeClient/IO/Swagger/Api/DefaultApi.cs b/client/MediaCubeClient/IO/Swagger/Api/DefaultApi.cs deleted file mode 100644 index e30a3b6e..00000000 --- a/client/MediaCubeClient/IO/Swagger/Api/DefaultApi.cs +++ /dev/null @@ -1,2757 +0,0 @@ -using System; -using System.Collections.Generic; -using RestSharp; -using IO.Swagger.Client; -using IO.Swagger.Model; - -namespace IO.Swagger.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDefaultApi - { - /// - /// sessionId alapján elkér a managertõl egy UserInfo-t. - /// - /// - /// UserInfo - UserInfo LoginPost (LoginParameters username); - /// - /// A futó munkafolyamat leállításra kerül és kikerül a runQueue-ból. - /// - /// - /// - void MasCancelJobPost (long? jobId); - /// - /// A kliens felõl érkezõ új munkafolyamat indítása, amely a JobEngine submit metódusát hívja és jobStart paraméter alapján eldönti, hogy a munkafolyamat milyen módon kerüljön be a folyamatütemezõbe. - /// - /// - /// Job - Job MasCreateJobPost (CreateJobParameters createJobParameters); - /// - /// Név alapján kitörli a Sablont. - /// - /// - /// bool? - bool? MasDeleteTemplatePost (string name); - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes DomainCategory típusú entitást. - /// - /// List<DomainCategory> - List MasGetAllDomainCategoryGet (); - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes MetadataElement típusú entitást. - /// - /// List<MetadataElement> - List MasGetAllMetadataElementGet (); - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes MetadataType típusú entitást. - /// - /// List<MetadataType> - List MasGetAllMetadataTypeGet (); - /// - /// Fake hívás, így a webservice-en keresztül elérhetõ a Signal objektum. - /// - /// List<Signal> - List MasGetAllSignalGet (); - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes Store típusú entitást. - /// - /// List<Store> - List MasGetAllStoreGet (); - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes UserInfo típusú entitást. - /// - /// List<UserInfo> - List MasGetAllUserInfoGet (); - /// - /// Fake hívás. - /// - /// Domains - Domains MasGetDomainsGet (); - /// - /// Az ItemManager elkéri azokat a Domain-eket, melyek domainCategoryId-je és filtere egyenlõ filterId-val, illetve filter-el. - /// - /// - /// List<Domain> - List MasGetFilteredDomainByDisplayPost (GetFilteredDomainByDisplayParameters getFilteredDomainByDisplayParameters); - /// - /// Az ItemManager elkéri azokat a Domain-eket, melyek domainCategoryId-je egyenlõ filterId. - /// - /// - /// List<Domain> - List MasGetFilteredDomainPost (long? filterId); - /// - /// filterId alapján elkéri a Foldereket az ItemManager-tõl. - /// - /// - /// List<Folder> - List MasGetFilteredFolderPost (long? filterId); - /// - /// Elkéri az ItemManager-tõl az összes olyan Médiát, amelynek itemId-ja megegyezik a bemeneti paraméterként kapott filterId-val. - /// - /// - /// List<Media> - List MasGetFilteredMediaPost (long? filterId); - /// - /// ItemManager-tõl elkéri az összes olyan mentett vágólistát, amely name-el kezdõdik. - /// - /// - /// List<Scene> - List MasGetFilteredScenePost (GetFilteredParameters getFilteredParameters); - /// - /// ItemManager-tõl elkéri az összes olyan mentett keresést, amely filter-rel kezdõdik. - /// - /// - /// List<SearchDefinition> - List MasGetFilteredSearchDefinitionPost (GetFilteredParameters getFilteredParameters); - /// - /// ItemManager-tõl elkéri az összes olyan mappát, amely childId-ja filterId-vel egyenlõ. - /// - /// - /// List<Item> - List MasGetFoldersPost (long? filterId); - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ Item-et. - /// - /// - /// Item - Item MasGetItemPost (long? id); - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ ItemType-ot. - /// - /// - /// ItemType - ItemType MasGetItemTypePost (long? id); - /// - /// Típusleírók lekérdezése. Az adatmodell dinamikus, az anyag és verzió objektumok bõvítését szolgáló metaadatokat tartalmazza, kiegészítve az adatbázisban elõre definiált mezõk metaadat leíróival. - /// - /// List<ItemType> - List MasGetItemTypesGet (); - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott jobId-vel rendelkezõ Job-ot. - /// - /// - /// Job - Job MasGetJobPost (long? jobId); - /// - /// Visszaadja a rendszerben tárolt összes sablon-t és végrehajtó osztályok listáját egy JobTemplatesInfo osztályba csomagolva. - /// - /// JobTemplatesInfo - JobTemplatesInfo MasGetJobTemplatesInfoGet (); - /// - /// Naplózási szint alapján visszaad egy napló listát. - /// - /// - /// List<LogEvent> - List MasGetLogEventsPost (LogLevel logLevel); - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ Media-t. - /// - /// - /// Media - Media MasGetMediaPost (long? id); - /// - /// Visszaadja a JobEngine getUserMessageQueues() lista méretét. - /// - /// int? - int? MasGetMessageCountGet (); - /// - /// Visszadja messageId alapján az a UserMessage-et, amely a JobEngine getUserMessageQueues() listájában van. - /// - /// - /// UserMessage - UserMessage MasGetMessagePost (long? messageId); - /// - /// Visszaadja a JobEngine getUserMessageQueues()-ban lévõ UserMessage-ek listáját. - /// - /// List<UserMessage> - List MasGetMessagesGet (); - /// - /// fake hívás. - /// - /// MdType - MdType MasGetMetadataTypeGet (); - /// - /// A bemeneti paraméterként kapott storeUri-tól elkéri a hozzá tartozó remote file-okat. - /// - /// - /// RemoteFileResponse - RemoteFileResponse MasGetRemoteFilesPost (StoreUri id); - /// - /// Az id azonosítóval rendelkezõ Scene objektumot kéri el az ItemManager-tõl. - /// - /// - /// Scene - Scene MasGetScenePost (long? id); - /// - /// Az ItemManager-tõl elkéri a bemeneti paraméterben kapott azonosítóval rendelkezõ Mentett keresési feltételt. - /// - /// - /// SearchDefinition - SearchDefinition MasGetSearchDefinitionsPost (long? id); - /// - /// ItemManager-tõl elkéri az összes olyan Szkript-et, amely mediaId-je megyezik a bemeneti paraméterként kapott mediaId-vel. - /// - /// - /// List<Shot> - List MasGetShotsPost (long? mediaId); - /// - /// Visszatér az illesztett transzkóder profil információkkal. - /// - /// List<TranscoderProfile> - List MasGetTranscodeProfilesGet (); - /// - /// fake hívás - /// - /// List<UserRight> - List MasGetUserRightGet (); - /// - /// nincs implementálva - /// - /// - void MasLogoutGet (); - /// - /// Szerializáláshoz beregisztrált objektum típusok, melyek object-ként mennének át a proxy-n. - /// - /// List<Object> - List MasRegisterGet (); - /// - /// Az osztály név és azonosító lista alapján az ItemManager-el eltávolítja az entitásokat az adatbázisból. - /// - /// - /// SystemResponse - SystemResponse MasRemoveAllPost (RemoveParameters removeParameters); - /// - /// Az osztály név és azonosító lista alapján az ItemManager-el eltávolítja az entitásokat az adatbázisból. - /// - /// - /// SystemResponse - SystemResponse MasRemovePost (RemoveParameters removeParameters); - /// - /// Elhelyez egy UserReplyMessage típusú üzenetet a motor rendszerüzenet várakozási sorába. - /// - /// - /// - void MasReplyMessagePost (ReplyMessageParameters replyMessageParameters); - /// - /// Munkafolyamat azonosító alapján egy új újraindítási kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - void MasRestartJobPost (long? jobId); - /// - /// Munkafolyamat azonosító alapján egy új folytatási kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - void MasResumeJobPost (long? jobId); - /// - /// Egy új/létezõ lista kategóriát ment el/módosít az adatbázisba. - /// - /// - /// DomainCategoryResponse - DomainCategoryResponse MasSaveDomainCategoryPost (DomainCategory domainCategory); - /// - /// Egy új/létezõ listát ment el/módosít az adatbázisba. - /// - /// - /// DomainResponse - DomainResponse MasSaveDomainPost (Domain domain); - /// - /// Egy új/létezõ mappát ment el/módosít az adatbázisba. - /// - /// - /// FolderResponse - FolderResponse MasSaveFolderPost (Folder folder); - /// - /// Egy új/létezõ Anyagot ment el/módosít az adatbázisba. - /// - /// - /// ItemResponse - ItemResponse MasSaveItemPost (Item item); - /// - /// Egy új/létezõ Anyag típust ment el/módosít az adatbázisba. - /// - /// - /// ItemTypeResponse - ItemTypeResponse MasSaveItemTypePost (ItemType itemType); - /// - /// Egy új/létezõ Kópiát ment el/módosít az adatbázisba. - /// - /// - /// MediaFileResponse - MediaFileResponse MasSaveMediaFilePost (MediaFile mediaFile); - /// - /// Egy új/létezõ Verziót ment el/módosít az adatbázisba. - /// - /// - /// MediaResponse - MediaResponse MasSaveMediaPost (Media media); - /// - /// Egy új/létezõ Meta adat elemet ment el/módosít az adatbázisba. - /// - /// - /// MetadataElementResponse - MetadataElementResponse MasSaveMetadataElementPost (MetadataElement metadataElement); - /// - /// Egy új/létezõ Meta adatot ment el/módosít az adatbázisba. - /// - /// - /// MetadataResponse - MetadataResponse MasSaveMetadataPost (Metadata metadata); - /// - /// Egy új/létezõ Meta adat típust ment el/módosít az adatbázisba. - /// - /// - /// MetadataTypeResponse - MetadataTypeResponse MasSaveMetadataTypePost (MetadataType metadataType); - /// - /// Egy új/létezõ Vágólista elemet ment el/módosít az adatbázisba. - /// - /// - /// SceneContentResponse - SceneContentResponse MasSaveSceneContentPost (SceneContent sceneContent); - /// - /// Egy új/létezõ Vágólistát ment el/módosít az adatbázisba. - /// - /// - /// SceneResponse - SceneResponse MasSaveScenePost (Scene scene); - /// - /// Egy új/létezõ Keresést ment el/módosít az adatbázisba. - /// - /// - /// SearchDefinitionResponse - SearchDefinitionResponse MasSaveSearchDefinitionPost (SearchDefinition searchDefinition); - /// - /// Egy új/létezõ Szkriptet ment el/módosít az adatbázisba. - /// - /// - /// ShotResponse - ShotResponse MasSaveShotPost (Shot shot); - /// - /// Egy új/létezõ Tárolót ment el/módosít az adatbázisba. - /// - /// - /// StoreResponse - StoreResponse MasSaveStorePost (Store store); - /// - /// Egy új/létezõ Tároló uri-t ment el/módosít az adatbázisba. - /// - /// - /// StoreUriResponse - StoreUriResponse MasSaveStoreUriPost (StoreUri storeUri); - /// - /// Egy új Sablont tölt be a folyamatkezelõ motor program betöltõjébe. - /// - /// - /// TemplateResponse - TemplateResponse MasSaveTemplatePost (Template template); - /// - /// Egy új/létezõ Felhasználót ment el/módosít az adatbázisba. - /// - /// - /// UserInfoResponse - UserInfoResponse MasSaveUserInfoPost (UserInfo userInfo); - /// - /// Anyagok keresése. A keresés elsõ futtatásakor csak az elsõ SearchResult tartalmaz anyagokat, a találati lista elsõ oldalát, cím szerint rendezetten. Újbóli futtatás esetén a paraméter megjelenítési információinak módosításával változtatható az anyagok listája. - /// - /// - /// List<SearchResult> - List MasSearchItemPost (QueryObject queryObject); - /// - /// Egy QueryObject paraméter alapján elkéri az ItemManager-tõl a paraméterben tárolt szûrési feltételeknek megfelelõ Job-ok listáját. - /// - /// - /// List<Job> - List MasSearchJobsPost (QueryObject parameter); - /// - /// Munkafolyamat motor leállítása. - /// - /// - void MasShutdownGet (); - /// - /// Munkafolyamat motor elindítása. - /// - /// - void MasStartupGet (); - /// - /// Munkafolyamat azonosító alapján egy új felfüggesztési kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - void MasSuspendJobPost (long? jobId); - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public class DefaultApi : IDefaultApi - { - /// - /// Initializes a new instance of the class. - /// - /// an instance of ApiClient (optional) - /// - public DefaultApi(ApiClient apiClient = null) - { - if (apiClient == null) // use the default one in Configuration - this.ApiClient = Configuration.DefaultApiClient; - else - this.ApiClient = apiClient; - } - - /// - /// Initializes a new instance of the class. - /// - /// - public DefaultApi(String basePath) - { - this.ApiClient = new ApiClient(basePath); - } - - /// - /// Sets the base path of the API client. - /// - /// The base path - /// The base path - public void SetBasePath(String basePath) - { - this.ApiClient.BasePath = basePath; - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - /// The base path - public String GetBasePath(String basePath) - { - return this.ApiClient.BasePath; - } - - /// - /// Gets or sets the API client. - /// - /// An instance of the ApiClient - public ApiClient ApiClient {get; set;} - - /// - /// sessionId alapján elkér a managertõl egy UserInfo-t. - /// - /// - /// UserInfo - public UserInfo LoginPost (LoginParameters username) - { - - // verify the required parameter 'username' is set - if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling LoginPost"); - - - var path = "/login"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(username); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling LoginPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling LoginPost: " + response.ErrorMessage, response.ErrorMessage); - - return (UserInfo) ApiClient.Deserialize(response.Content, typeof(UserInfo), response.Headers); - } - - /// - /// A futó munkafolyamat leállításra kerül és kikerül a runQueue-ból. - /// - /// - /// - public void MasCancelJobPost (long? jobId) - { - - // verify the required parameter 'jobId' is set - if (jobId == null) throw new ApiException(400, "Missing required parameter 'jobId' when calling MasCancelJobPost"); - - - var path = "/mas/cancelJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(jobId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasCancelJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasCancelJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// A kliens felõl érkezõ új munkafolyamat indítása, amely a JobEngine submit metódusát hívja és jobStart paraméter alapján eldönti, hogy a munkafolyamat milyen módon kerüljön be a folyamatütemezõbe. - /// - /// - /// Job - public Job MasCreateJobPost (CreateJobParameters createJobParameters) - { - - // verify the required parameter 'createJobParameters' is set - if (createJobParameters == null) throw new ApiException(400, "Missing required parameter 'createJobParameters' when calling MasCreateJobPost"); - - - var path = "/mas/createJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(createJobParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasCreateJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasCreateJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return (Job) ApiClient.Deserialize(response.Content, typeof(Job), response.Headers); - } - - /// - /// Név alapján kitörli a Sablont. - /// - /// - /// bool? - public bool? MasDeleteTemplatePost (string name) - { - - // verify the required parameter 'name' is set - if (name == null) throw new ApiException(400, "Missing required parameter 'name' when calling MasDeleteTemplatePost"); - - - var path = "/mas/deleteTemplate"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(name); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasDeleteTemplatePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasDeleteTemplatePost: " + response.ErrorMessage, response.ErrorMessage); - - return (bool?) ApiClient.Deserialize(response.Content, typeof(bool?), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes DomainCategory típusú entitást. - /// - /// List<DomainCategory> - public List MasGetAllDomainCategoryGet () - { - - - var path = "/mas/getAllDomainCategory"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllDomainCategoryGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllDomainCategoryGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes MetadataElement típusú entitást. - /// - /// List<MetadataElement> - public List MasGetAllMetadataElementGet () - { - - - var path = "/mas/getAllMetadataElement"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllMetadataElementGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllMetadataElementGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes MetadataType típusú entitást. - /// - /// List<MetadataType> - public List MasGetAllMetadataTypeGet () - { - - - var path = "/mas/getAllMetadataType"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllMetadataTypeGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllMetadataTypeGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Fake hívás, így a webservice-en keresztül elérhetõ a Signal objektum. - /// - /// List<Signal> - public List MasGetAllSignalGet () - { - - - var path = "/mas/getAllSignal"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllSignalGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllSignalGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes Store típusú entitást. - /// - /// List<Store> - public List MasGetAllStoreGet () - { - - - var path = "/mas/getAllStore"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllStoreGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllStoreGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri az adatbázisban eltárolt összes UserInfo típusú entitást. - /// - /// List<UserInfo> - public List MasGetAllUserInfoGet () - { - - - var path = "/mas/getAllUserInfo"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllUserInfoGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetAllUserInfoGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Fake hívás. - /// - /// Domains - public Domains MasGetDomainsGet () - { - - - var path = "/mas/getDomains"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetDomainsGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetDomainsGet: " + response.ErrorMessage, response.ErrorMessage); - - return (Domains) ApiClient.Deserialize(response.Content, typeof(Domains), response.Headers); - } - - /// - /// Az ItemManager elkéri azokat a Domain-eket, melyek domainCategoryId-je és filtere egyenlõ filterId-val, illetve filter-el. - /// - /// - /// List<Domain> - public List MasGetFilteredDomainByDisplayPost (GetFilteredDomainByDisplayParameters getFilteredDomainByDisplayParameters) - { - - // verify the required parameter 'getFilteredDomainByDisplayParameters' is set - if (getFilteredDomainByDisplayParameters == null) throw new ApiException(400, "Missing required parameter 'getFilteredDomainByDisplayParameters' when calling MasGetFilteredDomainByDisplayPost"); - - - var path = "/mas/getFilteredDomainByDisplay"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(getFilteredDomainByDisplayParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredDomainByDisplayPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredDomainByDisplayPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az ItemManager elkéri azokat a Domain-eket, melyek domainCategoryId-je egyenlõ filterId. - /// - /// - /// List<Domain> - public List MasGetFilteredDomainPost (long? filterId) - { - - // verify the required parameter 'filterId' is set - if (filterId == null) throw new ApiException(400, "Missing required parameter 'filterId' when calling MasGetFilteredDomainPost"); - - - var path = "/mas/getFilteredDomain"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(filterId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredDomainPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredDomainPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// filterId alapján elkéri a Foldereket az ItemManager-tõl. - /// - /// - /// List<Folder> - public List MasGetFilteredFolderPost (long? filterId) - { - - // verify the required parameter 'filterId' is set - if (filterId == null) throw new ApiException(400, "Missing required parameter 'filterId' when calling MasGetFilteredFolderPost"); - - - var path = "/mas/getFilteredFolder"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(filterId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredFolderPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredFolderPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Elkéri az ItemManager-tõl az összes olyan Médiát, amelynek itemId-ja megegyezik a bemeneti paraméterként kapott filterId-val. - /// - /// - /// List<Media> - public List MasGetFilteredMediaPost (long? filterId) - { - - // verify the required parameter 'filterId' is set - if (filterId == null) throw new ApiException(400, "Missing required parameter 'filterId' when calling MasGetFilteredMediaPost"); - - - var path = "/mas/getFilteredMedia"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(filterId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredMediaPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredMediaPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri az összes olyan mentett vágólistát, amely name-el kezdõdik. - /// - /// - /// List<Scene> - public List MasGetFilteredScenePost (GetFilteredParameters getFilteredParameters) - { - - // verify the required parameter 'getFilteredParameters' is set - if (getFilteredParameters == null) throw new ApiException(400, "Missing required parameter 'getFilteredParameters' when calling MasGetFilteredScenePost"); - - - var path = "/mas/getFilteredScene"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(getFilteredParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredScenePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredScenePost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri az összes olyan mentett keresést, amely filter-rel kezdõdik. - /// - /// - /// List<SearchDefinition> - public List MasGetFilteredSearchDefinitionPost (GetFilteredParameters getFilteredParameters) - { - - // verify the required parameter 'getFilteredParameters' is set - if (getFilteredParameters == null) throw new ApiException(400, "Missing required parameter 'getFilteredParameters' when calling MasGetFilteredSearchDefinitionPost"); - - - var path = "/mas/getFilteredSearchDefinition"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(getFilteredParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredSearchDefinitionPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFilteredSearchDefinitionPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri az összes olyan mappát, amely childId-ja filterId-vel egyenlõ. - /// - /// - /// List<Item> - public List MasGetFoldersPost (long? filterId) - { - - // verify the required parameter 'filterId' is set - if (filterId == null) throw new ApiException(400, "Missing required parameter 'filterId' when calling MasGetFoldersPost"); - - - var path = "/mas/getFolders"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(filterId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFoldersPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetFoldersPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ Item-et. - /// - /// - /// Item - public Item MasGetItemPost (long? id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetItemPost"); - - - var path = "/mas/getItem"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemPost: " + response.ErrorMessage, response.ErrorMessage); - - return (Item) ApiClient.Deserialize(response.Content, typeof(Item), response.Headers); - } - - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ ItemType-ot. - /// - /// - /// ItemType - public ItemType MasGetItemTypePost (long? id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetItemTypePost"); - - - var path = "/mas/getItemType"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemTypePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemTypePost: " + response.ErrorMessage, response.ErrorMessage); - - return (ItemType) ApiClient.Deserialize(response.Content, typeof(ItemType), response.Headers); - } - - /// - /// Típusleírók lekérdezése. Az adatmodell dinamikus, az anyag és verzió objektumok bõvítését szolgáló metaadatokat tartalmazza, kiegészítve az adatbázisban elõre definiált mezõk metaadat leíróival. - /// - /// List<ItemType> - public List MasGetItemTypesGet () - { - - - var path = "/mas/getItemTypes"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemTypesGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetItemTypesGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott jobId-vel rendelkezõ Job-ot. - /// - /// - /// Job - public Job MasGetJobPost (long? jobId) - { - - // verify the required parameter 'jobId' is set - if (jobId == null) throw new ApiException(400, "Missing required parameter 'jobId' when calling MasGetJobPost"); - - - var path = "/mas/getJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(jobId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return (Job) ApiClient.Deserialize(response.Content, typeof(Job), response.Headers); - } - - /// - /// Visszaadja a rendszerben tárolt összes sablon-t és végrehajtó osztályok listáját egy JobTemplatesInfo osztályba csomagolva. - /// - /// JobTemplatesInfo - public JobTemplatesInfo MasGetJobTemplatesInfoGet () - { - - - var path = "/mas/getJobTemplatesInfo"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetJobTemplatesInfoGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetJobTemplatesInfoGet: " + response.ErrorMessage, response.ErrorMessage); - - return (JobTemplatesInfo) ApiClient.Deserialize(response.Content, typeof(JobTemplatesInfo), response.Headers); - } - - /// - /// Naplózási szint alapján visszaad egy napló listát. - /// - /// - /// List<LogEvent> - public List MasGetLogEventsPost (LogLevel logLevel) - { - - // verify the required parameter 'logLevel' is set - if (logLevel == null) throw new ApiException(400, "Missing required parameter 'logLevel' when calling MasGetLogEventsPost"); - - - var path = "/mas/getLogEvents"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(logLevel); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetLogEventsPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetLogEventsPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// ItemManager-tõl elkéri a bemeneti paraméterként kapott id-vel rendelkezõ Media-t. - /// - /// - /// Media - public Media MasGetMediaPost (long? id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetMediaPost"); - - - var path = "/mas/getMedia"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMediaPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMediaPost: " + response.ErrorMessage, response.ErrorMessage); - - return (Media) ApiClient.Deserialize(response.Content, typeof(Media), response.Headers); - } - - /// - /// Visszaadja a JobEngine getUserMessageQueues() lista méretét. - /// - /// int? - public int? MasGetMessageCountGet () - { - - - var path = "/mas/getMessageCount"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessageCountGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessageCountGet: " + response.ErrorMessage, response.ErrorMessage); - - return (int?) ApiClient.Deserialize(response.Content, typeof(int?), response.Headers); - } - - /// - /// Visszadja messageId alapján az a UserMessage-et, amely a JobEngine getUserMessageQueues() listájában van. - /// - /// - /// UserMessage - public UserMessage MasGetMessagePost (long? messageId) - { - - // verify the required parameter 'messageId' is set - if (messageId == null) throw new ApiException(400, "Missing required parameter 'messageId' when calling MasGetMessagePost"); - - - var path = "/mas/getMessage"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(messageId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessagePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessagePost: " + response.ErrorMessage, response.ErrorMessage); - - return (UserMessage) ApiClient.Deserialize(response.Content, typeof(UserMessage), response.Headers); - } - - /// - /// Visszaadja a JobEngine getUserMessageQueues()-ban lévõ UserMessage-ek listáját. - /// - /// List<UserMessage> - public List MasGetMessagesGet () - { - - - var path = "/mas/getMessages"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessagesGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMessagesGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// fake hívás. - /// - /// MdType - public MdType MasGetMetadataTypeGet () - { - - - var path = "/mas/getMetadataType"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMetadataTypeGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetMetadataTypeGet: " + response.ErrorMessage, response.ErrorMessage); - - return (MdType) ApiClient.Deserialize(response.Content, typeof(MdType), response.Headers); - } - - /// - /// A bemeneti paraméterként kapott storeUri-tól elkéri a hozzá tartozó remote file-okat. - /// - /// - /// RemoteFileResponse - public RemoteFileResponse MasGetRemoteFilesPost (StoreUri id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetRemoteFilesPost"); - - - var path = "/mas/getRemoteFiles"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetRemoteFilesPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetRemoteFilesPost: " + response.ErrorMessage, response.ErrorMessage); - - return (RemoteFileResponse) ApiClient.Deserialize(response.Content, typeof(RemoteFileResponse), response.Headers); - } - - /// - /// Az id azonosítóval rendelkezõ Scene objektumot kéri el az ItemManager-tõl. - /// - /// - /// Scene - public Scene MasGetScenePost (long? id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetScenePost"); - - - var path = "/mas/getScene"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetScenePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetScenePost: " + response.ErrorMessage, response.ErrorMessage); - - return (Scene) ApiClient.Deserialize(response.Content, typeof(Scene), response.Headers); - } - - /// - /// Az ItemManager-tõl elkéri a bemeneti paraméterben kapott azonosítóval rendelkezõ Mentett keresési feltételt. - /// - /// - /// SearchDefinition - public SearchDefinition MasGetSearchDefinitionsPost (long? id) - { - - // verify the required parameter 'id' is set - if (id == null) throw new ApiException(400, "Missing required parameter 'id' when calling MasGetSearchDefinitionsPost"); - - - var path = "/mas/getSearchDefinitions"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(id); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetSearchDefinitionsPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetSearchDefinitionsPost: " + response.ErrorMessage, response.ErrorMessage); - - return (SearchDefinition) ApiClient.Deserialize(response.Content, typeof(SearchDefinition), response.Headers); - } - - /// - /// ItemManager-tõl elkéri az összes olyan Szkript-et, amely mediaId-je megyezik a bemeneti paraméterként kapott mediaId-vel. - /// - /// - /// List<Shot> - public List MasGetShotsPost (long? mediaId) - { - - // verify the required parameter 'mediaId' is set - if (mediaId == null) throw new ApiException(400, "Missing required parameter 'mediaId' when calling MasGetShotsPost"); - - - var path = "/mas/getShots"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(mediaId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetShotsPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetShotsPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Visszatér az illesztett transzkóder profil információkkal. - /// - /// List<TranscoderProfile> - public List MasGetTranscodeProfilesGet () - { - - - var path = "/mas/getTranscodeProfiles"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetTranscodeProfilesGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetTranscodeProfilesGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// fake hívás - /// - /// List<UserRight> - public List MasGetUserRightGet () - { - - - var path = "/mas/getUserRight"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetUserRightGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasGetUserRightGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// nincs implementálva - /// - /// - public void MasLogoutGet () - { - - - var path = "/mas/logout"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasLogoutGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasLogoutGet: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Szerializáláshoz beregisztrált objektum típusok, melyek object-ként mennének át a proxy-n. - /// - /// List<Object> - public List MasRegisterGet () - { - - - var path = "/mas/register"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasRegisterGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasRegisterGet: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Az osztály név és azonosító lista alapján az ItemManager-el eltávolítja az entitásokat az adatbázisból. - /// - /// - /// SystemResponse - public SystemResponse MasRemoveAllPost (RemoveParameters removeParameters) - { - - // verify the required parameter 'removeParameters' is set - if (removeParameters == null) throw new ApiException(400, "Missing required parameter 'removeParameters' when calling MasRemoveAllPost"); - - - var path = "/mas/removeAll"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(removeParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasRemoveAllPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasRemoveAllPost: " + response.ErrorMessage, response.ErrorMessage); - - return (SystemResponse) ApiClient.Deserialize(response.Content, typeof(SystemResponse), response.Headers); - } - - /// - /// Az osztály név és azonosító lista alapján az ItemManager-el eltávolítja az entitásokat az adatbázisból. - /// - /// - /// SystemResponse - public SystemResponse MasRemovePost (RemoveParameters removeParameters) - { - - // verify the required parameter 'removeParameters' is set - if (removeParameters == null) throw new ApiException(400, "Missing required parameter 'removeParameters' when calling MasRemovePost"); - - - var path = "/mas/remove"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(removeParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasRemovePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasRemovePost: " + response.ErrorMessage, response.ErrorMessage); - - return (SystemResponse) ApiClient.Deserialize(response.Content, typeof(SystemResponse), response.Headers); - } - - /// - /// Elhelyez egy UserReplyMessage típusú üzenetet a motor rendszerüzenet várakozási sorába. - /// - /// - /// - public void MasReplyMessagePost (ReplyMessageParameters replyMessageParameters) - { - - // verify the required parameter 'replyMessageParameters' is set - if (replyMessageParameters == null) throw new ApiException(400, "Missing required parameter 'replyMessageParameters' when calling MasReplyMessagePost"); - - - var path = "/mas/replyMessage"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(replyMessageParameters); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasReplyMessagePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasReplyMessagePost: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Munkafolyamat azonosító alapján egy új újraindítási kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - public void MasRestartJobPost (long? jobId) - { - - // verify the required parameter 'jobId' is set - if (jobId == null) throw new ApiException(400, "Missing required parameter 'jobId' when calling MasRestartJobPost"); - - - var path = "/mas/restartJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(jobId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasRestartJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasRestartJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Munkafolyamat azonosító alapján egy új folytatási kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - public void MasResumeJobPost (long? jobId) - { - - // verify the required parameter 'jobId' is set - if (jobId == null) throw new ApiException(400, "Missing required parameter 'jobId' when calling MasResumeJobPost"); - - - var path = "/mas/resumeJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(jobId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasResumeJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasResumeJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Egy új/létezõ lista kategóriát ment el/módosít az adatbázisba. - /// - /// - /// DomainCategoryResponse - public DomainCategoryResponse MasSaveDomainCategoryPost (DomainCategory domainCategory) - { - - // verify the required parameter 'domainCategory' is set - if (domainCategory == null) throw new ApiException(400, "Missing required parameter 'domainCategory' when calling MasSaveDomainCategoryPost"); - - - var path = "/mas/saveDomainCategory"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(domainCategory); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveDomainCategoryPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveDomainCategoryPost: " + response.ErrorMessage, response.ErrorMessage); - - return (DomainCategoryResponse) ApiClient.Deserialize(response.Content, typeof(DomainCategoryResponse), response.Headers); - } - - /// - /// Egy új/létezõ listát ment el/módosít az adatbázisba. - /// - /// - /// DomainResponse - public DomainResponse MasSaveDomainPost (Domain domain) - { - - // verify the required parameter 'domain' is set - if (domain == null) throw new ApiException(400, "Missing required parameter 'domain' when calling MasSaveDomainPost"); - - - var path = "/mas/saveDomain"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(domain); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveDomainPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveDomainPost: " + response.ErrorMessage, response.ErrorMessage); - - return (DomainResponse) ApiClient.Deserialize(response.Content, typeof(DomainResponse), response.Headers); - } - - /// - /// Egy új/létezõ mappát ment el/módosít az adatbázisba. - /// - /// - /// FolderResponse - public FolderResponse MasSaveFolderPost (Folder folder) - { - - // verify the required parameter 'folder' is set - if (folder == null) throw new ApiException(400, "Missing required parameter 'folder' when calling MasSaveFolderPost"); - - - var path = "/mas/saveFolder"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(folder); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveFolderPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveFolderPost: " + response.ErrorMessage, response.ErrorMessage); - - return (FolderResponse) ApiClient.Deserialize(response.Content, typeof(FolderResponse), response.Headers); - } - - /// - /// Egy új/létezõ Anyagot ment el/módosít az adatbázisba. - /// - /// - /// ItemResponse - public ItemResponse MasSaveItemPost (Item item) - { - - // verify the required parameter 'item' is set - if (item == null) throw new ApiException(400, "Missing required parameter 'item' when calling MasSaveItemPost"); - - - var path = "/mas/saveItem"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(item); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveItemPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveItemPost: " + response.ErrorMessage, response.ErrorMessage); - - return (ItemResponse) ApiClient.Deserialize(response.Content, typeof(ItemResponse), response.Headers); - } - - /// - /// Egy új/létezõ Anyag típust ment el/módosít az adatbázisba. - /// - /// - /// ItemTypeResponse - public ItemTypeResponse MasSaveItemTypePost (ItemType itemType) - { - - // verify the required parameter 'itemType' is set - if (itemType == null) throw new ApiException(400, "Missing required parameter 'itemType' when calling MasSaveItemTypePost"); - - - var path = "/mas/saveItemType"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(itemType); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveItemTypePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveItemTypePost: " + response.ErrorMessage, response.ErrorMessage); - - return (ItemTypeResponse) ApiClient.Deserialize(response.Content, typeof(ItemTypeResponse), response.Headers); - } - - /// - /// Egy új/létezõ Kópiát ment el/módosít az adatbázisba. - /// - /// - /// MediaFileResponse - public MediaFileResponse MasSaveMediaFilePost (MediaFile mediaFile) - { - - // verify the required parameter 'mediaFile' is set - if (mediaFile == null) throw new ApiException(400, "Missing required parameter 'mediaFile' when calling MasSaveMediaFilePost"); - - - var path = "/mas/saveMediaFile"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(mediaFile); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMediaFilePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMediaFilePost: " + response.ErrorMessage, response.ErrorMessage); - - return (MediaFileResponse) ApiClient.Deserialize(response.Content, typeof(MediaFileResponse), response.Headers); - } - - /// - /// Egy új/létezõ Verziót ment el/módosít az adatbázisba. - /// - /// - /// MediaResponse - public MediaResponse MasSaveMediaPost (Media media) - { - - // verify the required parameter 'media' is set - if (media == null) throw new ApiException(400, "Missing required parameter 'media' when calling MasSaveMediaPost"); - - - var path = "/mas/saveMedia"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(media); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMediaPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMediaPost: " + response.ErrorMessage, response.ErrorMessage); - - return (MediaResponse) ApiClient.Deserialize(response.Content, typeof(MediaResponse), response.Headers); - } - - /// - /// Egy új/létezõ Meta adat elemet ment el/módosít az adatbázisba. - /// - /// - /// MetadataElementResponse - public MetadataElementResponse MasSaveMetadataElementPost (MetadataElement metadataElement) - { - - // verify the required parameter 'metadataElement' is set - if (metadataElement == null) throw new ApiException(400, "Missing required parameter 'metadataElement' when calling MasSaveMetadataElementPost"); - - - var path = "/mas/saveMetadataElement"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(metadataElement); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataElementPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataElementPost: " + response.ErrorMessage, response.ErrorMessage); - - return (MetadataElementResponse) ApiClient.Deserialize(response.Content, typeof(MetadataElementResponse), response.Headers); - } - - /// - /// Egy új/létezõ Meta adatot ment el/módosít az adatbázisba. - /// - /// - /// MetadataResponse - public MetadataResponse MasSaveMetadataPost (Metadata metadata) - { - - // verify the required parameter 'metadata' is set - if (metadata == null) throw new ApiException(400, "Missing required parameter 'metadata' when calling MasSaveMetadataPost"); - - - var path = "/mas/saveMetadata"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(metadata); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataPost: " + response.ErrorMessage, response.ErrorMessage); - - return (MetadataResponse) ApiClient.Deserialize(response.Content, typeof(MetadataResponse), response.Headers); - } - - /// - /// Egy új/létezõ Meta adat típust ment el/módosít az adatbázisba. - /// - /// - /// MetadataTypeResponse - public MetadataTypeResponse MasSaveMetadataTypePost (MetadataType metadataType) - { - - // verify the required parameter 'metadataType' is set - if (metadataType == null) throw new ApiException(400, "Missing required parameter 'metadataType' when calling MasSaveMetadataTypePost"); - - - var path = "/mas/saveMetadataType"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(metadataType); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataTypePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveMetadataTypePost: " + response.ErrorMessage, response.ErrorMessage); - - return (MetadataTypeResponse) ApiClient.Deserialize(response.Content, typeof(MetadataTypeResponse), response.Headers); - } - - /// - /// Egy új/létezõ Vágólista elemet ment el/módosít az adatbázisba. - /// - /// - /// SceneContentResponse - public SceneContentResponse MasSaveSceneContentPost (SceneContent sceneContent) - { - - // verify the required parameter 'sceneContent' is set - if (sceneContent == null) throw new ApiException(400, "Missing required parameter 'sceneContent' when calling MasSaveSceneContentPost"); - - - var path = "/mas/saveSceneContent"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(sceneContent); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveSceneContentPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveSceneContentPost: " + response.ErrorMessage, response.ErrorMessage); - - return (SceneContentResponse) ApiClient.Deserialize(response.Content, typeof(SceneContentResponse), response.Headers); - } - - /// - /// Egy új/létezõ Vágólistát ment el/módosít az adatbázisba. - /// - /// - /// SceneResponse - public SceneResponse MasSaveScenePost (Scene scene) - { - - // verify the required parameter 'scene' is set - if (scene == null) throw new ApiException(400, "Missing required parameter 'scene' when calling MasSaveScenePost"); - - - var path = "/mas/saveScene"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(scene); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveScenePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveScenePost: " + response.ErrorMessage, response.ErrorMessage); - - return (SceneResponse) ApiClient.Deserialize(response.Content, typeof(SceneResponse), response.Headers); - } - - /// - /// Egy új/létezõ Keresést ment el/módosít az adatbázisba. - /// - /// - /// SearchDefinitionResponse - public SearchDefinitionResponse MasSaveSearchDefinitionPost (SearchDefinition searchDefinition) - { - - // verify the required parameter 'searchDefinition' is set - if (searchDefinition == null) throw new ApiException(400, "Missing required parameter 'searchDefinition' when calling MasSaveSearchDefinitionPost"); - - - var path = "/mas/saveSearchDefinition"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(searchDefinition); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveSearchDefinitionPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveSearchDefinitionPost: " + response.ErrorMessage, response.ErrorMessage); - - return (SearchDefinitionResponse) ApiClient.Deserialize(response.Content, typeof(SearchDefinitionResponse), response.Headers); - } - - /// - /// Egy új/létezõ Szkriptet ment el/módosít az adatbázisba. - /// - /// - /// ShotResponse - public ShotResponse MasSaveShotPost (Shot shot) - { - - // verify the required parameter 'shot' is set - if (shot == null) throw new ApiException(400, "Missing required parameter 'shot' when calling MasSaveShotPost"); - - - var path = "/mas/saveShot"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(shot); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveShotPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveShotPost: " + response.ErrorMessage, response.ErrorMessage); - - return (ShotResponse) ApiClient.Deserialize(response.Content, typeof(ShotResponse), response.Headers); - } - - /// - /// Egy új/létezõ Tárolót ment el/módosít az adatbázisba. - /// - /// - /// StoreResponse - public StoreResponse MasSaveStorePost (Store store) - { - - // verify the required parameter 'store' is set - if (store == null) throw new ApiException(400, "Missing required parameter 'store' when calling MasSaveStorePost"); - - - var path = "/mas/saveStore"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(store); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveStorePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveStorePost: " + response.ErrorMessage, response.ErrorMessage); - - return (StoreResponse) ApiClient.Deserialize(response.Content, typeof(StoreResponse), response.Headers); - } - - /// - /// Egy új/létezõ Tároló uri-t ment el/módosít az adatbázisba. - /// - /// - /// StoreUriResponse - public StoreUriResponse MasSaveStoreUriPost (StoreUri storeUri) - { - - // verify the required parameter 'storeUri' is set - if (storeUri == null) throw new ApiException(400, "Missing required parameter 'storeUri' when calling MasSaveStoreUriPost"); - - - var path = "/mas/saveStoreUri"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(storeUri); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveStoreUriPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveStoreUriPost: " + response.ErrorMessage, response.ErrorMessage); - - return (StoreUriResponse) ApiClient.Deserialize(response.Content, typeof(StoreUriResponse), response.Headers); - } - - /// - /// Egy új Sablont tölt be a folyamatkezelõ motor program betöltõjébe. - /// - /// - /// TemplateResponse - public TemplateResponse MasSaveTemplatePost (Template template) - { - - // verify the required parameter 'template' is set - if (template == null) throw new ApiException(400, "Missing required parameter 'template' when calling MasSaveTemplatePost"); - - - var path = "/mas/saveTemplate"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(template); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveTemplatePost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveTemplatePost: " + response.ErrorMessage, response.ErrorMessage); - - return (TemplateResponse) ApiClient.Deserialize(response.Content, typeof(TemplateResponse), response.Headers); - } - - /// - /// Egy új/létezõ Felhasználót ment el/módosít az adatbázisba. - /// - /// - /// UserInfoResponse - public UserInfoResponse MasSaveUserInfoPost (UserInfo userInfo) - { - - // verify the required parameter 'userInfo' is set - if (userInfo == null) throw new ApiException(400, "Missing required parameter 'userInfo' when calling MasSaveUserInfoPost"); - - - var path = "/mas/saveUserInfo"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(userInfo); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveUserInfoPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSaveUserInfoPost: " + response.ErrorMessage, response.ErrorMessage); - - return (UserInfoResponse) ApiClient.Deserialize(response.Content, typeof(UserInfoResponse), response.Headers); - } - - /// - /// Anyagok keresése. A keresés elsõ futtatásakor csak az elsõ SearchResult tartalmaz anyagokat, a találati lista elsõ oldalát, cím szerint rendezetten. Újbóli futtatás esetén a paraméter megjelenítési információinak módosításával változtatható az anyagok listája. - /// - /// - /// List<SearchResult> - public List MasSearchItemPost (QueryObject queryObject) - { - - // verify the required parameter 'queryObject' is set - if (queryObject == null) throw new ApiException(400, "Missing required parameter 'queryObject' when calling MasSearchItemPost"); - - - var path = "/mas/searchItem"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(queryObject); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSearchItemPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSearchItemPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Egy QueryObject paraméter alapján elkéri az ItemManager-tõl a paraméterben tárolt szûrési feltételeknek megfelelõ Job-ok listáját. - /// - /// - /// List<Job> - public List MasSearchJobsPost (QueryObject parameter) - { - - // verify the required parameter 'parameter' is set - if (parameter == null) throw new ApiException(400, "Missing required parameter 'parameter' when calling MasSearchJobsPost"); - - - var path = "/mas/searchJobs"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(parameter); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSearchJobsPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSearchJobsPost: " + response.ErrorMessage, response.ErrorMessage); - - return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers); - } - - /// - /// Munkafolyamat motor leállítása. - /// - /// - public void MasShutdownGet () - { - - - var path = "/mas/shutdown"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasShutdownGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasShutdownGet: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Munkafolyamat motor elindítása. - /// - /// - public void MasStartupGet () - { - - - var path = "/mas/startup"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasStartupGet: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasStartupGet: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - /// - /// Munkafolyamat azonosító alapján egy új felfüggesztési kérelmet helyez el a motor rendszerüzenet várakozási sorába. - /// - /// - /// - public void MasSuspendJobPost (long? jobId) - { - - // verify the required parameter 'jobId' is set - if (jobId == null) throw new ApiException(400, "Missing required parameter 'jobId' when calling MasSuspendJobPost"); - - - var path = "/mas/suspendJob"; - path = path.Replace("{format}", "json"); - - var queryParams = new Dictionary(); - var headerParams = new Dictionary(); - var formParams = new Dictionary(); - var fileParams = new Dictionary(); - String postBody = null; - - postBody = ApiClient.Serialize(jobId); // http body (model) parameter - - // authentication setting, if any - String[] authSettings = new String[] { "api_key" }; - - // make the HTTP request - IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); - - if (((int)response.StatusCode) >= 400) - throw new ApiException ((int)response.StatusCode, "Error calling MasSuspendJobPost: " + response.Content, response.Content); - else if (((int)response.StatusCode) == 0) - throw new ApiException ((int)response.StatusCode, "Error calling MasSuspendJobPost: " + response.ErrorMessage, response.ErrorMessage); - - return; - } - - } -} diff --git a/client/MediaCubeClient/IO/Swagger/Client/ApiClient.cs b/client/MediaCubeClient/IO/Swagger/Client/ApiClient.cs deleted file mode 100644 index 17c49327..00000000 --- a/client/MediaCubeClient/IO/Swagger/Client/ApiClient.cs +++ /dev/null @@ -1,273 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Text.RegularExpressions; -using System.IO; -using System.Web; -using System.Linq; -using System.Net; -using System.Text; -using Newtonsoft.Json; -using RestSharp; -using RestSharp.Extensions; -using RestSharp.Extensions.MonoHttp; - -namespace IO.Swagger.Client { - /// - /// API client is mainly responible for making the HTTP call to the API backend. - /// - public class ApiClient { - private readonly Dictionary _defaultHeaderMap = new Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// The base path. - public ApiClient(String basePath = "https://virtserver.swaggerhub.com/laszlo.eros/petstoremas/1.0.0") { - BasePath = basePath; - RestClient = new RestClient(BasePath); - } - - /// - /// Gets or sets the base path. - /// - /// The base path - public string BasePath { get; set; } - - /// - /// Gets or sets the RestClient. - /// - /// An instance of the RestClient - public RestClient RestClient { get; set; } - - /// - /// Gets the default header. - /// - public Dictionary DefaultHeader { - get { return _defaultHeaderMap; } - } - - /// - /// Makes the HTTP request (Sync). - /// - /// URL path. - /// HTTP method. - /// Query parameters. - /// HTTP body (POST request). - /// Header parameters. - /// Form parameters. - /// File parameters. - /// Authentication settings. - /// Object - public Object CallApi(String path, RestSharp.Method method, Dictionary queryParams, String postBody, - Dictionary headerParams, Dictionary formParams, - Dictionary fileParams, String[] authSettings) { - - var request = new RestRequest(path, method); - - UpdateParamsForAuth(queryParams, headerParams, authSettings); - - // add default header, if any - foreach (var defaultHeader in _defaultHeaderMap) - request.AddHeader(defaultHeader.Key, defaultHeader.Value); - - // add header parameter, if any - foreach (var param in headerParams) - request.AddHeader(param.Key, param.Value); - - // add query parameter, if any - foreach (var param in queryParams) - request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost); - - // add form parameter, if any - foreach (var param in formParams) - request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost); - - // add file parameter, if any - foreach (var param in fileParams) - request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType); - - if (postBody != null) // http body (model) parameter - request.AddParameter("application/json", postBody, ParameterType.RequestBody); - - return (Object)RestClient.Execute(request); - - } - - /// - /// Add default header. - /// - /// Header field name. - /// Header field value. - /// - public void AddDefaultHeader(string key, string value) { - _defaultHeaderMap.Add(key, value); - } - - /// - /// Escape string (url-encoded). - /// - /// String to be escaped. - /// Escaped string. - public string EscapeString(string str) { - return HttpUtility.UrlEncode(str); - } - - /// - /// Create FileParameter based on Stream. - /// - /// Parameter name. - /// Input stream. - /// FileParameter. - public FileParameter ParameterToFile(string name, Stream stream) { - if (stream is FileStream) - return FileParameter.Create(name, stream.ReadAsBytes(), Path.GetFileName(((FileStream)stream).Name)); - else - return FileParameter.Create(name, stream.ReadAsBytes(), "no_file_name_provided"); - } - - /// - /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. - /// If parameter is a list of string, join the list with ",". - /// Otherwise just return the string. - /// - /// The parameter (header, path, query, form). - /// Formatted string. - public string ParameterToString(object obj) { - if (obj is DateTime) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return ((DateTime)obj).ToString(Configuration.DateTimeFormat); - else if (obj is List) - return String.Join(",", (obj as List).ToArray()); - else - return Convert.ToString(obj); - } - - /// - /// Deserialize the JSON string into a proper object. - /// - /// HTTP body (e.g. string, JSON). - /// Object type. - /// HTTP headers. - /// Object representation of the JSON string. - public object Deserialize(string content, Type type, IList headers = null) { - if (type == typeof(Object)) // return an object - { - return content; - } - - if (type == typeof(Stream)) { - var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath) - ? Path.GetTempPath() - : Configuration.TempFolderPath; - - var fileName = filePath + Guid.NewGuid(); - if (headers != null) { - var regex = new Regex(@"Content-Disposition:.*filename=['""]?([^'""\s]+)['""]?$"); - var match = regex.Match(headers.ToString()); - if (match.Success) - fileName = filePath + match.Value.Replace("\"", "").Replace("'", ""); - } - File.WriteAllText(fileName, content); - return new FileStream(fileName, FileMode.Open); - - } - - if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object - { - return DateTime.Parse(content, null, System.Globalization.DateTimeStyles.RoundtripKind); - } - - if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type - { - return ConvertType(content, type); - } - - // at this point, it must be a model (json) - try { - return JsonConvert.DeserializeObject(content, type); - } - catch (IOException e) { - throw new ApiException(500, e.Message); - } - } - - /// - /// Serialize an object into JSON string. - /// - /// Object. - /// JSON string. - public string Serialize(object obj) { - try { - return obj != null ? JsonConvert.SerializeObject(obj) : null; - } - catch (Exception e) { - throw new ApiException(500, e.Message); - } - } - - /// - /// Get the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - public string GetApiKeyWithPrefix(string apiKeyIdentifier) { - var apiKeyValue = ""; - Configuration.ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); - var apiKeyPrefix = ""; - if (Configuration.ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) - return apiKeyPrefix + " " + apiKeyValue; - else - return apiKeyValue; - } - - /// - /// Update parameters based on authentication. - /// - /// Query parameters. - /// Header parameters. - /// Authentication settings. - public void UpdateParamsForAuth(Dictionary queryParams, Dictionary headerParams, string[] authSettings) { - if (authSettings == null || authSettings.Length == 0) - return; - - foreach (string auth in authSettings) { - // determine which one to use - switch (auth) { - case "api_key": - headerParams["api_key"] = GetApiKeyWithPrefix("api_key"); - - break; - default: - //TODO show warning about security definition not found - break; - } - } - } - - /// - /// Encode string in base64 format. - /// - /// String to be encoded. - /// Encoded string. - public static string Base64Encode(string text) { - var textByte = System.Text.Encoding.UTF8.GetBytes(text); - return System.Convert.ToBase64String(textByte); - } - - /// - /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast - /// - /// Object to be casted - /// Target type - /// Casted object - public static Object ConvertType(Object source, Type dest) { - return Convert.ChangeType(source, dest); - } - - } -} \ No newline at end of file diff --git a/client/MediaCubeClient/IO/Swagger/Client/ApiException.cs b/client/MediaCubeClient/IO/Swagger/Client/ApiException.cs deleted file mode 100644 index dfc5fd9f..00000000 --- a/client/MediaCubeClient/IO/Swagger/Client/ApiException.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; - -namespace IO.Swagger.Client { - /// - /// API Exception - /// - public class ApiException : Exception { - /// - /// Gets or sets the error code (HTTP status code) - /// - /// The error code (HTTP status code). - public int ErrorCode { get; set; } - - /// - /// Gets or sets the error content (body json object) - /// - /// The error content (Http response body). - public Object ErrorContent { get; private set; } - - /// - /// Initializes a new instance of the class. - /// - public ApiException() {} - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - public ApiException(int errorCode, string message) : base(message) { - this.ErrorCode = errorCode; - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - /// Error content. - public ApiException(int errorCode, string message, Object errorContent = null) : base(message) { - this.ErrorCode = errorCode; - this.ErrorContent = errorContent; - } - - } - -} diff --git a/client/MediaCubeClient/IO/Swagger/Client/Configuration.cs b/client/MediaCubeClient/IO/Swagger/Client/Configuration.cs deleted file mode 100644 index d5c58eef..00000000 --- a/client/MediaCubeClient/IO/Swagger/Client/Configuration.cs +++ /dev/null @@ -1,133 +0,0 @@ -using System; -using System.Reflection; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; - -namespace IO.Swagger.Client -{ - /// - /// Represents a set of configuration settings - /// - public class Configuration - { - - /// - /// Version of the package. - /// - /// Version of the package. - public const string Version = "1.0.0"; - - /// - /// Gets or sets the default API client for making HTTP calls. - /// - /// The API client. - public static ApiClient DefaultApiClient = new ApiClient(); - - /// - /// Gets or sets the username (HTTP basic authentication). - /// - /// The username. - public static String Username { get; set; } - - public static string BasePath { get; set; } - - /// - /// Gets or sets the password (HTTP basic authentication). - /// - /// The password. - public static String Password { get; set; } - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - public static Dictionary ApiKey = new Dictionary(); - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - public static Dictionary ApiKeyPrefix = new Dictionary(); - - private static string _tempFolderPath = Path.GetTempPath(); - - /// - /// Gets or sets the temporary folder path to store the files downloaded from the server. - /// - /// Folder path. - public static String TempFolderPath - { - get { return _tempFolderPath; } - - set - { - if (String.IsNullOrEmpty(value)) - { - _tempFolderPath = value; - return; - } - - // create the directory if it does not exist - if (!Directory.Exists(value)) - Directory.CreateDirectory(value); - - // check if the path contains directory separator at the end - if (value[value.Length - 1] == Path.DirectorySeparatorChar) - _tempFolderPath = value; - else - _tempFolderPath = value + Path.DirectorySeparatorChar; - } - } - - private const string ISO8601_DATETIME_FORMAT = "o"; - private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT; - - /// - /// Gets or sets the the date time format used when serializing in the ApiClient - /// By default, it's set to ISO 8601 - "o", for others see: - /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx - /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx - /// No validation is done to ensure that the string you're providing is valid - /// - /// The DateTimeFormat string - public static String DateTimeFormat - { - get - { - return _dateTimeFormat; - } - set - { - if (string.IsNullOrEmpty(value)) - { - // Never allow a blank or null string, go back to the default - _dateTimeFormat = ISO8601_DATETIME_FORMAT; - return; - } - - // Caution, no validation when you choose date time format other than ISO 8601 - // Take a look at the above links - _dateTimeFormat = value; - } - } - - /// - /// Returns a string with essential information for debugging. - /// - public static String ToDebugReport() - { - String report = "C# SDK (IO.Swagger) Debug Report:\n"; - report += " OS: " + Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + Assembly - .GetExecutingAssembly() - .GetReferencedAssemblies() - .Where(x => x.Name == "System.Core").First().Version.ToString() + "\n"; - report += " Version of the API: 1.0.0\n"; - report += " SDK Package Version: 1.0.0\n"; - - return report; - } - } -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/AtomicLong.cs b/client/MediaCubeClient/IO/Swagger/Model/AtomicLong.cs deleted file mode 100644 index 08750568..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/AtomicLong.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class AtomicLong { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class AtomicLong {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/BaseType.cs b/client/MediaCubeClient/IO/Swagger/Model/BaseType.cs deleted file mode 100644 index 0db5deab..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/BaseType.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class BaseType { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class BaseType {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/BreakType.cs b/client/MediaCubeClient/IO/Swagger/Model/BreakType.cs deleted file mode 100644 index de893366..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/BreakType.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class BreakType { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class BreakType {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/CreateJobParameters.cs b/client/MediaCubeClient/IO/Swagger/Model/CreateJobParameters.cs deleted file mode 100644 index afcef319..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/CreateJobParameters.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class CreateJobParameters { - /// - /// Gets or Sets JobTemplate - /// - [DataMember(Name="jobTemplate", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "jobTemplate")] - public string JobTemplate { get; set; } - - /// - /// Gets or Sets JobName - /// - [DataMember(Name="jobName", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "jobName")] - public string JobName { get; set; } - - /// - /// Gets or Sets Parameters - /// - [DataMember(Name="parameters", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "parameters")] - public List Parameters { get; set; } - - /// - /// Gets or Sets JobStart - /// - [DataMember(Name="jobStart", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "jobStart")] - public JobStart JobStart { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class CreateJobParameters {\n"); - sb.Append(" JobTemplate: ").Append(JobTemplate).Append("\n"); - sb.Append(" JobName: ").Append(JobName).Append("\n"); - sb.Append(" Parameters: ").Append(Parameters).Append("\n"); - sb.Append(" JobStart: ").Append(JobStart).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DeclarationType.cs b/client/MediaCubeClient/IO/Swagger/Model/DeclarationType.cs deleted file mode 100644 index 6d9d4ab7..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DeclarationType.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DeclarationType { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DeclarationType {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DeliveryMethod.cs b/client/MediaCubeClient/IO/Swagger/Model/DeliveryMethod.cs deleted file mode 100644 index a7c0ef6a..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DeliveryMethod.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DeliveryMethod { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DeliveryMethod {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/Domain.cs b/client/MediaCubeClient/IO/Swagger/Model/Domain.cs deleted file mode 100644 index 41b07f1d..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/Domain.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class Domain { - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or Sets DomainCategoryId - /// - [DataMember(Name="domainCategoryId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "domainCategoryId")] - public long? DomainCategoryId { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name="value", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "value")] - public long? Value { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Domain {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" DomainCategoryId: ").Append(DomainCategoryId).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DomainCategory.cs b/client/MediaCubeClient/IO/Swagger/Model/DomainCategory.cs deleted file mode 100644 index dfd8faf6..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DomainCategory.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DomainCategory : EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Domains - /// - [DataMember(Name="domains", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "domains")] - public List Domains { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DomainCategory {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Domains: ").Append(Domains).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DomainCategoryResponse.cs b/client/MediaCubeClient/IO/Swagger/Model/DomainCategoryResponse.cs deleted file mode 100644 index 2449669b..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DomainCategoryResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DomainCategoryResponse : SystemResponse { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public Object Data { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or Sets Success - /// - [DataMember(Name="success", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "success")] - public bool? Success { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DomainCategoryResponse {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Success: ").Append(Success).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DomainResponse.cs b/client/MediaCubeClient/IO/Swagger/Model/DomainResponse.cs deleted file mode 100644 index e2c4ed54..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DomainResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DomainResponse : SystemResponse { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public Object Data { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or Sets Success - /// - [DataMember(Name="success", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "success")] - public bool? Success { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DomainResponse {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Success: ").Append(Success).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/Domains.cs b/client/MediaCubeClient/IO/Swagger/Model/Domains.cs deleted file mode 100644 index 97890de1..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/Domains.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class Domains { - /// - /// Gets or Sets Values - /// - [DataMember(Name="values", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "values")] - public List Values { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Domains {\n"); - sb.Append(" Values: ").Append(Values).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/DynamicAttributes.cs b/client/MediaCubeClient/IO/Swagger/Model/DynamicAttributes.cs deleted file mode 100644 index f336387a..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/DynamicAttributes.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class DynamicAttributes : EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name="itemType", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "itemType")] - public ItemType ItemType { get; set; } - - /// - /// Gets or Sets ItemTypeId - /// - [DataMember(Name="itemTypeId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "itemTypeId")] - public long? ItemTypeId { get; set; } - - /// - /// Gets or Sets Loaded - /// - [DataMember(Name="loaded", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "loaded")] - public bool? Loaded { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name="attributes", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "attributes")] - public List Attributes { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class DynamicAttributes {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" ItemTypeId: ").Append(ItemTypeId).Append("\n"); - sb.Append(" Loaded: ").Append(Loaded).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/EntityBase.cs b/client/MediaCubeClient/IO/Swagger/Model/EntityBase.cs deleted file mode 100644 index 8a8df59f..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/EntityBase.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class EntityBase {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/FileType.cs b/client/MediaCubeClient/IO/Swagger/Model/FileType.cs deleted file mode 100644 index 395e60e7..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/FileType.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class FileType : EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets AudioCodec - /// - [DataMember(Name="audioCodec", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "audioCodec")] - public string AudioCodec { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// Gets or Sets Framerate - /// - [DataMember(Name="framerate", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "framerate")] - public float? Framerate { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or Sets VideoCodec - /// - [DataMember(Name="videoCodec", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "videoCodec")] - public string VideoCodec { get; set; } - - /// - /// Gets or Sets VideoTrack - /// - [DataMember(Name="videoTrack", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "videoTrack")] - public int? VideoTrack { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class FileType {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AudioCodec: ").Append(AudioCodec).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Framerate: ").Append(Framerate).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" VideoCodec: ").Append(VideoCodec).Append("\n"); - sb.Append(" VideoTrack: ").Append(VideoTrack).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/FilterLogic.cs b/client/MediaCubeClient/IO/Swagger/Model/FilterLogic.cs deleted file mode 100644 index fa284406..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/FilterLogic.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class FilterLogic { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class FilterLogic {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/FilterValueLogic.cs b/client/MediaCubeClient/IO/Swagger/Model/FilterValueLogic.cs deleted file mode 100644 index 9d51dfb2..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/FilterValueLogic.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class FilterValueLogic { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class FilterValueLogic {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/Folder.cs b/client/MediaCubeClient/IO/Swagger/Model/Folder.cs deleted file mode 100644 index 86241129..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/Folder.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class Folder : EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets ParentId - /// - [DataMember(Name="parentId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "parentId")] - public long? ParentId { get; set; } - - /// - /// Gets or Sets ChildId - /// - [DataMember(Name="childId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "childId")] - public long? ChildId { get; set; } - - /// - /// Gets or Sets Parent - /// - [DataMember(Name="parent", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "parent")] - public Item Parent { get; set; } - - /// - /// Gets or Sets Child - /// - [DataMember(Name="child", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "child")] - public Item Child { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Folder {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ParentId: ").Append(ParentId).Append("\n"); - sb.Append(" ChildId: ").Append(ChildId).Append("\n"); - sb.Append(" Parent: ").Append(Parent).Append("\n"); - sb.Append(" Child: ").Append(Child).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/FolderResponse.cs b/client/MediaCubeClient/IO/Swagger/Model/FolderResponse.cs deleted file mode 100644 index 16b9b1b2..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/FolderResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class FolderResponse : SystemResponse { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public Object Data { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or Sets Success - /// - [DataMember(Name="success", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "success")] - public bool? Success { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class FolderResponse {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Success: ").Append(Success).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/GetFilteredDomainByDisplayParameters.cs b/client/MediaCubeClient/IO/Swagger/Model/GetFilteredDomainByDisplayParameters.cs deleted file mode 100644 index e9464fad..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/GetFilteredDomainByDisplayParameters.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class GetFilteredDomainByDisplayParameters { - /// - /// Gets or Sets FilterId - /// - [DataMember(Name="filterId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "filterId")] - public long? FilterId { get; set; } - - /// - /// Gets or Sets Filter - /// - [DataMember(Name="filter", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "filter")] - public string Filter { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class GetFilteredDomainByDisplayParameters {\n"); - sb.Append(" FilterId: ").Append(FilterId).Append("\n"); - sb.Append(" Filter: ").Append(Filter).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/GetFilteredParameters.cs b/client/MediaCubeClient/IO/Swagger/Model/GetFilteredParameters.cs deleted file mode 100644 index e38ebd97..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/GetFilteredParameters.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class GetFilteredParameters { - /// - /// Gets or Sets Filter - /// - [DataMember(Name="filter", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "filter")] - public string Filter { get; set; } - - /// - /// Gets or Sets IsChunked - /// - [DataMember(Name="isChunked", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "isChunked")] - public bool? IsChunked { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class GetFilteredParameters {\n"); - sb.Append(" Filter: ").Append(Filter).Append("\n"); - sb.Append(" IsChunked: ").Append(IsChunked).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/GuiType.cs b/client/MediaCubeClient/IO/Swagger/Model/GuiType.cs deleted file mode 100644 index 8ff81564..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/GuiType.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class GuiType { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class GuiType {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/Item.cs b/client/MediaCubeClient/IO/Swagger/Model/Item.cs deleted file mode 100644 index 4ead22b7..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/Item.cs +++ /dev/null @@ -1,140 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class Item : DynamicAttributes { - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name = "itemType", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "itemType")] - public ItemType ItemType { get; set; } - - /// - /// Gets or Sets ItemTypeId - /// - [DataMember(Name = "itemTypeId", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "itemTypeId")] - public long? ItemTypeId { get; set; } - - /// - /// Gets or Sets Loaded - /// - [DataMember(Name = "loaded", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "loaded")] - public bool? Loaded { get; set; } - - /// - /// Gets or Sets Attributes - /// - [DataMember(Name = "attributes", EmitDefaultValue = false)] - [JsonIgnore] - public List Attributes { get; set; } - - /// - /// Gets or Sets Created - /// - [DataMember(Name = "created", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "created")] - public DateTime? Created { get; set; } - - /// - /// Gets or Sets Modified - /// - [DataMember(Name = "modified", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "modified")] - public DateTime? Modified { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name = "description", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// Gets or Sets HouseId - /// - [DataMember(Name = "houseId", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "houseId")] - public string HouseId { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name = "title", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "title")] - public string Title { get; set; } - - /// - /// Gets or Sets IsFolder - /// - [DataMember(Name = "isFolder", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "isFolder")] - public string IsFolder { get; set; } - - /// - /// Gets or Sets FolderId - /// - [DataMember(Name = "folderId", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "folderId")] - public long? FolderId { get; set; } - - /// - /// Gets or Sets Medias - /// - [DataMember(Name = "medias", EmitDefaultValue = false)] - [JsonProperty(PropertyName = "medias")] - public List Medias { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Item {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" ItemTypeId: ").Append(ItemTypeId).Append("\n"); - sb.Append(" Loaded: ").Append(Loaded).Append("\n"); - sb.Append(" Attributes: ").Append(Attributes).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Modified: ").Append(Modified).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" HouseId: ").Append(HouseId).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" IsFolder: ").Append(IsFolder).Append("\n"); - sb.Append(" FolderId: ").Append(FolderId).Append("\n"); - sb.Append(" Medias: ").Append(Medias).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - } -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/ItemResponse.cs b/client/MediaCubeClient/IO/Swagger/Model/ItemResponse.cs deleted file mode 100644 index e5cdb294..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/ItemResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class ItemResponse : SystemResponse { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public Object Data { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or Sets Success - /// - [DataMember(Name="success", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "success")] - public bool? Success { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class ItemResponse {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Success: ").Append(Success).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/ItemType.cs b/client/MediaCubeClient/IO/Swagger/Model/ItemType.cs deleted file mode 100644 index 59039eb4..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/ItemType.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class ItemType : EntityBase { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or Sets Metadatas - /// - [DataMember(Name="metadatas", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "metadatas")] - public List Metadatas { get; set; } - - /// - /// Gets or Sets TablePrefix - /// - [DataMember(Name="tablePrefix", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "tablePrefix")] - public string TablePrefix { get; set; } - - /// - /// Gets or Sets IsStatic - /// - [DataMember(Name="isStatic", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "isStatic")] - public bool? IsStatic { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class ItemType {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Metadatas: ").Append(Metadatas).Append("\n"); - sb.Append(" TablePrefix: ").Append(TablePrefix).Append("\n"); - sb.Append(" IsStatic: ").Append(IsStatic).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/ItemTypeResponse.cs b/client/MediaCubeClient/IO/Swagger/Model/ItemTypeResponse.cs deleted file mode 100644 index 6d7073d7..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/ItemTypeResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class ItemTypeResponse : SystemResponse { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public Object Data { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name="message", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or Sets Success - /// - [DataMember(Name="success", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "success")] - public bool? Success { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class ItemTypeResponse {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Success: ").Append(Success).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/Job.cs b/client/MediaCubeClient/IO/Swagger/Model/Job.cs deleted file mode 100644 index 13b832fc..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/Job.cs +++ /dev/null @@ -1,132 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class Job : Syncable { - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// Gets or Sets Counter1 - /// - [DataMember(Name="counter1", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "counter1")] - public AtomicLong Counter1 { get; set; } - - /// - /// Gets or Sets Priority - /// - [DataMember(Name="priority", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "priority")] - public long? Priority { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or Sets Owner - /// - [DataMember(Name="owner", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "owner")] - public string Owner { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name="status", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "status")] - public JobStatus Status { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name="description", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// Gets or Sets Template - /// - [DataMember(Name="template", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "template")] - public string Template { get; set; } - - /// - /// Gets or Sets Submitted - /// - [DataMember(Name="submitted", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "submitted")] - public DateTime Submitted { get; set; } - - /// - /// Gets or Sets Finished - /// - [DataMember(Name="finished", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "finished")] - public DateTime Finished { get; set; } - - /// - /// Gets or Sets Progress - /// - [DataMember(Name="progress", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "progress")] - public int? Progress { get; set; } - - /// - /// Gets or Sets ScheduledTime - /// - [DataMember(Name="scheduledTime", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "scheduledTime")] - public DateTime ScheduledTime { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class Job {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Counter1: ").Append(Counter1).Append("\n"); - sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Owner: ").Append(Owner).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Template: ").Append(Template).Append("\n"); - sb.Append(" Submitted: ").Append(Submitted).Append("\n"); - sb.Append(" Finished: ").Append(Finished).Append("\n"); - sb.Append(" Progress: ").Append(Progress).Append("\n"); - sb.Append(" ScheduledTime: ").Append(ScheduledTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public new string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/JobMessage.cs b/client/MediaCubeClient/IO/Swagger/Model/JobMessage.cs deleted file mode 100644 index 777e1e11..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/JobMessage.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class JobMessage { - /// - /// Gets or Sets JobId - /// - [DataMember(Name="jobId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "jobId")] - public long? JobId { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class JobMessage {\n"); - sb.Append(" JobId: ").Append(JobId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/JobStart.cs b/client/MediaCubeClient/IO/Swagger/Model/JobStart.cs deleted file mode 100644 index 26fb905b..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/JobStart.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class JobStart { - /// - /// Gets or Sets Time - /// - [DataMember(Name="time", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "time")] - public DateTime Time { get; set; } - - /// - /// Gets or Sets JobStartType - /// - [DataMember(Name="jobStartType", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "jobStartType")] - public JobStartType JobStartType { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class JobStart {\n"); - sb.Append(" Time: ").Append(Time).Append("\n"); - sb.Append(" JobStartType: ").Append(JobStartType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/JobStartType.cs b/client/MediaCubeClient/IO/Swagger/Model/JobStartType.cs deleted file mode 100644 index d5c2f6da..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/JobStartType.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class JobStartType { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class JobStartType {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/JobStatus.cs b/client/MediaCubeClient/IO/Swagger/Model/JobStatus.cs deleted file mode 100644 index 02ca653a..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/JobStatus.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class JobStatus { - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class JobStatus {\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} -} diff --git a/client/MediaCubeClient/IO/Swagger/Model/JobTemplatesInfo.cs b/client/MediaCubeClient/IO/Swagger/Model/JobTemplatesInfo.cs deleted file mode 100644 index 3d47f6e8..00000000 --- a/client/MediaCubeClient/IO/Swagger/Model/JobTemplatesInfo.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class JobTemplatesInfo { - /// - /// Gets or Sets Templates - /// - [DataMember(Name="templates", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "templates")] - public List