-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Device model in AWS through AWS thing types (#2050)
* getThingType created in Service * getThingType created in Service * listing thing types (Backend) * fix test problems * Listing Thing Type With pagination (Code + Tests= * Get Thing Type And Deprecate Thing Type (Backend OK) * Deprecate Thing Type Back & Front (Not tested yet) * DONE. Some other tests to DO * some tests added for the coverage * some tests added for the coverage * some new tests added for the coverage
- Loading branch information
1 parent
efb5d5c
commit a027dbc
Showing
31 changed files
with
1,741 additions
and
228 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
21 changes: 21 additions & 0 deletions
21
src/AzureIoTHub.Portal.Application/Mappers/AWS/ThingTypeTagProfile.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,21 @@ | ||
// Copyright (c) CGI France. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace AzureIoTHub.Portal.Application.Mappers.AWS | ||
{ | ||
using AutoMapper; | ||
using AzureIoTHub.Portal.Domain.Entities.AWS; | ||
using AzureIoTHub.Portal.Models.v10.AWS; | ||
|
||
public class ThingTypeTagProfile : Profile | ||
{ | ||
public ThingTypeTagProfile() | ||
{ | ||
_ = CreateMap<ThingTypeTag, ThingTypeTagDto>() | ||
.ForMember(dest => dest.Key, opts => opts.MapFrom(src => src.Key)) | ||
.ForMember(dest => dest.Value, opts => opts.MapFrom(src => src.Value)) | ||
.ReverseMap(); | ||
|
||
} | ||
} | ||
} |
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
17 changes: 15 additions & 2 deletions
17
src/AzureIoTHub.Portal.Client/Components/DeviceModels/DeviceModelSearch.razor
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
Oops, something went wrong.