Lookup details for a given room id
176276
async def fetch_room(self, room_id):
        """"""
        url = "https://production.plum.technology/v2/getRoom"
        data = {"rid": room_id}
        return await self.__post(url, data)
834418
def room(self):
        """"""
        try:
            return self._room
        except AttributeError:
            room_id = self.json["room_id"]
            self._room = MatrixRoom(room_id, self.Api)
            return self._room
780317
def groups_history(self, room_id, **kwargs):
        """"""
        return self.__call_api_get('groups.history', roomId=room_id, kwargs=kwargs)
103887
def update_room_name(self):
        """"""
        try:
            response = self.client.api.get_room_name(self.room_id)
            if "name" in response and response["name"] != self.name:
                self.name = response["name"]
                return True
            else:
                return False
        except MatrixRequestError:
            return False
614746
def lookup(self, nick):
		query = """
			SELECT fromnick, message, notifytime, notifyid
			FROM notify WHERE tonick = ?
		"""
		'''  '''
		messages = [
			{
				'fromnick': x[0],
				'message': x[1],
				'notifytime': x[2],
				'notifyid': x[3],
			}
			for x in self.db.execute(query, [nick])
		]
		ids = [x['notifyid'] for x in messages]
		query = """
			DELETE FROM notify
			WHERE notifyid IN (%s)
			""" % ','.join('?' for x in ids)
		self.db.execute(query, ids)

		return messages
976108
def fetch_room_id
      connect do |http|
        response = http.request(http_request(:get, "/rooms.json"))

        case response
        when Net::HTTPOK
          find_room_in_json(JSON.parse(response.body))
        else
          raise ConnectionError
        end
      end
    end
196555
def [](id)
      return @rooms[id] if id.start_with? '!'

      if id.start_with? '#'
        res = @rooms.find { |_, r| r.canonical_alias == id }
        return res.last if res.respond_to? :last
      end

      res = @rooms.find { |_, r| r.name == id }
      res.last if res.respond_to? :last
    end
320942
def __getStationName(name, id):
    """"""
    name = name.replace("Meetstation", "")
    name = name.strip()
    name += " (%s)" % id
    return name
227888
def refresh_rooms(self):
        """"""
        for room_id in self.user_api.get_joined_rooms()["joined_rooms"]:
            self._rooms[room_id] = MatrixRoom(room_id, self.user_api)
194903
function( roomID, key ) {

		var oldVal;

		if( roomData[ roomID ] === undefined ) {

			return promise.reject( 'There is no room by that id' );
		} else {

			oldVal = roomData[ roomID ][ key ];

			delete roomData[ roomID ][ key ];

			return promise.resolve( oldVal );
		}
	}
37610
function LookupList(id, capacity) {
    if (!(id instanceof Id))
        throw new Error('invalid id or selfId');
    if (!(typeof capacity === 'number' && capacity > 0))
        throw new Error('invalid capacity');
    this._id = id;
    this._capacity = capacity;
    this._slots = [];
}
973015
def room_file(room_id, file_id, params = {})
      unless (value = params[:create_download_url]).nil?
        params[:create_download_url] = boolean_to_integer(value)
      end
      get("rooms/#{room_id}/files/#{file_id}", params)
    end
1278663
def get_private_room_info(self, room_id, **kwargs):
        
        return GetPrivateRoomInfo(settings=self.settings, **kwargs).call(
            room_id=room_id,
            **kwargs
        )
1272018
def room(self, name, participantIdentity=None, **kwargs):
        
        return self.nest(Room(name, participantIdentity=participantIdentity, **kwargs))
204276
def rooms(self, sid, namespace=None):
        
        namespace = namespace or '/'
        return self.manager.get_rooms(sid, namespace)
118269
function( userId ) {
		return this.memory.getPublicRoom()
		.then(function( roomId ) {
			if ( roomId ) {
				return this.enter( userId, roomId);
			} else {
				return promise.reject( 'Could not find a public room' );
			}
		}.bind(this));
	}
369943
@SuppressWarnings("unchecked")
    @Override
    public <T> T by(int id) {
        Room sfsRoom = extension.getParentZone().getRoomById(id);
        if(sfsRoom == null) return null;
        return (T) sfsRoom.getProperty(APIKey.ROOM);
    }