コード例 #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);
        }
コード例 #2
0
 public static ChatPacket StructToChatPacket(ChatTimeStamp time)
 {
     byte[] data = BlindNetUtil.StructToByte(time);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Time));
 }