hide chat for password protected servers for issue #162

This commit is contained in:
RaidMax
2020-08-20 10:38:11 -05:00
parent 4735864113
commit c783a04a52
39 changed files with 1171 additions and 188 deletions

View File

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace SharedLibraryCore.Dtos.Meta.Responses
{
@ -8,5 +6,28 @@ namespace SharedLibraryCore.Dtos.Meta.Responses
{
public long ServerId { get; set; }
public string Message { get; set; }
public bool IsHidden { get; set; }
/// <summary>
/// name of the client
/// </summary>
public string ClientName { get; set; }
/// <summary>
/// hostname of the server
/// </summary>
public string ServerName { get; set; }
/// <summary>
/// specifies the game the chat occured on
/// </summary>
public Server.Game GameName { get; set; }
/// <summary>
/// indicates if the chat message is a quick message phrase
/// </summary>
public bool IsQuickMessage { get; set; }
public string HiddenMessage => string.Concat(Enumerable.Repeat('●', Message.Length));
}
}