Version: 0.0.10.0.20.0.30.0.4-a0.0.40.1.00.1.10.2.00.2.10.2.20.3.00.4.00.4.10.4.20.5.00.5.10.5.20.5.30.5.40.5.50.5.60.6.00.6.10.6.20.6.30.6.4-rc.20.6.40.7.00.7.1-rc.10.7.10.7.20.7.30.7.4-rc.10.7.40.7.5-rc.10.7.5-rc.20.7.5-rc.30.7.50.7.6-rc.10.7.6-rc.20.7.60.7.7-rc.10.7.70.7.8-rc.10.7.80.7.90.7.100.7.11-rc.10.7.110.7.12-rc.10.7.120.7.130.8.00.8.1-rc.10.8.10.8.20.8.3-rc.10.8.30.8.40.8.5-rc.10.8.50.9.0-rc.10.9.00.9.10.9.2-cryptowraning.10.9.20.10.0-rc.10.10.0-rc.20.10.00.10.10.10.2-rc.10.10.20.10.3-rc.10.10.30.10.4-rc.10.10.40.10.5-rc.10.10.50.10.6-rc.10.10.60.10.7-rc.10.10.70.10.8-rc.10.10.80.10.9-rc.10.10.9-rc.20.10.90.11.0-rc.10.11.00.11.1-rc.10.11.10.12.0-rc.10.12.00.12.1-rc.10.12.10.13.00.13.10.14.0-rc.10.14.00.14.10.14.2-rc.10.14.20.14.3-rc.10.14.31.0.0-rc.11.0.0-rc.21.0.01.0.1-rc.11.0.1-rc.21.0.11.0.2-rc.11.0.21.0.3-rc.11.0.31.0.41.1.0-rc.11.1.01.2.0-rc.11.2.02.0.02.0.1-rc.12.0.1-rc.22.0.12.1.0-rc.12.1.02.1.12.2.0-rc.12.2.0-rc.22.2.02.3.0-rc.12.3.02.3.1-rc.12.3.12.3.2-rc.12.3.22.4.0-rc.12.4.02.4.12.4.2-rc.12.4.22.4.3-rc.12.4.32.4.4-rc.12.4.42.4.52.4.6-rc.12.4.63.0.0-rc.13.0.03.42.2-rc.34.0.0-rc.14.0.05.0.0-rc.15.0.05.0.15.1.0-rc.15.1.05.1.1-rc.15.1.15.2.0-rc.15.2.05.3.0-rc.15.3.1-rc.15.3.1-rc.25.3.1-rc.35.3.1-rc.46.0.0-rc.16.0.0-rc.26.0.06.1.0-rc.16.1.06.2.0-rc.16.2.06.2.16.2.27.0.0-rc.17.0.07.1.0-rc.17.1.08.0.08.0.1-rc.18.0.18.1.0-rc.18.1.08.2.0-rc.18.2.08.3.0-rc.18.3.08.4.0-rc.18.4.08.4.18.5.0-rc.18.5.09.0.0-rc.19.0.09.0.19.1.0-rc.19.1.09.2.0-rc.19.2.09.3.0-rc.19.3.09.4.0-rc.19.4.0-rc.29.4.09.4.19.5.0-rc.19.5.09.5.19.6.0-rc.19.6.09.7.0-rc.19.7.09.8.0-rc.19.8.09.9.0-rc.19.9.09.10.0-rc.19.10.09.11.0-rc.19.11.010.0.0-rc.110.0.010.1.0-rc.110.1.011.0.0-rc.111.0.011.1.0-rc.111.1.011.2.0-rc.111.2.012.0.0-rc.112.0.012.0.1-rc.112.0.112.1.0-rc.112.1.012.2.0-rc.112.2.012.3.0-rc.112.3.0-rc.212.3.012.3.112.4.0-rc.112.4.012.4.112.5.0-rc.112.5.013.0.0-rc.113.0.014.0.0-rc.114.0.0-rc.214.0.014.0.115.0.0-rc.115.0.015.1.0-rc.115.1.015.1.1-rc.115.1.115.2.0-rc.115.2.015.2.115.3.0-rc.115.3.015.4.0-rc.115.4.015.5.0-rc.115.5.015.5.1-rc.115.5.115.5.215.6.0-rc.115.6.016.0.0-rc.116.0.016.0.1-rc.116.0.116.0.2-rc.117.0.0-rc.117.0.0-rc.217.0.0-rc.317.0.017.1.0-rc.117.1.017.2.0-rc.117.2.018.0.0-rc.118.0.0-rc.218.0.018.1.0-rc.118.1.019.0.0-rc.119.0.019.1.0-rc.119.1.019.2.0-rc.119.2.019.3.0-rc.119.3.0-rc.219.3.019.4.0-rc.119.4.019.5.0-rc.119.5.0-rc.419.5.019.6.0-rc.119.6.019.7.020.0.020.0.120.0.220.1.0-rc.120.1.0-rc.220.1.021.0.0-rc.121.0.0-rc.221.0.021.0.121.1.0-rc.121.1.021.2.0-rc.121.2.022.0.0-rc.122.0.0-rc.222.0.023.0.0-rc.123.0.023.1.0-rc.123.1.0-rc.223.1.0-rc.323.1.0-rc.423.1.023.1.123.2.0-rc.123.2.023.3.0-rc.123.3.023.4.0-rc.123.4.0-rc.223.4.023.5.0-rc.123.5.024.0.024.1.0-rc.124.1.025.0.0-rc.125.0.025.1.0-rc.125.1.025.1.125.2.0-rc.125.2.0-rc.225.2.0-rc.425.2.0-rc.526.0.0-rc.126.0.026.0.126.1.0-rc126.1.026.2.0-rc.126.2.027.0.0-rc.127.0.0-rc.227.0.027.1.0-rc.127.1.027.2.0-rc.127.2.027.3.0-rc.128.0.0-rc.128.0.028.1.0-rc.128.1.028.2.0-rc.128.2.029.0.0-rc.129.0.029.1.0-rc.129.1.030.0.0-rc.130.0.030.0.130.1.0-rc.030.1.0-rc.130.1.030.2.0-rc.030.2.030.3.0-rc.030.3.031.0.0-rc.031.0.031.1.031.2.0-rc.031.2.031.3.0-rc.031.3.0-rc.131.3.0-rc.231.3.0-rc.331.3.0-rc.431.3.031.4.0-rc.031.4.031.5.0-rc.031.5.031.6.0-rc.031.6.031.6.132.0.0-rc.032.0.032.1.0-rc.032.1.032.2.0-rc.032.2.032.3.0-rc.032.3.032.4.033.0.0-rc.033.0.033.1.0-rc.033.1.0-rc.133.1.034.0.0-rc.034.0.0-rc.134.0.034.1.0-rc.034.1.0-rc.134.1.0-rc.234.1.0-rc.334.1.034.2.0-rc.034.2.034.3.0-rc.034.3.0-rc.134.3.034.3.134.4.0-rc.034.4.0-rc.134.4.034.5.0-rc.034.5.034.6.0-rc.034.6.034.7.0-rc.034.7.034.8.034.9.0-rc.034.9.034.10.0-rc.0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RoomSummary = RoomSummary;
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/**
* @module models/room-summary
* Construct a new Room Summary. A summary can be used for display on a recent
* list, without having to load the entire room list into memory.
* @constructor
* @param {string} roomId Required. The ID of this room.
* @param {Object} info Optional. The summary info. Additional keys are supported.
* @param {string} info.title The title of the room (e.g. <code>m.room.name</code>)
* @param {string} info.desc The description of the room (e.g.
* <code>m.room.topic</code>)
* @param {Number} info.numMembers The number of joined users.
* @param {string[]} info.aliases The list of aliases for this room.
* @param {Number} info.timestamp The timestamp for this room.
function RoomSummary(roomId, info) {
this.roomId = roomId;
this.info = info;
}