Exemple #1
0
        private void counter_tick(object sender, EventArgs e)
        {
            Nora nora = new Nora();

            nora.Authorize();
            if (nora.BirthCheck())
            {
                nora.BDemail();
            }
        }
Exemple #2
0
        public void one()
        {
            girl.Authorize();


            api.Messages.Send(new MessagesSendParams
            {
                UserId  = 223333211,
                Message = "Привет! Я твоя курсовая работа!"
            });     // посылаем сообщение пользователю
        }
Exemple #3
0
        public void SyncUserContact()
        {
            Nora nora = new Nora();

            nora.Authorize();
            List <User_Contact> Friends = nora.CatchFriends();

            foreach (User_Contact con in Friends)
            {
                var contacter = new User_Contact
                {
                    Name        = con.Name,
                    MobilePhone = con.MobilePhone,
                    Email       = con.Email,
                    Birthday    = con.Birthday
                };

                database.Contacts.Add(contacter);
                database.SaveChanges();

                Contactso.Add(contacter);
            }
        }