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