CreateServiceResponse method

  1. @override
GetUserConfigurationResponse CreateServiceResponse(
  1. ExchangeService service,
  2. int responseIndex
)
override
Creates the service response. The service. Index of the response.

Implementation

@override
GetUserConfigurationResponse CreateServiceResponse(
  ExchangeService service,
  int responseIndex,
) {
  // In the case of UserConfiguration.Load(), this.userConfiguration is set.
  if (_userConfiguration == null) {
    _userConfiguration = misc.UserConfiguration.withProperties(
      service,
      _properties,
    );
    _userConfiguration!.Name = _name;
    _userConfiguration!.ParentFolderId = _parentFolderId;
  }

  return GetUserConfigurationResponse(_userConfiguration!);
}