Esempio n. 1
0
       /// <summary>
        /// Initial the webservice API.
       /// </summary>
       /// <param name="client">client</param>
       /// <param name="userName">user name</param>
       /// <param name="password">password</param>
        public MailAdapter(String client, String userName, String password)
        {
            this.client = client;
            this.userName = userName;
            this.password = password;

            exportService = new cn.tripolis.dialogue.export.ExportService();
            exportAuthInfo = new cn.tripolis.dialogue.export.AuthInfo
                {
                    client = client,
                    username = userName,
                    password = password
                };
           exportService.authInfo = exportAuthInfo;

            importService = new cn.tripolis.dialogue.import.ImportService();
            importAuthInfo = new cn.tripolis.dialogue.import.AuthInfo
                {
                    client = client,
                    username = userName,
                    password = password
                };
           importService.authInfo = importAuthInfo;

        }      
Esempio n. 2
0
   /// <summary>
  /// Initial the webservice API.
 /// </summary>
 /// <param name="client">client</param>
 /// <param name="userName">user name</param>
 /// <param name="password">password</param>
  public ImportContactAction(String client, String userName, String password, System.Net.WebProxy oWebProxy)
  {
      this.client = client;
      this.userName = userName;
      this.password = password;
      importService = new cn.tripolis.dialogue.import.ImportService();
      importAuthInfo = new cn.tripolis.dialogue.import.AuthInfo
           {
               client = client,
               username = userName,
               password = password
           };
      importService.authInfo = importAuthInfo;
      importService.Proxy = oWebProxy;
  }