Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static ChatPacket StructToChatPacket(ChatTimeStamp time)
 {
     byte[] data = BlindNetUtil.StructToByte(time);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Time));
 }