All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.sdk.domains.numbers.adapters.converters.CallbackConfigurationUpdateRequestParametersDtoConverter Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.numbers.adapters.converters;

import com.sinch.sdk.domains.numbers.models.requests.CallbackConfigurationUpdateRequestParameters;
import com.sinch.sdk.domains.numbers.models.v1.callbacks.request.CallbackConfigurationUpdateRequest;

public class CallbackConfigurationUpdateRequestParametersDtoConverter {

  public static CallbackConfigurationUpdateRequest convert(
      CallbackConfigurationUpdateRequestParameters parameters) {

    if (null == parameters) {
      return null;
    }
    CallbackConfigurationUpdateRequest.Builder dto = CallbackConfigurationUpdateRequest.builder();
    parameters.getHMACSecret().ifPresent(dto::setHmacSecret);
    return dto.build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy