Message |
Initializes a new instance of the MessageV1 class.
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public MessageV1( Guid sourceId, Guid destinationId, SimpleEntity simpleEntity )
Parameters
- sourceId Guid
- The source identifier.
- destinationId Guid
- The message destination identifier.
- simpleEntity SimpleEntity
- The simple entity.
Remarks
Supported from
Example
The following example illustrates how to create a Message with log
C#
using Gamanet.C4.SDK.Enums.Devices; using Gamanet.C4.SimpleInterfaces; using Gamanet.C4.SDK.Enums.Logs; using System; public class CreateMessageWithLog { static void Main() { // create object simple entity for message var log = new SimpleLog(Guid.NewGuid(), "", Guid.Empty, LogCategory.AccessLevelCreated); // the message contains data as object, which can be: SimpleLog, SimpleStatus, SimpleCommand // create new instance of message var message = new Message( Guid.Empty, Guid.Empty, log); // object which can be: SimpleLog, SimpleStatus, SimpleCommand } }
See Also