GetUserSettingsWithSmptAddresses method

Future<GetUserSettingsResponseCollection> GetUserSettingsWithSmptAddresses(
  1. List<String> smtpAddresses,
  2. List<UserSettingName> settings
)
The SMTP addresses of the users. The settings.

Implementation

/// </summary>
/// <param name="smtpAddresses">The SMTP addresses of the users.</param>
/// <param name="settings">The settings.</param>
/// <returns></returns>
Future<GetUserSettingsResponseCollection> GetUserSettingsWithSmptAddresses(
    List<String> smtpAddresses, List<UserSettingName> settings) {
  EwsUtilities.ValidateParam(smtpAddresses, "smtpAddresses");
  EwsUtilities.ValidateParam(settings, "settings");

  return this.GetSettings<GetUserSettingsResponseCollection, UserSettingName>(
      smtpAddresses, settings, null, this._InternalGetUserSettings, () {
    return EwsUtilities.DomainFromEmailAddress(smtpAddresses[0]);
  });
}