summaryrefslogtreecommitdiff
path: root/src/notification.vala
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-05-21 22:08:41 +0200
committerAylur <[email protected]>2024-05-21 22:08:41 +0200
commit81c4e3a12d05a3550f1d8c942f0d919b4688c3bc (patch)
treedd108b8fe2c569ce9208fe9c24bab9ffde768460 /src/notification.vala
parent5929e35962914331704f88dc45e8b96b30d1448b (diff)
fix proxy, add remaining cli functionality
Diffstat (limited to 'src/notification.vala')
-rw-r--r--src/notification.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notification.vala b/src/notification.vala
index bec014d..55d62d1 100644
--- a/src/notification.vala
+++ b/src/notification.vala
@@ -90,7 +90,7 @@ public class Notification : Object {
public void dismiss() { dismissed(); }
public void invoke(string action) { invoked(action); }
- public Notification.from_json(Json.Object root) throws GLib.Error {
+ internal Notification.from_json(Json.Object root) throws GLib.Error {
foreach (var key in root.get_members()) {
var node = root.get_member(key);
switch (key) {
@@ -123,7 +123,7 @@ public class Notification : Object {
}
}
- public static Notification from_json_string(string json) throws GLib.Error {
+ internal static Notification from_json_string(string json) throws GLib.Error {
var parser = new Json.Parser();
parser.load_from_data(json);
return new Notification.from_json(parser.get_root().get_object());
@@ -135,7 +135,7 @@ public class Notification : Object {
return generator.to_data(null);
}
- public Json.Node to_json() {
+ internal Json.Node to_json() {
var acts = new Json.Builder().begin_array();
foreach (var action in actions) {
acts.begin_object()