Files
UnrealEngine/Engine/Source/ThirdParty/Perforce/P4Api.Net/p4api.net/ProtectionEntry.cs
2025-05-18 13:04:45 +08:00

46 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Perforce.P4
{
/// <summary>
/// The protection mode or rights associated with this entry.
/// </summary>
public enum ProtectionMode
{
List, Read, Open, Write, Admin, Owner, Super, Review, ReadRights,
BranchRights, OpenRights, WriteRights, None
}
/// <summary>
/// The type of protection (user or group).
/// </summary>
public enum EntryType
{ User, Group }
/// <summary>
/// Describes a protection entry (line) in a Perforce protection table.
/// </summary>
public class ProtectionEntry
{
public ProtectionEntry(ProtectionMode mode, EntryType type, string name, string host,
string path, bool unmap)
{
Mode = mode;
Type = type;
Name = name;
Host = host;
Path = path;
Unmap = unmap;
}
public ProtectionMode Mode { get; set; }
public EntryType Type { get; set; }
public string Name { get; set; }
public string Host { get; set; }
public string Path { get; set; }
public bool Unmap { get; set; }
}
}