コード例 #1
0
ファイル: Account.cs プロジェクト: davuxcom/GoogleVoice
 void SMSVCookieUpdated_Internal(GVCookie c)
 {
     if (SMSVCookieUpdated != null)
     {
         SMSVCookieUpdated(c);
     }
 }
コード例 #2
0
ファイル: Account.cs プロジェクト: davuxcom/GoogleVoice
        /// <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);
            }
        }