|
@@ -18,6 +18,9 @@ namespace MTWorkHR.Application.Models
|
|
|
public string Email { get; set; }
|
|
|
public bool IsOnline { get; set; }
|
|
|
public string? ProfileImage { get; set; }
|
|
|
+ public string? LastMessage { get; set; }
|
|
|
+ public string? LastMessageDate { get; set; }
|
|
|
+ public int? UnseenCount { get; set; }
|
|
|
public ChatUserDto(string someId, string someName, string someConnId)
|
|
|
{
|
|
|
UserId = someId;
|
|
@@ -25,14 +28,17 @@ namespace MTWorkHR.Application.Models
|
|
|
ConnectionId = someConnId;
|
|
|
}
|
|
|
|
|
|
- public ChatUserDto(string someId, string userName, string ConnId, string email, bool isOnline, string profileImg)
|
|
|
+ public ChatUserDto(string userId, string userName, string ConnId, string email, bool isOnline, string profileImg, int? unseenCount,string lastMessage, string lastMessageDate)
|
|
|
{
|
|
|
- UserId = someId;
|
|
|
+ UserId = userId;
|
|
|
UserName = userName;
|
|
|
ConnectionId = ConnId;
|
|
|
Email = email;
|
|
|
IsOnline = isOnline;
|
|
|
ProfileImage = profileImg;
|
|
|
+ UnseenCount = unseenCount;
|
|
|
+ LastMessageDate = lastMessageDate;
|
|
|
+ LastMessage = lastMessage;
|
|
|
}
|
|
|
}
|
|
|
}
|