src/models/room-member.js
function RoomMember(roomId, userId) {
    this.roomId = roomId;
    this.userId = userId;
    this.typing = false;
    this.name = userId;
    this.rawDisplayName = userId;
    this.powerLevel = 0;
    this.powerLevelNorm = 0;
    this.user = null;
    this.membership = null;
    this.events = {
        member: null,
    };
    this._isOutOfBand = false;
    this._updateModifiedTime();
}
function RoomMember(roomId, userId) {
    this.roomId = roomId;
    this.userId = userId;
    this.typing = false;
    this.name = userId;
    this.rawDisplayName = userId;
    this.powerLevel = 0;
    this.powerLevelNorm = 0;
    this.user = null;
    this.membership = null;
    this.events = {
        member: null,
    };
    this._isOutOfBand = false;
    this._updateModifiedTime();
}
function RoomMember ( roomId , userId ) { this . roomId = roomId ; this . userId = userId ; this . typing = false ; this . name = userId ; this . rawDisplayName = userId ; this . powerLevel = 0 ; this . powerLevelNorm = 0 ; this . user = null ; this . membership = null ; this . events = { member : null , } ; this . _isOutOfBand = false ; this . _updateModifiedTime ( ) ; }
Construct a new room member.

@constructor
@alias module:models/room-member

@param {string} roomId The room ID of the member.
@param {string} userId The user ID of the member.
@prop {string} roomId The room ID for this member.
@prop {string} userId The user ID of this member.
@prop {boolean} typing True if the room member is currently typing.
@prop {string} name The human-readable name for this room member. This will be
disambiguated with a suffix of " (@user_id:matrix.org)" if another member shares the
same displayname.
@prop {string} rawDisplayName The ambiguous displayname of this room member.
@prop {Number} powerLevel The power level for this room member.
@prop {Number} powerLevelNorm The normalised power level (0-100) for this
room member.
@prop {User} user The User object for this room member, if one exists.
@prop {string} membership The membership state for this room member e.g. 'join'.
@prop {Object} events The events describing this RoomMember.
@prop {MatrixEvent} events.member The m.room.member event for this RoomMember.
Construct a new room member .