diff --git a/dotnet/EcencyApi/Handlers/Announcements.cs b/dotnet/EcencyApi/Handlers/Announcements.cs index d7341be7..cb81ea97 100644 --- a/dotnet/EcencyApi/Handlers/Announcements.cs +++ b/dotnet/EcencyApi/Handlers/Announcements.cs @@ -11,7 +11,9 @@ namespace EcencyApi.Handlers; /// description - description of announcement /// button_text - text of actionable button /// button_link - link that actionable button opens -/// path - which path it should show, supports regex on location +/// path - which path it should show: a regex on the location, or an array of them +/// (shown when any matches). Only web reads it; the mobile apps show every +/// entry wherever they are /// auth - should there be authorized/logged in user to show announcement /// ops - hive uri format operation for mobile app signing /// proposal_ids - hive proposal ids for an inline support prompt; web builds the @@ -34,6 +36,16 @@ public static class Announcements ["proposal_ids"] = new JsonArray { 379 }, ["ops"] = "hive://sign/op/WyJ1cGRhdGVfcHJvcG9zYWxfdm90ZXMiLHsidm90ZXIiOiAiX19zaWduZXIiLCJwcm9wb3NhbF9pZHMiOiBbMzc5XSwiYXBwcm92ZSI6dHJ1ZSwiZXh0ZW5zaW9ucyI6IFtdfV0.", }, + new JsonObject + { + ["id"] = 111, + ["title"] = "Ecency 4.0 for iOS and Android", + ["description"] = "Our mobile app is rebuilt as a native app, with Listen in the background, widgets and more. Update from your app store, your accounts come with you.", + ["button_text"] = "See what's new", + ["button_link"] = "/@ecency/ecency-mobile-4-0-rebuilt", + ["path"] = new JsonArray { "^/$", "^/(hot|trending|created|feed|waves)(/|$)", "^/@[^/]+/(blog|posts|wallet|points|feed)$" }, + ["auth"] = false, + }, }; }