-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathChatBubbleComponent.cs
More file actions
55 lines (53 loc) · 1.88 KB
/
Copy pathChatBubbleComponent.cs
File metadata and controls
55 lines (53 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using UnityEngine;
namespace DCL.Chat
{
public struct ChatBubbleComponent
{
public readonly string MessageId;
public string ChatMessage;
public readonly bool IsMention;
public readonly string SenderDisplayName;
public readonly string RecipientValidatedName;
public readonly string RecipientWalletId;
public readonly string SenderWalletId;
public readonly string ChannelId;
public readonly bool IsPrivateMessage;
public readonly bool IsCommunityMessage;
public readonly string CommunityName;
public readonly bool IsOwnMessage;
public bool IsDirty;
public bool IsTranslationUpdate;
public readonly Color RecipientNameColor;
public ChatBubbleComponent(
string messageId,
string chatMessage,
string senderDisplayName,
string senderWalletId,
bool isMention,
bool isPrivateMessage,
string channelId,
bool isOwnMessage,
string recipientValidatedName,
string recipientWalletId,
Color recipientNameColor,
bool isCommunityMessage,
string communityName)
{
MessageId = messageId;
ChatMessage = chatMessage;
SenderDisplayName = senderDisplayName;
SenderWalletId = senderWalletId;
IsMention = isMention;
IsPrivateMessage = isPrivateMessage;
ChannelId = channelId;
IsOwnMessage = isOwnMessage;
RecipientValidatedName = recipientValidatedName;
RecipientWalletId = recipientWalletId;
RecipientNameColor = recipientNameColor;
IsDirty = true;
IsTranslationUpdate = false;
IsCommunityMessage = isCommunityMessage;
CommunityName = communityName;
}
}
}