From c944a2f0ab8744966616b7ed96f2ef3e161bfd93 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 17 Aug 2021 20:19:40 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/util.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index 557c651..5b6e229 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -470,7 +470,26 @@ namespace AyaNova.PlugIn.V8 throw new NotImplementedException("V8:util:RootObjectToAyaType -> type " + rot.ToString() + " is not coded yet"); } } + /// + /// Days of week + /// + [Flags] + public enum AyaDaysOfWeek : int + { + //https://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c + //MAX 31 (2147483647)!!! or will overflow int and needs to be turned into a long + //Must be a power of two: https://en.wikipedia.org/wiki/Power_of_two + //bitwise selection of days of week + //https://stackoverflow.com/a/24174625/8939 + Monday = 1, + Tuesday = 2, + Wednesday = 4, + Thursday = 8, + Friday = 16, + Saturday = 32, + Sunday = 64 + } public enum AyaType : int { //COREBIZOBJECT attribute must be set on objects that are: