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