tgstation-server 6.16.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IChatManager.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Threading;
4using System.Threading.Tasks;
5
8
10{
15 {
21
28 ValueTask ChangeSettings(Models.ChatBot newSettings, CancellationToken cancellationToken);
29
36 Task DeleteConnection(long connectionId, CancellationToken cancellationToken);
37
45 ValueTask ChangeChannels(long connectionId, IEnumerable<Models.ChatChannel> newChannels, CancellationToken cancellationToken);
46
52 void QueueMessage(MessageContent message, IEnumerable<ulong> channelIds);
53
58 void QueueWatchdogMessage(string message);
59
71 Func<string?, string, Action<bool>> QueueDeploymentMessage(
72 Models.RevisionInformation revisionInformation,
73 Models.RevisionInformation? previousRevisionInformation,
74 Api.Models.EngineVersion engineVersion,
75 DateTimeOffset? estimatedCompletionTime,
76 string? gitHubOwner,
77 string? gitHubRepo,
78 bool localCommitPushed);
79
85
91 ValueTask UpdateTrackingContexts(CancellationToken cancellationToken);
92 }
93}
Represents a message to send to a chat provider.
For managing connected chat services.
void QueueWatchdogMessage(string message)
Queue a chat message to configured watchdog channels.
Task DeleteConnection(long connectionId, CancellationToken cancellationToken)
Disconnects and deletes a given connection.
void RegisterCommandHandler(ICustomCommandHandler customCommandHandler)
Registers a customCommandHandler to use.
ValueTask ChangeChannels(long connectionId, IEnumerable< Models.ChatChannel > newChannels, CancellationToken cancellationToken)
Change chat channels.
IChatTrackingContext CreateTrackingContext()
Start tracking Commands.CustomCommands and ChannelRepresentations.
ValueTask UpdateTrackingContexts(CancellationToken cancellationToken)
Force an update with the active channels on all active IChatTrackingContexts.
ValueTask ChangeSettings(Models.ChatBot newSettings, CancellationToken cancellationToken)
Change chat settings. If the Api.Models.EntityId.Id is not currently in use, a new connection will be...
Func< string?, string, Action< bool > > QueueDeploymentMessage(Models.RevisionInformation revisionInformation, Models.RevisionInformation? previousRevisionInformation, Api.Models.EngineVersion engineVersion, DateTimeOffset? estimatedCompletionTime, string? gitHubOwner, string? gitHubRepo, bool localCommitPushed)
Send the message for a deployment to configured deployment channels.
void QueueMessage(MessageContent message, IEnumerable< ulong > channelIds)
Queue a chat message to a given set of channelIds .
Represents a tracking of dynamic chat json files.
Handles Commands.ICommands that map to those defined in a IChatTrackingContext.
Represents a component meant to be started and stopped by its parent component.