Chat client

This commit is contained in:
Cyberboss
2018-04-04 16:58:32 -04:00
parent 7245881453
commit 5c7ff60829
2 changed files with 29 additions and 2 deletions
@@ -1,5 +1,4 @@
using System;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Api.Rights;
@@ -0,0 +1,28 @@
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Api.Rights;
namespace Tgstation.Server.Client.Components
{
/// <summary>
/// For managing server administration
/// </summary>
public interface IChatClient : IRightsClient<ChatRights>
{
/// <summary>
/// Get the <see cref="Chat"/> represented by the <see cref="IChatClient"/>
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation</param>
/// <returns>A <see cref="Task{TResult}"/> resulting in the <see cref="Administration"/> represented by the <see cref="IChatClient"/></returns>
Task<Chat> Read(CancellationToken cancellationToken);
/// <summary>
/// Updates the <see cref="Chat"/> setttings
/// </summary>
/// <param name="chat">The <see cref="Chat"/> to update</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation</param>
/// <returns>A <see cref="Task"/> representing the running operation</returns>
Task Update(Chat chat, CancellationToken cancellationToken);
}
}