roominfo.js 496 Bytes
Newer Older
Kim Peace committed
1 2 3 4 5 6 7 8 9 10 11
NativeBridgeDataSource.getRoomInfo = function () {
  if (typeof android != "undefined") {
    return JSON.parse(android.getRoomInfo());
  } else {
    return JSON.parse(callNativeApp(NATIVE_KEY_IOS.getRoomInfo, {}));
  }
};

var RoomInfo = class {
  roomID;
  roomName;
12
  roomType;
Kim Peace committed
13 14 15
  constructor(roomInfo) {
    this.roomID = roomInfo.roomID;
    this.roomName = roomInfo.roomName;
16
    this.roomType = roomInfo.roomType;
Kim Peace committed
17 18 19
  }
};

20
var roomInfo = new RoomInfo(NativeBridgeDataSource.getRoomInfo());