internal static void WriteToRowValuesIfNotNull(QualityScoreData qualityScoreData, RowValues values)
 {
     if (qualityScoreData != null)
     {
         qualityScoreData.WriteToRowValues(values);
     }
 }
Exemplo n.º 2
0
        internal override void ProcessMappingsFromRowValues(RowValues values)
        {
            Campaign = new Campaign();

            values.ConvertToEntity(this, Mappings);

            QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values);
        }
        internal static QualityScoreData ReadFromRowValuesOrNull(RowValues values)
        {
            var qualityScoreData = new QualityScoreData();

            qualityScoreData.ReadFromRowValues(values);

            return(qualityScoreData.HasAnyValues ? qualityScoreData : null);
        }
Exemplo n.º 4
0
        internal override void ProcessMappingsFromRowValues(RowValues values)
        {
            AdGroup = new AdGroup {
            };

            values.ConvertToEntity(this, Mappings);

            QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values);
        }
Exemplo n.º 5
0
        internal override void ProcessMappingsToRowValues(RowValues values, bool excludeReadonlyData)
        {
            ValidatePropertyNotNull(Campaign, "Campaign");

            this.ConvertToValues(values, Mappings);

            if (!excludeReadonlyData)
            {
                QualityScoreData.WriteToRowValuesIfNotNull(QualityScoreData, values);
            }
        }