2020-08-20 11:38:11 -04:00
|
|
|
|
using System.Linq;
|
2020-08-17 22:21:11 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Dtos.Meta.Responses
|
|
|
|
|
{
|
|
|
|
|
public class MessageResponse : BaseMetaResponse
|
|
|
|
|
{
|
|
|
|
|
public long ServerId { get; set; }
|
|
|
|
|
public string Message { get; set; }
|
2020-08-20 11:38:11 -04:00
|
|
|
|
public bool IsHidden { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// name of the client
|
2020-08-20 11:38:11 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string ClientName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// hostname of the server
|
2020-08-20 11:38:11 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string ServerName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// specifies the game the chat occured on
|
2020-08-20 11:38:11 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public Server.Game GameName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// indicates if the chat message is a quick message phrase
|
2020-08-20 11:38:11 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsQuickMessage { get; set; }
|
2022-01-26 11:32:16 -05:00
|
|
|
|
|
2020-11-18 10:08:24 -05:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// indicates if the message was sent ingame
|
2020-11-18 10:08:24 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public bool SentIngame { get; set; }
|
2020-08-20 11:38:11 -04:00
|
|
|
|
|
|
|
|
|
public string HiddenMessage => string.Concat(Enumerable.Repeat('●', Message.Length));
|
2020-08-17 22:21:11 -04:00
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|