Skip to content

Commit

Permalink
Add mapping for device hub 19.200.001
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaumov committed Jan 31, 2020
1 parent 3abd4b1 commit becf384
Show file tree
Hide file tree
Showing 34 changed files with 1,311 additions and 97 deletions.
7 changes: 7 additions & 0 deletions Acumatica REST API Client.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Endpoints", "Endpoints", "{
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.DeviceHub_17.200.001", "Acumatica.DeviceHub_17.200.001\Acumatica.DeviceHub_17.200.001.csproj", "{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Acumatica.DeviceHub_19.200.001", "Acumatica.DeviceHub_19.200.001\Acumatica.DeviceHub_19.200.001.csproj", "{638D4F3F-4496-44DC-8BAA-6C0F05516A22}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -47,6 +49,10 @@ Global
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB}.Release|Any CPU.Build.0 = Release|Any CPU
{638D4F3F-4496-44DC-8BAA-6C0F05516A22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{638D4F3F-4496-44DC-8BAA-6C0F05516A22}.Debug|Any CPU.Build.0 = Debug|Any CPU
{638D4F3F-4496-44DC-8BAA-6C0F05516A22}.Release|Any CPU.ActiveCfg = Release|Any CPU
{638D4F3F-4496-44DC-8BAA-6C0F05516A22}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -55,6 +61,7 @@ Global
{5B17772D-1F76-4A4B-A3F7-8C8CFFA93E29} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
{B26A386B-F5DA-4679-ACBA-1541251B696B} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
{4FDDE01D-C802-4E52-9458-B614B1C8EFAB} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
{638D4F3F-4496-44DC-8BAA-6C0F05516A22} = {F0B2BD45-79AE-43AF-B737-3018CD95C6E3}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A3A45447-0EDA-45D2-94CE-C3BFFBFE2717}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RestSharp, Version=106.6.10.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.6.10\lib\net452\RestSharp.dll</HintPath>
<Reference Include="RestSharp, Version=106.0.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.10.1\lib\net452\RestSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Acumatica REST API Console Application/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="RestSharp" version="106.6.10" targetFramework="net472" />
<package id="RestSharp" version="106.10.1" targetFramework="net472" />
</packages>
4 changes: 2 additions & 2 deletions Acumatica.Auth/Acumatica.Auth.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ OpenAPI spec version: 1
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="RestSharp, Version=106.6.10.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.6.10\lib\net452\RestSharp.dll</HintPath>
<Reference Include="RestSharp, Version=106.0.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.10.1\lib\net452\RestSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Acumatica.Auth/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<packages>
<package id="JsonSubTypes" version="1.6.0" targetFramework="net472" developmentDependency="true" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" developmentDependency="true" />
<package id="RestSharp" version="106.6.10" targetFramework="net472" developmentDependency="true" />
<package id="RestSharp" version="106.10.1" targetFramework="net472" developmentDependency="true" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="JsonSubTypes, Version=1.6.0.0, Culture=neutral, PublicKeyToken=ee75fc290dbc1176, processorArchitecture=MSIL">
<HintPath>..\packages\JsonSubTypes.1.6.0\lib\net47\JsonSubTypes.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
Expand Down
1 change: 1 addition & 0 deletions Acumatica.DeviceHub_17.200.001/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="JsonSubTypes" version="1.6.0" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
<package id="System.ComponentModel.Annotations" version="4.7.0" targetFramework="net472" />
<package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="net472" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{638D4F3F-4496-44DC-8BAA-6C0F05516A22}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Acumatica.DeviceHub_19._200._001</RootNamespace>
<AssemblyName>Acumatica.DeviceHub_19.200.001</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="JsonSubTypes, Version=1.6.0.0, Culture=neutral, PublicKeyToken=ee75fc290dbc1176, processorArchitecture=MSIL">
<HintPath>..\packages\JsonSubTypes.1.6.0\lib\net47\JsonSubTypes.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Runtime.Serialization.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.Serialization.Primitives.4.3.0\lib\net46\System.Runtime.Serialization.Primitives.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Api\PrinterApi.cs" />
<Compile Include="Api\PrintJobApi.cs" />
<Compile Include="Api\ScanJobApi.cs" />
<Compile Include="Api\ScannerApi.cs" />
<Compile Include="Model\Printer.cs" />
<Compile Include="Model\PrintJob.cs" />
<Compile Include="Model\ScanJob.cs" />
<Compile Include="Model\Scanner.cs" />
<Compile Include="Model\Actions\UpdatePrinterList.cs" />
<Compile Include="Model\Actions\UpdateScannerList.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Acumatica.RESTClient\Acumatica.RESTClient.csproj">
<Project>{25008D3F-3D78-4BB9-B14B-0A792AE97892}</Project>
<Name>Acumatica.RESTClient</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
20 changes: 20 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Api/PrintJobApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Acumatica.RESTClient.Api;
using Acumatica.RESTClient.Client;
using Acumatica.DeviceHub_19_200_001.Model;

namespace Acumatica.DeviceHub_19_200_001.Api
{
public partial class PrintJobApi : EntityAPI<PrintJob>
{
public PrintJobApi() : base()
{
}
public PrintJobApi(Configuration configuration) : base(configuration)
{
}
}
}
24 changes: 24 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Api/PrinterApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Acumatica.RESTClient.Api;
using Acumatica.RESTClient.Client;
using Acumatica.DeviceHub_19_200_001.Model;

namespace Acumatica.DeviceHub_19_200_001.Api
{
public partial class PrinterApi : EntityAPI<Printer>
{
public PrinterApi() : base()
{
}
public PrinterApi(Configuration configuration) : base(configuration)
{
}
public string InvokeUpdatePrinterListAction(Printer printer)
{
return InvokeAction(new UpdatePrinterList(printer));
}
}
}
20 changes: 20 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Api/ScanJobApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Acumatica.RESTClient.Api;
using Acumatica.RESTClient.Client;
using Acumatica.DeviceHub_19_200_001.Model;

namespace Acumatica.DeviceHub_19_200_001.Api
{
public partial class ScanJobApi : EntityAPI<ScanJob>
{
public ScanJobApi() : base()
{
}
public ScanJobApi(Configuration configuration) : base(configuration)
{
}
}
}
24 changes: 24 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Api/ScannerApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Acumatica.RESTClient.Api;
using Acumatica.RESTClient.Client;
using Acumatica.DeviceHub_19_200_001.Model;

namespace Acumatica.DeviceHub_19_200_001.Api
{
public partial class ScannerApi : EntityAPI<Scanner>
{
public ScannerApi() : base()
{
}
public ScannerApi(Configuration configuration) : base(configuration)
{
}
public string InvokeUpdatePrinterListAction(Scanner scanner)
{
return InvokeAction(new UpdateScannerList(scanner));
}
}
}
26 changes: 26 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

using Acumatica.RESTClient.Model;
using System.Runtime.Serialization;

namespace Acumatica.DeviceHub_19_200_001.Model
{
[DataContract]
public partial class UpdatePrinterList : EntityAction<Printer>
{
public UpdatePrinterList(Printer entity) : base(entity)
{ }

[DataMember(Name = "entity", EmitDefaultValue = false)]
public Printer Entity
{
get
{
return _Entity;
}
set
{
_Entity = value;
}
}
}
}
26 changes: 26 additions & 0 deletions Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

using Acumatica.RESTClient.Model;
using System.Runtime.Serialization;

namespace Acumatica.DeviceHub_19_200_001.Model
{
[DataContract]
public partial class UpdateScannerList : EntityAction<Scanner>
{
public UpdateScannerList(Scanner entity) : base(entity)
{ }

[DataMember(Name = "entity", EmitDefaultValue = false)]
public Scanner Entity
{
get
{
return _Entity;
}
set
{
_Entity = value;
}
}
}
}
Loading

0 comments on commit becf384

Please sign in to comment.