4 changed files
Client/HomagGroup.DigitalFactory.ApiGateway.Client | ||
Interfaces | ||
IMaterialsService.cs | ||
Services | ||
MaterialsService.cs | ||
StorageImportFilter.cs + | ||
HISTORY.md | ||
IMaterialsService.cs
/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Interfaces/IMaterialsService.cs-2+5/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Interfaces/IMaterialsService.cs
Add comment 1 Minus using System.Collections.Generic;
Add comment 2 1 using System.Threading.Tasks;
Add comment 3 2
Add comment 4 3 namespace HomagGroup.DigitalFactory.ApiGateway.Client.Interfaces
Add comment 23 22 /// <summary>
Add comment 24 23 /// Import material storage data
Add comment 25 24 /// </summary>
Add comment 26 Minus /// <returns></returns>
Add comment 27 25 Task<ImportResult> ImportInventory(ImportInventoryRequest importInventoryRequest);
Add comment 26 Plus
Add comment 27 Plus /// <summary>
Add comment 28 Plus /// Delete boardTypes by code
Add comment 29 Plus /// </summary>
Add comment 30 Plus Task DeleteBoardTypesByCode(StorageImportFilter storageImportFilter);
Add comment 28 31 }
Add comment 29 32 }
Add comment 30 33
MaterialsService.cs
/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Services/MaterialsService.cs+18/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Services/MaterialsService.cs
Add comment 69 return JsonConvert.DeserializeObject<ImportResult>(content, SerializerSettings.Default);
Add comment 70 }
Add comment 71
Add comment 72 Plus /// <inheritdoc />
Add comment 73 Plus public async Task DeleteBoardTypesByCode(StorageImportFilter storageImportFilter)
Add comment 74 Plus {
Add comment 75 Plus if (storageImportFilter == null)
Add comment 76 Plus {
Add comment 77 Plus throw new ArgumentNullException(nameof(storageImportFilter));
Add comment 78 Plus }
Add comment 79 Plus
Add comment 80 Plus var request = new HttpRequestMessage { Method = HttpMethod.Post };
Add comment 81 Plus var uri = $"{Prefix}materials/storage/boardTypes";
Add comment 82 Plus request.RequestUri = new Uri(uri, UriKind.Relative);
Add comment 83 Plus request.Headers.AcceptLanguage.Clear();
Add comment 84 Plus request.Headers.AcceptLanguage.Add(new StringWithQualityHeaderValue(CultureInfo.CurrentUICulture.Name));
Add comment 85 Plus request.Content = new StringContent(JsonConvert.SerializeObject(storageImportFilter, SerializerSettings.Default), System.Text.Encoding.UTF8, "application/json");
Add comment 86 Plus var response = await Client.SendAsync(request).ConfigureAwait(false);
Add comment 87 Plus response.HandleDeprecatedMessages(request, ApiVersion, ThrowExceptionOnDeprecatedCalls, OnDeprecatedAction);
Add comment 88 Plus response.EnsureSuccessStatusCodeWithDetails(request);
Add comment 89 Plus }
Add comment 72 90 }
Add comment 73 91 }
Add comment 74 92
StorageImportFilter.cs
/Client/HomagGroup.DigitalFactory.ApiGateway.Client/StorageImportFilter.cs+18/Client/HomagGroup.DigitalFactory.ApiGateway.Client/StorageImportFilter.cs
Add comment 1 Plus namespace HomagGroup.DigitalFactory.ApiGateway.Client
Add comment 2 Plus {
Add comment 3 Plus /// <summary>
Add comment 4 Plus /// Filter payload for storage requests.
Add comment 5 Plus /// </summary>
Add comment 6 Plus public class StorageImportFilter
Add comment 7 Plus {
Add comment 8 Plus /// <summary>
Add comment 9 Plus /// Name of the storage System.
Add comment 10 Plus /// </summary>
Add comment 11 Plus public string StorageSystemName { get; set; }
Add comment 12 Plus
Add comment 13 Plus /// <summary>
Add comment 14 Plus /// Filter by board type codes.
Add comment 15 Plus /// </summary>
Add comment 16 Plus public string[] BoardTypeCodes { get; set; }
Add comment 17 Plus }
Add comment 18 Plus }
Add comment 72 # 2.0.19
Add comment 73
Add comment 74 - Implementation of GET Boards / Edgebands in MaterialService
Add comment 75 Plus
Add comment 76 Plus # 2.0.20
Add comment 77 Plus
Add comment 78 Plus - Delete BoardTypes by Codes in MaterialService
Add comment 75 79