Example #1
0
        public static bool Push(
            this evolib.Databases.common1.OpsNotice rec,
            TopicsDesc topicsDesc
            )
        {
            var edited = rec.Push((CommonDesc)topicsDesc) ||
                         (rec.priority != topicsDesc.priority) ||
                         (rec.enabledEnglish && rec.titleEnglish != topicsDesc.titleEnglish) ||
                         (rec.enabledFrench && rec.titleFrench != topicsDesc.titleFrench) ||
                         (rec.enabledGerman && rec.titleGerman != topicsDesc.titleGerman) ||
                         (rec.enabledJapanese && rec.titleJapanese != topicsDesc.titleJapanese) ||
                         (rec.redirectUI != topicsDesc.redirectUI);

            rec.optNoticeType = evolib.OptNoticeType.Topics;

            rec.priority      = topicsDesc.priority;
            rec.titleEnglish  = topicsDesc.titleEnglish;
            rec.titleFrench   = topicsDesc.titleFrench;
            rec.titleGerman   = topicsDesc.titleGerman;
            rec.titleJapanese = topicsDesc.titleJapanese;
            rec.redirectUI    = topicsDesc.redirectUI;

            if (edited)
            {
                rec.version++;
            }

            return(edited);
        }
Example #2
0
        static bool Push(
            this evolib.Databases.common1.OpsNotice rec,
            CommonDesc common
            )
        {
            var edited =
                !Equals(rec.beginDate, common.beginDate) ||
                !Equals(rec.endDate, common.endDate) ||
                (rec.enabledEnglish != common.enabledEnglish) ||
                (rec.enabledFrench != common.enabledFrench) ||
                (rec.enabledGerman != common.enabledGerman) ||
                (rec.enabledJapanese != common.enabledJapanese) ||
                (rec.enabledEnglish && rec.msgEnglish != common.msgEnglish) ||
                (rec.enabledFrench && rec.msgFrench != common.msgFrench) ||
                (rec.enabledGerman && rec.msgGerman != common.msgGerman) ||
                (rec.enabledJapanese && rec.msgJapanese != common.msgJapanese);

            rec.release = common.release.Value;
            rec.target  = common.target.Value;
            rec.memo    = common.memo;

            rec.beginDate = common.beginDate.Value;
            rec.endDate   = common.endDate.Value;

            rec.enabledEnglish  = common.enabledEnglish;
            rec.msgEnglish      = common.msgEnglish;
            rec.enabledFrench   = common.enabledFrench;
            rec.msgFrench       = common.msgFrench;
            rec.enabledGerman   = common.enabledGerman;
            rec.msgGerman       = common.msgGerman;
            rec.enabledJapanese = common.enabledJapanese;
            rec.msgJapanese     = common.msgJapanese;

            return(edited);
        }
Example #3
0
        public static bool Push(
            this evolib.Databases.common1.OpsNotice rec,
            PopupDesc popupDesc
            )
        {
            var edited = rec.Push((CommonDesc)popupDesc) ||
                         (rec.enabledEnglish && rec.titleEnglish != popupDesc.titleEnglish) ||
                         (rec.enabledFrench && rec.titleFrench != popupDesc.titleFrench) ||
                         (rec.enabledGerman && rec.titleGerman != popupDesc.titleGerman) ||
                         (rec.enabledJapanese && rec.titleJapanese != popupDesc.titleJapanese);

            rec.optNoticeType = evolib.OptNoticeType.Popup;

            rec.titleEnglish  = popupDesc.titleEnglish;
            rec.titleFrench   = popupDesc.titleFrench;
            rec.titleGerman   = popupDesc.titleGerman;
            rec.titleJapanese = popupDesc.titleJapanese;

            if (edited)
            {
                rec.version++;
            }

            return(edited);
        }
Example #4
0
        public static ChatDesc Pop(
            this evolib.Databases.common1.OpsNotice rec,
            ChatDesc chatDesc
            )
        {
            rec.Pop((CommonDesc)chatDesc);

            chatDesc.times = rec.times;
            chatDesc.repeatedIntervalMinutes = rec.repeateIntervalMinutes;

            return(chatDesc);
        }
Example #5
0
        public static GetNotices.ChatNotice Pop(
            this evolib.Databases.common1.OpsNotice rec,
            GetNotices.ChatNotice chat
            )
        {
            rec.Pop((GetNotices.CommonNotice)chat);

            chat.times = rec.times;
            chat.repeatedIntervalMinutes = rec.repeateIntervalMinutes;

            return(chat);
        }
Example #6
0
        public static PopupDesc Pop(
            this evolib.Databases.common1.OpsNotice rec,
            PopupDesc popupDesc
            )
        {
            rec.Pop((CommonDesc)popupDesc);

            popupDesc.titleEnglish  = rec.titleEnglish;
            popupDesc.titleFrench   = rec.titleFrench;
            popupDesc.titleGerman   = rec.titleGerman;
            popupDesc.titleJapanese = rec.titleJapanese;

            return(popupDesc);
        }
Example #7
0
        public static GetNotices.PopupNotice Pop(
            this evolib.Databases.common1.OpsNotice rec,
            GetNotices.PopupNotice popup
            )
        {
            rec.Pop((GetNotices.CommonNotice)popup);

            popup.titleEnglish  = rec.titleEnglish;
            popup.titleFrench   = rec.titleFrench;
            popup.titleGerman   = rec.titleGerman;
            popup.titleJapanese = rec.titleJapanese;

            return(popup);
        }
Example #8
0
        public static TopicsDesc Pop(
            this evolib.Databases.common1.OpsNotice rec,
            TopicsDesc topicsDesc
            )
        {
            rec.Pop((CommonDesc)topicsDesc);

            topicsDesc.priority      = rec.priority;
            topicsDesc.titleEnglish  = rec.titleEnglish;
            topicsDesc.titleFrench   = rec.titleFrench;
            topicsDesc.titleGerman   = rec.titleGerman;
            topicsDesc.titleJapanese = rec.titleJapanese;
            topicsDesc.redirectUI    = rec.redirectUI;

            return(topicsDesc);
        }
Example #9
0
        public static GetNotices.TopicsNotice Pop(
            this evolib.Databases.common1.OpsNotice rec,
            GetNotices.TopicsNotice topics
            )
        {
            rec.Pop((GetNotices.CommonNotice)topics);

            topics.priority      = rec.priority;
            topics.titleEnglish  = rec.titleEnglish;
            topics.titleFrench   = rec.titleFrench;
            topics.titleGerman   = rec.titleGerman;
            topics.titleJapanese = rec.titleJapanese;
            topics.redirectUI    = rec.redirectUI;

            return(topics);
        }
Example #10
0
        static void Pop(
            this evolib.Databases.common1.OpsNotice rec,
            GetNotices.CommonNotice common
            )
        {
            common.target = rec.target;

            common.enabledEnglish  = rec.enabledEnglish;
            common.msgEnglish      = rec.msgEnglish;
            common.enabledFrench   = rec.enabledFrench;
            common.msgFrench       = rec.msgFrench;
            common.enabledGerman   = rec.enabledGerman;
            common.msgGerman       = rec.msgGerman;
            common.enabledJapanese = rec.enabledJapanese;
            common.msgJapanese     = rec.msgJapanese;
        }
Example #11
0
        static void Pop(
            this evolib.Databases.common1.OpsNotice rec,
            CommonDesc common
            )
        {
            common.release = rec.release;
            common.target  = rec.target;
            common.memo    = rec.memo;

            common.beginDate = rec.beginDate;
            common.endDate   = rec.endDate;

            common.enabledEnglish  = rec.enabledEnglish;
            common.msgEnglish      = rec.msgEnglish;
            common.enabledFrench   = rec.enabledFrench;
            common.msgFrench       = rec.msgFrench;
            common.enabledGerman   = rec.enabledGerman;
            common.msgGerman       = rec.msgGerman;
            common.enabledJapanese = rec.enabledJapanese;
            common.msgJapanese     = rec.msgJapanese;
        }
Example #12
0
        public static bool Push(
            this evolib.Databases.common1.OpsNotice rec,
            ChatDesc chatDesc
            )
        {
            var edited = rec.Push((CommonDesc)chatDesc) ||
                         (rec.times != chatDesc.times.Value) ||
                         (rec.repeateIntervalMinutes != chatDesc.repeatedIntervalMinutes);

            rec.optNoticeType = evolib.OptNoticeType.Chat;

            rec.times = chatDesc.times.Value;
            rec.repeateIntervalMinutes = chatDesc.repeatedIntervalMinutes;

            if (edited)
            {
                rec.version++;
            }

            return(edited);
        }