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); }
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); }
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); }