@@ -47,6 +47,13 @@ public class ActivateModel {
4747 */
4848 public int MaxOverdraft ;
4949
50+ /**
51+ * Allows you to specify a friendy name for the activated device, for example the employee's email.
52+ * Friendly name does not impact the number of active machine codes / seats, but it offers an easy way
53+ * of linking a machine/seat with a user. For added security, you can HMAC hash this value.
54+ */
55+ public String FriendlyName ;
56+
5057 public ActivateModel () {
5158
5259 }
@@ -56,13 +63,29 @@ public ActivateModel(int productId, String key, String machineCode) {
5663 MachineCode = machineCode ;
5764 }
5865
66+ public ActivateModel (int productId , String key , String machineCode , String friendlyName ) {
67+ ProductId = productId ;
68+ Key = key ;
69+ MachineCode = machineCode ;
70+ FriendlyName = friendlyName ;
71+ }
72+
5973 public ActivateModel (int productId , String key , String machineCode , int floatingTimeInterval ) {
6074 ProductId = productId ;
6175 Key = key ;
6276 MachineCode = machineCode ;
6377 FloatingTimeInterval = floatingTimeInterval ;
6478 }
6579
80+ public ActivateModel (int productId , String key , String machineCode , int floatingTimeInterval , String friendlyName ) {
81+ ProductId = productId ;
82+ Key = key ;
83+ MachineCode = machineCode ;
84+ FloatingTimeInterval = floatingTimeInterval ;
85+ FriendlyName = friendlyName ;
86+ }
87+
88+
6689 public ActivateModel (int productId , String key , String machineCode , int floatingTimeInterval , int maxOverdraft ) {
6790 ProductId = productId ;
6891 Key = key ;
@@ -71,6 +94,15 @@ public ActivateModel(int productId, String key, String machineCode, int floating
7194 MaxOverdraft = maxOverdraft ;
7295 }
7396
97+ public ActivateModel (int productId , String key , String machineCode , int floatingTimeInterval , int maxOverdraft , String friendlyName ) {
98+ ProductId = productId ;
99+ Key = key ;
100+ MachineCode = machineCode ;
101+ FloatingTimeInterval = floatingTimeInterval ;
102+ MaxOverdraft = maxOverdraft ;
103+ FriendlyName = friendlyName ;
104+ }
105+
74106 public ActivateModel (int productId , String key , String machineCode , int fieldsToReturn , boolean metadata , int floatingTimeInterval , int maxOverdraft ) {
75107 ProductId = productId ;
76108 Key = key ;
@@ -80,4 +112,15 @@ public ActivateModel(int productId, String key, String machineCode, int fieldsTo
80112 FloatingTimeInterval = floatingTimeInterval ;
81113 MaxOverdraft = maxOverdraft ;
82114 }
115+
116+ public ActivateModel (int productId , String key , String machineCode , int fieldsToReturn , boolean metadata , int floatingTimeInterval , int maxOverdraft , String friendlyName ) {
117+ ProductId = productId ;
118+ Key = key ;
119+ MachineCode = machineCode ;
120+ FieldsToReturn = fieldsToReturn ;
121+ Metadata = metadata ;
122+ FloatingTimeInterval = floatingTimeInterval ;
123+ MaxOverdraft = maxOverdraft ;
124+ FriendlyName = friendlyName ;
125+ }
83126}
0 commit comments