Exemplo n.º 1
0
        /// <summary>
        /// Creates a new AIM chat room
        /// </summary>
        /// <param name="chatRoom">A <see cref="ChatRoom"/> object describing the room to create</param>
        /// <remarks>TODO:  I think this doesn't work, the fullname should be "create" maybe?</remarks>
        private void CreateChatRoom(ChatRoom chatRoom)
        {
            SNACHeader sh = new SNACHeader();

            sh.FamilyServiceID = SNAC_CHATNAV_FAMILY;
            sh.FamilySubtypeID = CHATNAV_CREATE_ROOM;



            ByteStream stream = new ByteStream();

            chatRoom.WriteToByteStream(stream);

            chatRoomCreationRequests[sh.RequestID] = chatRoom;
            chatParameterRequests[sh.RequestID]    = "create";

            SNACFunctions.BuildFLAP(Marshal.BuildDataPacket(parent, sh, stream));
        }