public AbstractSearchQueryDto(ObjectMapper objectMapper, MultivaluedMap <string, string> queryParameters) { this.objectMapper = objectMapper; foreach (KeyValuePair <string, IList <string> > param in queryParameters.entrySet()) { string key = param.Key; string value = param.Value.GetEnumerator().next(); this.setValueBasedOnAnnotation(key, value); } }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: private <T> java.util.Map<String, String> getHeaders(final javax.ws.rs.core.MultivaluedMap<String, T> headers, final java.util.List<String> filter, final java.util.Collection<String> additionalFilter) private IDictionary <string, string> GetHeaders <T>(MultivaluedMap <string, T> headers, IList <string> filter, ICollection <string> additionalFilter) { IDictionary <string, string> filteredHeaders = new SortedDictionary <string, string>(); foreach (KeyValuePair <string, IList <T> > header in headers.entrySet()) { string key = header.Key; if (filter.Contains(key) || additionalFilter.Contains(key)) { string values = ""; foreach (T value in header.Value) { if (values.Length > 0) { values += ", "; } values += value.ToString(); } filteredHeaders[key] = values; } } return(filteredHeaders); }