Skip to content

Commit 4579a07

Browse files
committed
refactor: various property and comment cleanup
1 parent 7c60442 commit 4579a07

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

Kepware.Api/Model/Project/Channel.Properties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static class Channel
4848
/// <summary>
4949
/// Value of the static tag count for the channel.
5050
/// </summary>
51-
public const string StaticTagCount = "servermain.CHANNEL_STATIC_TAG_COUNT";
51+
public const string StaticTagCount = Properties.NonSerialized.ChannelStaticTagCount;
5252

5353
}
5454
}

Kepware.Api/Model/Project/Device.Properties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ public partial class Properties
1111
public static class Device
1212
{
1313
/// <summary>
14-
/// The driver used by this channel.
14+
/// The driver used by this device.
1515
/// </summary>
1616
public const string DeviceDriver = "servermain.MULTIPLE_TYPES_DEVICE_DRIVER";
1717

1818
/// <summary>
19-
/// Value of the static tag count for the channel.
19+
/// Constant value for the key of the static tag count for the device.
2020
/// </summary>
21-
public const string StaticTagCount = "servermain.DEVICE_STATIC_TAG_COUNT";
21+
public const string StaticTagCount = Properties.NonSerialized.DeviceStaticTagCount;
2222

2323
}
2424
}

Kepware.Api/Model/Project/Project.Properties.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public static class ProjectSettings
2020
/// <summary>
2121
/// Count of tags identified in the project.
2222
/// </summary>
23-
// TODO: Does this need to be moved to non-seralized properties?
24-
public const string TagsDefined = "servermain.PROJECT_TAGS_DEFINED";
23+
public const string TagsDefined = Properties.NonSerialized.ProjectTagsDefined;
2524

2625
#endregion
2726

Kepware.Api/Model/Properties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public static class NonSerialized
7171
/// </summary>
7272
public const string TagGrpTotalTagCount = "servermain.TAGGROUP_TOTAL_TAG_COUNT";
7373
/// <summary>
74-
/// The local tag count in a tag group property key.
74+
/// The local tag count in a tag group property key. Used for tag groups within devices.
7575
/// </summary>
7676
public const string TagGrpTagCount = "servermain.TAGGROUP_LOCAL_TAG_COUNT";
7777
/// <summary>
7878
/// The static tag count in a channel property key.
7979
/// </summary>
80-
public const string ChannelTagCount = "servermain.CHANNEL_STATIC_TAG_COUNT";
80+
public const string ChannelStaticTagCount = "servermain.CHANNEL_STATIC_TAG_COUNT";
8181
/// <summary>
8282
/// The autogenerated tag group property key.
8383
/// </summary>
@@ -104,7 +104,7 @@ public static class NonSerialized
104104
ChannelAssignment,
105105
TagGrpTotalTagCount,
106106
TagGrpTagCount,
107-
ChannelTagCount,
107+
ChannelStaticTagCount,
108108
TagGroupAutogenerated,
109109
TagAutogenerated ,
110110
DeviceStaticTagCount,

0 commit comments

Comments
 (0)