public void AddContextFeatures(IContextFeature contextFeatureToAdd) { if (ContextFeatures.Contains(contextFeatureToAdd)) { //TODO: Show some warning (not an error) return; } ContextFeatures.Add(contextFeatureToAdd); OnAddedFeaturesToSocialContext?.Invoke(new List <IContextFeature>() { contextFeatureToAdd }); OnSocialContextChanged?.Invoke(); }
public void RemoveContextFeatures(IContextFeature contextFeatureToRemove) { if (!ContextFeatures.Contains(contextFeatureToRemove)) { //TODO: Show some warning (not an error) return; } ContextFeatures.Remove(contextFeatureToRemove); OnRemovedFeaturesFromSocialContext?.Invoke(new List <IContextFeature>() { contextFeatureToRemove }); OnSocialContextChanged?.Invoke(); }
public SocialContextEventsTest() { _socialContext = new SocialContext(); _contextFeature = new ValueContextFeature <string>("", ""); }
public void AddSalienceFeature(IContextFeature newFeature) { }