Example #1
0
 void SMSVCookieUpdated_Internal(GVCookie c)
 {
     if (SMSVCookieUpdated != null)
     {
         SMSVCookieUpdated(c);
     }
 }
Example #2
0
        /// <summary>
        /// Create a Google Voice account
        /// </summary>
        /// <param name="UserName">Full Google Voice username</param>
        /// <param name="Password"></param>
        /// <param name="Cache_Dir">NULL to disable contacts and extra feed sync</param>
        public Account(string UserName, string Password, GVCookie SMSV, string Cache_Dir)
        {
            this.UserName    = UserName;
            this.Password    = Password;
            ForwardingPhones = new List <ForwardingPhone>();

            if (Cache_Dir != null)
            {
                this.Cache_Dir  = Cache_Dir;
                ContactsManager = new ContactsManager(Cache_Dir, UserName, http);
            }

            // load our 2-step verification cookie.  We won't persist login cookies, just
            // the long-term (30 days) cookie.
            if (SMSV != null)
            {
                this.SMSV = SMSV.ToCookie();
                http.Initialize(this.SMSV);
            }
        }