Statistics
| Revision:

root / hci / trunk / eneraptor-web-app / grails-app / domain / com / eneraptor / hci / DeviceInfo.groovy @ 66

History | View | Annotate | Download (474 Bytes)

1 3 alexbesir
package com.eneraptor.hci
2
3
class DeviceInfo {
4
5
        String deviceId
6
        String friendlyName
7
        String description
8
        String iconPath
9 6 alexbesir
        boolean inputDevice
10
        boolean outputDevice
11
12 66 alexbesir
        static belongsTo = [hwSet: HardwareSet]
13 3 alexbesir
14
    static constraints = {
15 66 alexbesir
                deviceId(blank: false, unique: 'hwSet')
16 3 alexbesir
                friendlyName(blank: false, maxSize: 64)
17
                description(nullable: true, maxSize: 128)
18 6 alexbesir
                iconPath(nullable: true)
19
                inputDevice(blank: false)
20
                outputDevice(blank: false)
21 3 alexbesir
    }
22
}