2018-04-08 14:48:40 -04:00
|
|
|
|
using SharedLibraryCore.Dtos;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IEventApi
|
|
|
|
|
{
|
2018-06-16 22:11:25 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Processes event from server as event info
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender">Object state from Delegate method call</param>
|
|
|
|
|
/// <param name="E">Event to process</param>
|
2018-04-13 02:32:30 -04:00
|
|
|
|
void OnServerEvent(object sender, GameEvent E);
|
2018-06-16 22:11:25 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get list of recent events
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="shouldConsume">specify wether the request should clear all events after retrieving</param>
|
|
|
|
|
/// <returns>List of recent event</returns>
|
|
|
|
|
IEnumerable<EventInfo> GetEvents(bool shouldConsume);
|
2018-04-08 14:48:40 -04:00
|
|
|
|
}
|
|
|
|
|
}
|