PermissionV1 Constructor

Initializes a new instance of the PermissionV1 class.

Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public PermissionV1(
	Guid id,
	Guid permissionType,
	Guid personId,
	Guid entityId,
	Guid entityTypeId
)

Parameters

id  Guid
The identifier.
permissionType  Guid
Type of the permission.
personId  Guid
The person identifier.
entityId  Guid
The entity identifier.
entityTypeId  Guid
The entity type identifier.
Example
The following example illustrates how to create Permission
C#
using Gamanet.C4.SDK.Enums.Permissions;
using Gamanet.C4.SimpleInterfaces; 
using System; 

public class CreatePermission
{
    static void Main()
    {
         // create new instance of permission
         var permission = new Permission(Guid.NewGuid(), PermissionType.Read, Guid.Parse("Id of existing person"),
                         Guid.Parse("Id of existing entity"), Guid.Parse("Entity type id"));

         permission.Inherited = true;
         permission.Status = PermissionStatus.Allowed;
         permission.Calendar = Guid.Parse("Id of existing calendar");
    }
}
See Also

Reference

PermissionV1 Class
Gamanet.C4.SimpleInterfaces Namespace