示例#1
0
文件: Google.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as ImageSearch;
     return (o != null) && (o.Search == Search);
 }
示例#2
0
 public override bool Matches(Source other)
 {
     var o = other as CraigslistForSale;
     return (o != null) && (o.Search == Search) && (o.List == List);
 }
示例#3
0
文件: Google.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as PicasaUser;
     return (o != null) && (o.User == User);
 }
示例#4
0
文件: Sources.cs 项目: jorik041/lcars
 public static int Id(Source source)
 {
     return Array.IndexOf(All, source.GetType());
 }
示例#5
0
文件: Twitter.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as TwitterAccount;
     return (o != null) && (o.Account == Account);
 }
示例#6
0
文件: Mail.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as Mail;
     return (o != null) && (o.EmailAddress == EmailAddress);
 }
示例#7
0
文件: Sources.cs 项目: jorik041/lcars
 public abstract bool Matches(Source other);
示例#8
0
 public override bool Matches(Source other)
 {
     var o = other as Rss;
     return (o != null) && (o.Url == Url);
 }
示例#9
0
文件: Youtube.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as YoutubeTags;
     return (o != null) && (o.Tags.Trim().ToLowerInvariant() == Tags.Trim().ToLowerInvariant());
 }
示例#10
0
文件: Youtube.cs 项目: utahking/lcars
        public override bool Matches(Source other)
        {
            var o = other as YoutubeSearch;

            return((o != null) && (o.Search == Search));
        }
示例#11
0
文件: Youtube.cs 项目: utahking/lcars
        public override bool Matches(Source other)
        {
            var o = other as YoutubeTags;

            return((o != null) && (o.Tags.Trim().ToLowerInvariant() == Tags.Trim().ToLowerInvariant()));
        }
示例#12
0
文件: Flickr.cs 项目: jorik041/lcars
 public override bool Matches(Source other)
 {
     var o = other as FlickrTags;
     return (o != null) && (o.Tags == Tags);
 }
示例#13
0
 public static Source GetSource(this IMessage m, Source[] srcs)
 {
     foreach (var s in srcs) {
         if (s.Id == m.SourceId && s.GetType().Name == m.SourceType) {
             return s;
         }
     }
     return null;
 }
示例#14
0
 public override bool Matches(Source other)
 {
     var o = other as Facebook;
     return (o != null) && (o.AccessToken == AccessToken);
 }