Ejemplo n.º 1
0
 public bool IsSame(RSDemographicSettings rsSettingsDemographicSettings)
 {
     if (DemographicId == rsSettingsDemographicSettings.DemographicId)
     {
         return(RSDeliverySettings.IsSame(this.DeliverySettingsList, rsSettingsDemographicSettings.DeliverySettingsList));
     }
     return(false);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns whether instance has same settings as input
        /// Compare Mode:
        /// 0=Full settings comparison (include demographics)
        /// 1=Top level settings comparison (exclude demographics)
        /// 2=Demographic settings only
        /// </summary>
        /// <param name="isrSettings"></param>
        /// <param name="compareMode"></param>
        /// <returns></returns>
        public bool IsSame(RSSettings rsSettings, int compareMode)
        {
            // Compare main settings
            if (compareMode == 0 || compareMode == 1)
            {
                if (!RSDeliverySettings.IsSame(DefaultDeliverySettingsList, rsSettings.DefaultDeliverySettingsList))
                {
                    return(false);
                }
            }

            // Compare demographics
            if (compareMode == 0 || compareMode == 2)
            {
                return(RSDemographicSettings.IsSame(DemographicsSettings, rsSettings.DemographicsSettings));
            }
            return(true);
        }
Ejemplo n.º 3
0
 private static string Serialize(RSDeliverySettings deliverySettings)
 {
     return(string.Format("DCE={1}{0}ULOD={2}{0}LLOD={3}", (Char)0, deliverySettings.DaysToCampaignEnd, deliverySettings.UpperLimitOfOverDelivery, deliverySettings.LowerLimitOfOverDelivery));
 }