Profile |
Initializes a new instance of the ProfileDeviceDataV1 class.
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public ProfileDeviceDataV1( Guid profileDeviceId )
Parameters
- profileDeviceId Guid
- The profile device identifier.
Example
The following example illustrates how to create ProfileDeviceData
C#
using Gamanet.C4.SimpleInterfaces; using System; public class CreateProfileDeviceData() { static void Main() { // add new instance of ProfileDeviceTypeData var profileDeviceData = new ProfileDeviceData(Guid.NewGuid()); // add id of existing device profileDeviceData.DeviceIds.Add(EntityRoot.Device); // add custom data profileDeviceData.Data["Enabled"] = true; profileDeviceData.Data["TimeReset"] = TimeSpan.Parse("12:00:00"); } }
See Also