55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using Sarand.Net.Standard.Base.Core;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using Saxonite.Net.Standard.Base.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Saxonite.Net.Standard.Base.Consoles
|
|
{
|
|
//=======================================================================
|
|
public abstract class SaxDataCacheConsole : SacsDisposable
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Protected construction.
|
|
protected SaxDataCacheConsole(SaxSessionContext sessionContext)
|
|
{
|
|
SessionContext = sessionContext;
|
|
}
|
|
protected override void Dispose(bool disposing) { }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
protected SaxSessionContext SessionContext { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Utilities.
|
|
public abstract void PopulateCachedDataToInternals(SaxInternals internals);
|
|
|
|
//-------------------------------------------------------------------
|
|
// Regions.
|
|
/// <summary>
|
|
/// Get the cached list of regions.
|
|
/// </summary>
|
|
public abstract List<SaxRegion.Data> GetAllRegions();
|
|
/// <summary>
|
|
/// Get the cached list of active regions.
|
|
/// </summary>
|
|
public abstract List<SaxRegion.Data> GetActiveRegions();
|
|
|
|
//-------------------------------------------------------------------
|
|
// Sports.
|
|
/// <summary>
|
|
/// Get the cached list of sports.
|
|
/// </summary>
|
|
public abstract List<SaxSport.Data> GetAllSports();
|
|
/// <summary>
|
|
/// Get the cached list of active sports.
|
|
/// </summary>
|
|
public abstract List<SaxSport.Data> GetActiveSports();
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|