Make _state_key of Event.State protected

Some state events give a meaning to state_key but having a separate
property is a bit of overkill.
This commit is contained in:
Gergely Polonkai 2016-03-09 07:18:21 +00:00
parent e958e0ecc7
commit 6db0e82ca7

View File

@ -17,7 +17,19 @@
*/ */
public abstract class Matrix.Event.State : Matrix.Event.Base { public abstract class Matrix.Event.State : Matrix.Event.Base {
public string? state_key { get; set; default = null; } protected string? _state_key;
public string? state_key {
get {
return _state_key;
}
set {
_state_key = value;
}
default = null;
}
public Json.Node? prev_content { get; set; default = null; } public Json.Node? prev_content { get; set; default = null; }
protected override void protected override void