Example #1
0
 public SalesforceProfilePropertyValue(SettingsPropertyValue propertyValue, SalesforceProfileProperty property)
     : base(property)
 {
     base.PropertyValue   = propertyValue.PropertyValue;
     base.Deserialized    = propertyValue.Deserialized;
     base.IsDirty         = propertyValue.IsDirty;
     base.SerializedValue = propertyValue.SerializedValue;
 }
 public SalesforceProfilePropertyValue(SettingsPropertyValue propertyValue, SalesforceProfileProperty property)
     : base(property)
 {
     base.PropertyValue = propertyValue.PropertyValue;
       base.Deserialized = propertyValue.Deserialized;
       base.IsDirty = propertyValue.IsDirty;
       base.SerializedValue = propertyValue.SerializedValue;
 }
        protected virtual SettingsPropertyValueCollection GetRelevantPropertyValues(SettingsPropertyValueCollection properties)
        {
            var result = new SettingsPropertyValueCollection();

            if (this.ProfileConfiguration.Properties.Count == 0)
            {
                return(result);
            }

            foreach (SettingsPropertyValue property in properties)
            {
                var entry = this.ProfileConfiguration.Properties.FirstOrDefault(i => i.Name == property.Name);
                if (entry != null)
                {
                    var salesforceProperty = new SalesforceProfileProperty(property.Property, entry.SalesforceName);

                    result.Add(new SalesforceProfilePropertyValue(property, salesforceProperty));
                }
            }
            return(result);
        }
Example #4
0
 public SalesforceProfilePropertyValue(SalesforceProfileProperty property)
     : base(property)
 {
 }
        protected virtual SettingsPropertyValueCollection GetRelevantPropertyValues(SettingsPropertyValueCollection properties)
        {
            var result = new SettingsPropertyValueCollection();

              if (this.ProfileConfiguration.Properties.Count == 0)
              {
            return result;
              }

              foreach (SettingsPropertyValue property in properties)
              {
            var entry = this.ProfileConfiguration.Properties.FirstOrDefault(i => i.Name == property.Name);
            if (entry != null)
            {
              var salesforceProperty = new SalesforceProfileProperty(property.Property, entry.SalesforceName);

              result.Add(new SalesforceProfilePropertyValue(property, salesforceProperty));
            }
              }
              return result;
        }
 public SalesforceProfilePropertyValue(SalesforceProfileProperty property)
     : base(property)
 {
 }