示例#1
0
文件: Avito.cs 项目: unstope/Avito
		public Advertisement Get(int id)
		{
			AdvertService ads = new AdvertService(auth);
			Advertisement ad = ads.GetActive().First(p => p.Id == id);
			if (ad == null)
				return null;
			return ad;
		}
示例#2
0
文件: Avito.cs 项目: unstope/Avito
		public bool Close(int id)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Close(id);
		}
示例#3
0
文件: Avito.cs 项目: unstope/Avito
		public List<Advertisement> GetAll()
		{
			AdvertService ad = new AdvertService(auth);
			return ad.GetActive();
		}
示例#4
0
文件: Avito.cs 项目: unstope/Avito
		public bool Post(Advertisement ad)
		{
			AdvertService ads = new AdvertService(auth, captcha);

			return ads.Post(ad);
		}
示例#5
0
文件: Avito.cs 项目: unstope/Avito
		public Advertisement Get(string url)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Get(url);
		}
示例#6
0
文件: Avito.cs 项目: unstope/Avito
		public bool Delete(int id)
		{
			AdvertService ad = new AdvertService(auth);
			return ad.Delete(id);
		}