Beispiel #1
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();
        }
Beispiel #2
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();
        }