21 lines
664 B
C#
21 lines
664 B
C#
using System.Threading.Tasks;
|
|
using EventPartnerGatherRequests;
|
|
|
|
namespace EventPartnerGather
|
|
{
|
|
/// <summary>
|
|
/// AutoMatchController 依赖的最小管理器能力。
|
|
/// </summary>
|
|
public interface IAutoMatchManagerContext
|
|
{
|
|
int EventId { get; }
|
|
bool ShouldCloseAutoMatch { get; }
|
|
bool IsAutoMatchEnabled { get; }
|
|
void SetAutoMatchEnabled(bool enabled);
|
|
Task<AutoMatchStatusResponse> FetchAndProcessAutoMatchStatus(bool force = true);
|
|
Task<AutoMatchToggleResponse> ControlAutoMatch(bool enable);
|
|
void NotifyAutoMatchStopped();
|
|
void NotifyAutoMatchFailed(string reason);
|
|
}
|
|
}
|