Globals / "src/controller/model/group" / Group
-
Entity
↳ Group
- addMember
- command
- hasMember
- read
- removeFromDatabase
- removeFromNetwork
- removeMember
- save
- write
- all
- byGroupID
- create
- injectAdapter
- injectDatabase
• Readonly
groupID: number
Defined in src/controller/model/group.ts:25
• Readonly
meta: KeyValue
Defined in src/controller/model/group.ts:29
• get members(): Endpoint[]
Defined in src/controller/model/group.ts:27
Returns: Endpoint[]
▸ addMember(endpoint
: Endpoint): void
Defined in src/controller/model/group.ts:126
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: void
▸ command(clusterKey
: number | string, commandKey
: number | string, payload
: KeyValue, options?
: Options): Promise<void>
Defined in src/controller/model/group.ts:206
Name | Type |
---|---|
clusterKey |
number | string |
commandKey |
number | string |
payload |
KeyValue |
options? |
Options |
Returns: Promise<void>
▸ hasMember(endpoint
: Endpoint): boolean
Defined in src/controller/model/group.ts:136
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: boolean
▸ read(clusterKey
: number | string, attributes
: string[] | number[], options?
: Options): Promise<void>
Defined in src/controller/model/group.ts:178
Name | Type |
---|---|
clusterKey |
number | string |
attributes |
string[] | number[] |
options? |
Options |
Returns: Promise<void>
▸ removeFromDatabase(): void
Defined in src/controller/model/group.ts:112
Returns: void
▸ removeFromNetwork(): Promise<void>
Defined in src/controller/model/group.ts:104
Returns: Promise<void>
▸ removeMember(endpoint
: Endpoint): void
Defined in src/controller/model/group.ts:131
Name | Type |
---|---|
endpoint |
Endpoint |
Returns: void
▸ save(): void
Defined in src/controller/model/group.ts:122
Returns: void
▸ write(clusterKey
: number | string, attributes
: KeyValue, options?
: Options): Promise<void>
Defined in src/controller/model/group.ts:144
Name | Type |
---|---|
clusterKey |
number | string |
attributes |
KeyValue |
options? |
Options |
Returns: Promise<void>
▸ Static
all(): Group[]
Defined in src/controller/model/group.ts:84
Returns: Group[]
▸ Static
byGroupID(groupID
: number): Group
Defined in src/controller/model/group.ts:79
Name | Type |
---|---|
groupID |
number |
Returns: Group
▸ Static
create(groupID
: number): Group
Defined in src/controller/model/group.ts:89
Name | Type |
---|---|
groupID |
number |
Returns: Group
▸ Static
injectAdapter(adapter
: Adapter): void
Inherited from Group.injectAdapter
Defined in src/controller/model/entity.ts:12
Name | Type |
---|---|
adapter |
Adapter |
Returns: void
▸ Static
injectDatabase(database
: Database): void
Inherited from Group.injectDatabase
Defined in src/controller/model/entity.ts:8
Name | Type |
---|---|
database |
Database |
Returns: void