-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ApiPlcProgramBlockType enum (#44)
- Loading branch information
Showing
5 changed files
with
268 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (c) 2023, Siemens AG | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Siemens.Simatic.S7.Webserver.API.Enums | ||
{ | ||
/// <summary> | ||
/// Block type enumeration. | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ApiPlcProgramBlockType | ||
{ | ||
/// <summary> | ||
/// OB block. | ||
/// </summary> | ||
[EnumMember(Value = "ob")] | ||
Ob, | ||
|
||
/// <summary> | ||
/// FB block. | ||
/// </summary> | ||
[EnumMember(Value = "fc")] | ||
Fc, | ||
|
||
/// <summary> | ||
/// FC block. | ||
/// </summary> | ||
[EnumMember(Value = "fb")] | ||
Fb, | ||
|
||
/// <summary> | ||
/// SFB block. | ||
/// </summary> | ||
[EnumMember(Value = "sfc")] | ||
Sfc, | ||
|
||
/// <summary> | ||
/// SFC block. | ||
/// </summary> | ||
[EnumMember(Value = "sfb")] | ||
Sfb, | ||
} | ||
} |
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