You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
leap-hit-server/code/server/ApiLeapHit/Mapper/MessageMapper.cs

22 lines
561 B

using DataBase.Entity;
using DTO;
namespace ApiLeapHit.Mapper
{
public static class MessageMapper
{
public static DTOMessage ToDto(this Message message, Player player, Chat chat)
{
DTOMessage dtoMessage = new DTOMessage()
{
messageId = message.messageId,
message = message.message,
timestamp = message.timestamp,
PlayerId = player.ToDto(),
//ChatId = chat.ToDto()
};
return dtoMessage;
}
}
}