Simple |
Initializes a new instance of the SimpleStatusV1 class.
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public SimpleStatusV1( 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 SimplePerson
C#
using System; using Gamanet.C4.SimpleInterfaces; public class CreateSimpleStatus { static void Main() { // create new instance of simple status var status = new SimpleStatus( Guid.NewGuid(), // new Id "", Guid.Empty, Guid.Empty); // all the remaining data for status status.EntityId = Guid.Parse("C2671316-6BA4-41D6-9571-CCC535869FCE"); // Id of device which is associated with statuses status.Data["NewState"] = new new List<Guid> { StatusCategory.Lock }; // new statuses for device } }
See Also