Esempio n. 1
0
        /// <summary>
        /// Creates a new room with the specified details, or a blank one otherwise.
        /// </summary>
        /// <returns>A MatrixRoom object</returns>
        /// <param name="roomdetails">Optional set of options to send to the server.</param>
        public MatrixRoom CreateRoom(MatrixCreateRoom roomdetails = null)
        {
            string roomid = api.ClientCreateRoom(roomdetails);

            if (roomid != null)
            {
                MatrixRoom room = JoinRoom(roomid);
                return(room);
            }
            return(null);
        }