Sha256: 91b2b131f751784a0f8519e9cfd10c12daacd3467d0d41d5a3771d35292c20e7

Contents?: true

Size: 840 Bytes

Versions: 7

Compression:

Stored size: 840 Bytes

Contents

require_relative "serialization/parse_node_factory"
require_relative "serialization/parse_node_factory_registry"
require_relative "serialization/serialization_writer_factory"
require_relative "serialization/serialization_writer_factory_registry"

module MicrosoftKiotaAbstractions
  class ApiClientBuilder
    def self.register_default_serializer(factory_class)
      factory = factory_class.new()
      MicrosoftKiotaAbstractions::SerializationWriterFactoryRegistry.default_instance.content_type_associated_factories[factory.get_valid_content_type()] = factory
    end

    def self.register_default_deserializer(factory_class)
      factory = factory_class.new()
      MicrosoftKiotaAbstractions::ParseNodeFactoryRegistry.default_instance.content_type_associated_factories[factory.get_valid_content_type()] = factory
    end
  end
end
  

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
microsoft_kiota_abstractions-0.14.4 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.14.3 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.14.2 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.14.1 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.14.0 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.13.0 lib/microsoft_kiota_abstractions/api_client_builder.rb
microsoft_kiota_abstractions-0.12.0 lib/microsoft_kiota_abstractions/api_client_builder.rb