-
Notifications
You must be signed in to change notification settings - Fork 0
/
GXDLMSExtendedRegister.cs
38 lines (35 loc) · 1.32 KB
/
GXDLMSExtendedRegister.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Gurux.Device.Editor;
using Gurux.DLMS.AddIn.ManufacturerSettings;
using System.Runtime.Serialization;
using GXDLMS.ManufacturerSettings;
using Gurux.DLMS.ManufacturerSettings;
namespace Gurux.DLMS.AddIn
{
[DataContract()]
public class GXDLMSExtendedRegister : GXDLMSCategory
{
[ValueAccess(ValueAccessType.Show, ValueAccessType.None)]
public Gurux.DLMS.ObjectType ObjectType
{
get
{
return Gurux.DLMS.ObjectType.ExtendedRegister;
}
}
public override void Initialize(object info)
{
GXObisCode code = info as GXObisCode;
this.Properties.Add(new GXDLMSProperty(this.ObjectType, this.LogicalName, this.ShortName, "Logical Name", 1));
this.Properties.Add(new GXDLMSProperty(this.ObjectType, this.LogicalName, this.ShortName, "Value", 2));
this.Properties.Add(new GXDLMSProperty(this.ObjectType, this.LogicalName, this.ShortName, "Status", 4));
GXDLMSProperty prop = new GXDLMSProperty(this.ObjectType, this.LogicalName, this.ShortName, "Capture Time", 5);
prop.ValueType = typeof(DateTime);
this.Properties.Add(prop);
}
}
}