コード例 #1
0
ファイル: scraper.cs プロジェクト: bobsheehan/CrankyCaller
        public static T Create <T>(CrankyAddress myAddress)

        {
            if (typeof(T) == typeof(Spoketo))

            {
                return((T)(IAddressPageScraper) new Spoketo(myAddress));
            }
            else
            {
                throw new NotImplementedException(String.Format("Creation of {0} interface is not supported yet.", typeof(T)));
            }
        }
コード例 #2
0
ファイル: spoketo.cs プロジェクト: bobsheehan/CrankyCaller
 public Spoketo(CrankyAddress myAddress)
 {
     URL = "http://www.spokeo.com/" + myAddress.state + "/" + myAddress.city + "/" + myAddress.housenum + "-" + myAddress.road.Replace(" ", "-");
 }