Пример #1
0
 public TopMadel(String date, int quantity, String URL)
 {
     vkClient vk = new vkClient();
     top = new List<String>();
     String vkID = vk.GetId(URL);
     DBMaster db = new DBMaster();
     int id = db.FindByIDUser(vkID);
     top = GetTopForDate(date, quantity, id);
 }
Пример #2
0
 public bool ComplianceTest()
 {
     vkClient vk = new vkClient();
     this.URL = this.URL.Trim();
     if (!string.IsNullOrWhiteSpace(this.URL))
     {
         if (this.URL.StartsWith("http://vk.com/") | this.URL.StartsWith("https://vk.com/"))
         {
             String vkID = vk.GetId(this.URL);
             int status = dbMaster.FindByVkIDUser(vkID);
             if (status == 1)
                 return true;
             else return false;
         }
     }
     return false;
 }