InternalGetLegacyUserSettingsSimple method

Future<GetUserSettingsResponse> InternalGetLegacyUserSettingsSimple(
  1. String emailAddress,
  2. List<UserSettingName> requestedSettings
)
Gets user settings from Autodiscover legacy endpoint. The email address. The requested settings.

Implementation

Future<GetUserSettingsResponse> InternalGetLegacyUserSettingsSimple(
    String emailAddress, List<UserSettingName> requestedSettings) async {
  // Cannot call legacy Autodiscover service with WindowsLive and other WSSecurity-based credentials
  // TODO implement WSSecurityBasedCredentials
//            if ((this.Credentials != null) && (this.Credentials is WSSecurityBasedCredentials))
//            {
//                throw new AutodiscoverLocalException("Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover");
//            }

  OutlookConfigurationSettings settings = await this
      .GetLegacyUserSettings<OutlookConfigurationSettings>(
          OutlookConfigurationSettings(), emailAddress);

  return settings.ConvertSettings(emailAddress, requestedSettings);
}