-
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.
Disable the edition of existing tags names #1002
- Loading branch information
1 parent
efb46db
commit 6b86fc2
Showing
2 changed files
with
41 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 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.Client.Models | ||
{ | ||
using Portal.Models.v10; | ||
|
||
public class DeviceTagModel : DeviceTag | ||
{ | ||
public DeviceTagModel() | ||
{ | ||
IsNewTag = true; | ||
} | ||
|
||
public DeviceTagModel(DeviceTag deviceTag) | ||
{ | ||
Name = deviceTag.Name; | ||
Label = deviceTag.Label; | ||
Required = deviceTag.Required; | ||
Searchable = deviceTag.Searchable; | ||
} | ||
|
||
public bool IsNewTag { get; set; } | ||
} | ||
} |
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