37 lines
781 B
C#
37 lines
781 B
C#
using System;
|
|
|
|
namespace sscs.common
|
|
{
|
|
internal class UnixUserIdentifier : UserIdentifier
|
|
{
|
|
private int uid;
|
|
|
|
internal UnixUserIdentifier(int uid)
|
|
{
|
|
this.uid = uid;
|
|
}
|
|
public override bool Equals(Object obj)
|
|
{
|
|
UnixUserIdentifier u = (UnixUserIdentifier)obj;
|
|
if (u.uid == uid)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
public override int GetHashCode()
|
|
{
|
|
return uid.GetHashCode();
|
|
}
|
|
public void PrintIdentifier()
|
|
{
|
|
// Console.WriteLine("UnixUserIdentifier : uid is {0}",uid);
|
|
}
|
|
|
|
public int GetUID()
|
|
{
|
|
return uid;
|
|
}
|
|
|
|
}
|
|
}
|