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.
 
 
 
 

31 lines
616 B

using System;
using System.Collections.Generic;
[Serializable]
public class ChatNode
{
public string message;
public string sender;
//public string id_sender;
public ChatNode() { }
public ChatNode(string message, string sender)
{
this.message = message;
this.sender = sender;
// this.id_sender = id_sender;
}
public bool Equals(ChatNode other)
{
return other != null && sender == other.sender && message == other.message;//&& id_sender == other.id_sender;
}
}
[System.Serializable]
public class ChatList
{
public ChatNode[] chats;
}