/*
 * Copyright 2019 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.snomed.datastore.config;

import java.util.List;

import com.b2international.commons.collections.Collections3;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;

/**
 * @since 7.1
 */
public class SnomedLanguageConfig {

	private String languageTag;
	private List<String> languageRefSetIds;
	
	public SnomedLanguageConfig(String code, String...refSetIds) {
		this(code, ImmutableList.copyOf(refSetIds));
	}
	
	@JsonCreator
	public SnomedLanguageConfig(
			@JsonProperty("languageTag") String languageTag, 
			@JsonProperty("languageRefSetIds") List<String> languageRefSetIds) {
		this.languageTag = languageTag;
		this.languageRefSetIds = Collections3.toImmutableList(languageRefSetIds);
	}
	
	public String getLanguageTag() {
		return languageTag;
	}
	
	public List<String> getLanguageRefSetIds() {
		return languageRefSetIds;
	}
	
}

@@ -13,16 +13,21 @@
 ght 2019
+-2021
  B2i Hea
@@ -1091,20 +1091,27 @@
 (String 
-code
+languageTag
 , String
@@ -1113,17 +1113,25 @@
 tring...
-r
+languageR
 efSetIds
@@ -1145,12 +1145,19 @@
 his(
-code
+languageTag
 , Im
@@ -1175,17 +1175,25 @@
 .copyOf(
-r
+languageR
 efSetIds

rename arguments