示例#1
0
        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();
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
        }
示例#4
0
 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;
 }
示例#5
0
        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();
        }
示例#6
0
        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);
            }
        }