Add set_user_level() and set_event_level() to Matrix.Event.RoomPowerLevels

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
Gergely Polonkai 2016-03-22 10:08:07 +00:00
parent a73866a918
commit 2dc42021b6

View File

@ -215,4 +215,16 @@ public class Matrix.Event.RoomPowerLevels : Matrix.Event.State {
base.to_json(json_data);
}
public void
set_user_level(string user_id, int level)
{
_user_levels[user_id] = level;
}
public void
set_event_level(string event_type, int level)
{
_event_levels[event_type] = level;
}
}