public Dictionary <User, int> SortLikes() { IFeature sort; sort = FeaturesFactoryMethod.Create(MethodFactoryTypes.eFacebookFeatureType.LikeSorter, this.m_LoggedInUserProxy); sort.FeatureCliked(); return((sort as LikeSorter).FriendsLikeCounter); }
public void PostStatus(string i_NewPost) { if (!string.IsNullOrEmpty(i_NewPost)) { this.m_CurrentFeature = FeaturesFactoryMethod.Create(MethodFactoryTypes.eFacebookFeatureType.Post, this.m_LoggedInUserProxy); (this.m_CurrentFeature as PostNewStatus).NewPost = i_NewPost; this.m_CurrentFeature.FeatureCliked(); } }
public void PostStatus(string i_NewPost) { IFeature post; if (!string.IsNullOrEmpty(i_NewPost)) { post = FeaturesFactoryMethod.Create(MethodFactoryTypes.eFacebookFeatureType.Post, this.m_LoggedInUserProxy); (post as PostNewStatus).NewPost = i_NewPost; post.FeatureCliked(); } }
public void SortLikes(int i_CollectionIndexSelected) { if (i_CollectionIndexSelected >= 0) { this.m_CurrentFeature = FeaturesFactoryMethod.Create(MethodFactoryTypes.eFacebookFeatureType.LikeSorter, this.m_LoggedInUserProxy); (this.m_CurrentFeature as LikeSorter).SortCollectionIndexSelected = i_CollectionIndexSelected; this.m_CurrentFeature.FeatureCliked(); } else { throw new Exception("No Collection Selected"); } }
public void FindMatch(bool i_IsFemaleChecked, bool i_IsMaleChecked, string i_AgeRangeSelected) { this.m_CurrentFeature = FeaturesFactoryMethod.Create(MethodFactoryTypes.eFacebookFeatureType.MatchFinder, this.m_LoggedInUserProxy); (this.m_CurrentFeature as MatchFinder).MatchInitializer(m_CurrentFeature as MatchFinder, i_IsFemaleChecked, i_IsMaleChecked, i_AgeRangeSelected); if ((i_IsFemaleChecked || i_IsMaleChecked) && !i_AgeRangeSelected.Equals("Select your desired age range")) { (this.m_CurrentFeature as MatchFinder).FeatureCliked(); } else { throw new Exception("Not all parameters are selected"); } }