Пример #1
0
        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();
        }
Пример #2
0
        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>("", "");
 }
Пример #4
0
 public void AddSalienceFeature(IContextFeature newFeature)
 {
 }