root / hci / trunk / eneraptor-web-app / grails-app / domain / com / eneraptor / hci / DeviceInfo.groovy @ 66
History | View | Annotate | Download (474 Bytes)
1 |
package com.eneraptor.hci
|
---|---|
2 |
|
3 |
class DeviceInfo { |
4 |
|
5 |
String deviceId
|
6 |
String friendlyName
|
7 |
String description
|
8 |
String iconPath
|
9 |
boolean inputDevice
|
10 |
boolean outputDevice
|
11 |
|
12 |
static belongsTo = [hwSet: HardwareSet] |
13 |
|
14 |
static constraints = {
|
15 |
deviceId(blank: false, unique: 'hwSet') |
16 |
friendlyName(blank: false, maxSize: 64) |
17 |
description(nullable: true, maxSize: 128) |
18 |
iconPath(nullable: true) |
19 |
inputDevice(blank: false) |
20 |
outputDevice(blank: false) |
21 |
} |
22 |
} |