예제 #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);
		}