Line data Source code
1 : // OpenAPI only supports real enums (modeled as enum in generated/model.dart). 2 : 3 : // In this file, possible values are defined manually, 4 : // for cases where other values are allowed too. 5 : 6 : class PushRuleAction { 7 : static final notify = 'notify'; 8 : static final dontNotify = 'dont_notify'; 9 : static final coalesce = 'coalesce'; 10 : static final setTweak = 'set_tweak'; 11 : } 12 : 13 : class TagType { 14 : static final favourite = 'm.favourite'; 15 : static final lowPriority = 'm.lowpriority'; 16 : static final serverNotice = 'm.server_notice'; 17 : 18 33 : static bool isValid(String tag) => 19 33 : !tag.startsWith('m.') || 20 4 : [favourite, lowPriority, serverNotice].contains(tag); 21 : }