2018-08-28 17:32:59 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
2018-10-25 09:14:39 -04:00
|
|
|
|
using System.Threading.Tasks;
|
2018-08-28 17:32:59 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// represents the abtraction of game log reading
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IGameLogReader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// get new events that have occured since the last poll
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="server"></param>
|
|
|
|
|
/// <param name="fileSizeDiff"></param>
|
|
|
|
|
/// <param name="startPosition"></param>
|
|
|
|
|
/// <returns></returns>
|
2018-10-25 09:14:39 -04:00
|
|
|
|
Task<ICollection<GameEvent>> ReadEventsFromLog(Server server, long fileSizeDiff, long startPosition);
|
2018-08-28 17:32:59 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// how long the log file is
|
|
|
|
|
/// </summary>
|
|
|
|
|
long Length { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// how often to poll the log file
|
|
|
|
|
/// </summary>
|
|
|
|
|
int UpdateInterval { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|