~luismmontielg/do-plugins/Facebook

« back to all changes in this revision

Viewing changes to Facebook/src/FacebookPageItemSource.cs

  • Committer: Luis Montiel
  • Date: 2009-03-04 23:34:47 UTC
  • Revision ID: luis@luis-laptop-20090304233447-lj63jdu3nj0akmn0
no more indexing walls and inbox

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
                public override string Description { get { return "Facebook Pages"; } }
42
42
                public override string Icon {get { return "Facebook_pages.png@" + GetType ().Assembly.FullName; } }
43
43
                
 
44
                public override IEnumerable<Item> ChildrenOfItem (Item item)
 
45
                {
 
46
                        if((item as FacebookPageItem).Name.Equals("wall")){
 
47
                                foreach (Item i in Facebook.Wall)
 
48
                                        yield return i;
 
49
                        }
 
50
                        if((item as FacebookPageItem).Name.Equals("inbox")){
 
51
                                foreach (Item i in Facebook.Inbox)
 
52
                                        yield return i;
 
53
                        }
 
54
                        yield break;
 
55
                }
 
56
                
44
57
                public override IEnumerable<Do.Universe.Item> Items 
45
58
                {
46
59
                        get { return Facebook.Pages; }