public function getRoomId()
    {
        if (!$this->isRoomEvent()) {
            throw new InvalidEventSourceException('This event source is not a room type');
        }
        return isset($this->event['source']['roomId'])
            ? $this->event['source']['roomId']
            : null;
    }