public ChatTimeStamp GetAllTime() { ChatTimeStamp chatTimeStamp = new ChatTimeStamp(); chatTimeStamp.timeUser = GetClientTime(ChatType.User); chatTimeStamp.timeChatRoom = GetClientTime(ChatType.Room); chatTimeStamp.timeChatRoomJoined = GetClientTime(ChatType.RoomJoined); chatTimeStamp.timeMessage = GetClientTime(ChatType.Message); return(chatTimeStamp); }
public static ChatPacket StructToChatPacket(ChatTimeStamp time) { byte[] data = BlindNetUtil.StructToByte(time); return(BlindChatUtil.ByteToChatPacket(data, ChatType.Time)); }