forked from Acumatica/AcumaticaRESTAPIClientForCSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mapping for device hub 19.200.001
- Loading branch information
dnaumov
committed
Jan 31, 2020
1 parent
3abd4b1
commit becf384
Showing
34 changed files
with
1,311 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
Acumatica.DeviceHub_19.200.001/Acumatica.DeviceHub_19.200.001.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
26
Acumatica.DeviceHub_19.200.001/Model/Actions/UpdatePrinterList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
26
Acumatica.DeviceHub_19.200.001/Model/Actions/UpdateScannerList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.