Simple |
Initializes a new instance of the SimpleCommandV1 class.
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public SimpleCommandV1( Guid id, string name, Guid parentId, Guid categoryId )
Parameters
- id Guid
- The identifier.
- name String
- The name.
- parentId Guid
- The parent identifier.
- categoryId Guid
- The category identifier.
Remarks
Supported from
Example
The following example illustrates how to create SimpleCommand object
C#
using System; using Gamanet.C4.SimpleInterfaces; public class CreateSimpleCommand { static void Main() { // create new instance of simple command var command = new SimpleCommand( Guid.NewGuid(), // new Id "Device On", // command name Guid.Empty, CommandCategory.DeviceOn); // category Id specifies the command type // required data for command command.Data["DeviceId"] = Guid.Parse("3D0BE21A-201E-49E9-ACBF-6A1840E51276"); // id of device for which the command is intended } }
See Also