37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.Net.Standard.Base.App
|
|
{
|
|
//=======================================================================
|
|
public class SacsSessionContext
|
|
{
|
|
//-------------------------------------------------------------------
|
|
/// <summary>Hidden construction for deserialisation.</summary>
|
|
protected SacsSessionContext()
|
|
{
|
|
}
|
|
// Protected construction - use derived object.
|
|
protected SacsSessionContext(ushort sessionIdx)
|
|
{
|
|
Index = sessionIdx;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public ushort Index { get; protected set; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Comparison.
|
|
public bool Equals(SacsSessionContext sessionContext)
|
|
{
|
|
if (sessionContext.Index != Index) return false;
|
|
return true;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|