public void FeedFilterList(FilterType filterType , FeedFiltersHeadFootTemplate head , FeedFiltersHeadFootTemplate foot , FeedFiltersItemTemplate item) { FeedFilterCollection tempFeedFilters = new FeedFilterCollection(); foreach (FeedFilter feedFilter in UserFeedFilters) { if (filterType == FilterType.FilterApp || filterType == FilterType.FilterAppAction) { if (feedFilter.FilterType == FilterType.FilterApp || feedFilter.FilterType == FilterType.FilterAppAction) { tempFeedFilters.Add(feedFilter); } } else if (feedFilter.FilterType == filterType) { //if(filterType == FilterType.FilterUser) tempFeedFilters.Add(feedFilter); } } int i = 0; head(); foreach (FeedFilter feedFilter in tempFeedFilters) { item(i++, feedFilter); } foot(); }
public void FeedFilterList(FilterType filterType, FeedFiltersTemplate template) { FeedFilterCollection tempFeedFilters = new FeedFilterCollection(); foreach (FeedFilter feedFilter in UserFeedFilters) { if (filterType == FilterType.FilterApp || filterType == FilterType.FilterAppAction) { if (feedFilter.FilterType == FilterType.FilterApp || feedFilter.FilterType == FilterType.FilterAppAction) { tempFeedFilters.Add(feedFilter); } } else if (feedFilter.FilterType == filterType) { //if(filterType == FilterType.FilterUser) tempFeedFilters.Add(feedFilter); } } int i = 0; foreach (FeedFilter feedFilter in tempFeedFilters) { template(i++, feedFilter); } }
protected FeedFilterCollection GetActionFeedFilterList(int userID) { FeedFilterCollection tempFilter = new FeedFilterCollection(); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.FilterType == FilterType.FilterUserAppAction && feedFilter.FriendUserID.Value == userID) { tempFilter.Add(feedFilter); } } return(tempFilter); }
protected FeedFilterCollection GetActionFeedFilterList(int userID) { FeedFilterCollection tempFilter = new FeedFilterCollection(); foreach (FeedFilter feedFilter in UserFeedFilters) { if (feedFilter.FilterType == FilterType.FilterUserAppAction && feedFilter.FriendUserID.Value == userID) { tempFilter.Add(feedFilter); } } return tempFilter; }