tootle-linux-client/src/API/Relationship.vala

17 lines
651 B
Vala
Raw Normal View History

2020-06-20 12:04:58 +02:00
public class Tootle.API.Relationship : Entity {
2018-10-27 10:29:25 +02:00
2020-06-20 12:04:58 +02:00
public string id { get; set; }
2020-05-29 14:19:35 +02:00
public bool following { get; set; default = false; }
public bool followed_by { get; set; default = false; }
public bool muting { get; set; default = false; }
public bool muting_notifications { get; set; default = false; }
public bool requested { get; set; default = false; }
public bool blocking { get; set; default = false; }
public bool domain_blocking { get; set; default = false; }
2018-04-30 19:56:02 +02:00
2020-06-20 12:04:58 +02:00
public static Relationship from (Json.Node node) throws Error {
return Entity.from_json (typeof (API.Relationship), node) as API.Relationship;
}
2018-04-30 19:56:02 +02:00
}