2022-09-08 16:03:38 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Data.Models.Client;
|
2022-10-12 22:06:18 -04:00
|
|
|
|
using InteractionCallback = System.Func<int, int?, Data.Models.Reference.Game?, System.Collections.Generic.IDictionary<string,string>, System.Threading.CancellationToken, System.Threading.Tasks.Task<string>>;
|
2022-09-08 16:03:38 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces;
|
|
|
|
|
|
|
|
|
|
public interface IInteractionData
|
|
|
|
|
{
|
|
|
|
|
int? EntityId { get; }
|
2022-10-17 10:17:43 -04:00
|
|
|
|
string InteractionId { get; }
|
|
|
|
|
InteractionType InteractionType { get; }
|
2022-09-08 16:03:38 -04:00
|
|
|
|
bool Enabled { get; }
|
|
|
|
|
string Name { get; }
|
|
|
|
|
string Description { get; }
|
|
|
|
|
string DisplayMeta { get; }
|
|
|
|
|
string ActionPath { get; }
|
|
|
|
|
Dictionary<string, string> ActionMeta { get; }
|
|
|
|
|
string ActionUri { get; }
|
|
|
|
|
EFClient.Permission? MinimumPermission { get; }
|
|
|
|
|
string PermissionEntity { get; }
|
|
|
|
|
string PermissionAccess { get; }
|
|
|
|
|
string Source { get; }
|
|
|
|
|
InteractionCallback Action { get; }
|
|
|
|
|
Delegate ScriptAction { get; }
|
|
|
|
|
}
|
2022-10-17 10:17:43 -04:00
|
|
|
|
|
|
|
|
|
public enum InteractionType
|
|
|
|
|
{
|
|
|
|
|
ActionButton,
|
|
|
|
|
RawContent,
|
|
|
|
|
TemplateContent
|
|
|
|
|
}
|