// Path: src/main/java/com/github/baloise/rocketchatrestclient/model/Setting.java
// public class Setting {
// 	private String id;
// 	private Object value;
// 	
// 	@JsonGetter("_id")
// 	public String getId(){
// 		return id;
// 	}
// 	
// 	@JsonSetter("_id")
// 	public void setId(String id){
// 		this.id = id;
// 	}
// 	
// 	@JsonGetter("value")
// 	public Object getValue(){
// 		
// 		if (value instanceof String) {
// 			String _value = (String) value;
// 			if (Boolean.FALSE.toString().equalsIgnoreCase(_value)
// 				|| Boolean.TRUE.toString().equalsIgnoreCase(_value)) {
// 				return Boolean.valueOf((String) value);
// 			}
// 		}
// 		
// 		return value;
// 	}
// 	
// 	@JsonSetter("value")
// 	public void setValue(Object value){
// 		this.value = value;
// 	}
// 	
// }


import java.io.IOException;
import com.github.baloise.rocketchatrestclient.model.Setting;
package com.github.baloise.rocketchatrestclient;



public class RocketChatRestApiV1Settings {
	
	private RocketChatClientCallBuilder callBuilder;
	
	protected RocketChatRestApiV1Settings(RocketChatClientCallBuilder callBuilder){
		this.callBuilder = callBuilder;
	}
	
	public Setting[] list() throws IOException{
		RocketChatQueryParams rocketChatQueryParams = new RocketChatQueryParams("count", "0");
		RocketChatClientResponse res =
			this.callBuilder.buildCall(RocketChatRestApiV1.SettingsGetAll, rocketChatQueryParams);
		
		if (!res.isSuccessful())
			throw new IOException(
				"The call to get Settings was unsuccessful: \"" + res.getError() + "\"");
		
		return res.getSettings();
	}
	
// Path: src/main/java/com/github/baloise/rocketchatrestclient/model/Setting.java
// public class Setting {
// 	private String id;
// 	private Object value;
// 	
// 	@JsonGetter("_id")
// 	public String getId(){
// 		return id;
// 	}
// 	
// 	@JsonSetter("_id")
// 	public void setId(String id){
// 		this.id = id;
// 	}
// 	
// 	@JsonGetter("value")
// 	public Object getValue(){
// 		
// 		if (value instanceof String) {
// 			String _value = (String) value;
// 			if (Boolean.FALSE.toString().equalsIgnoreCase(_value)
// 				|| Boolean.TRUE.toString().equalsIgnoreCase(_value)) {
// 				return Boolean.valueOf((String) value);
// 			}
// 		}
// 		
// 		return value;
// 	}
// 	
// 	@JsonSetter("value")
// 	public void setValue(Object value){
// 		this.value = value;
// 	}
// 	
// }


// Path: src/main/java/com/github/baloise/rocketchatrestclient/RocketChatRestApiV1Settings.java
import java.io.IOException;
import com.github.baloise.rocketchatrestclient.model.Setting;

package com.github.baloise.rocketchatrestclient;



public class RocketChatRestApiV1Settings {
	
	private RocketChatClientCallBuilder callBuilder;
	
	protected RocketChatRestApiV1Settings(RocketChatClientCallBuilder callBuilder){
		this.callBuilder = callBuilder;
	}
	
	public Setting[] list() throws IOException{
		RocketChatQueryParams rocketChatQueryParams = new RocketChatQueryParams("count", "0");
		RocketChatClientResponse res =
			this.callBuilder.buildCall(RocketChatRestApiV1.SettingsGetAll, rocketChatQueryParams);
		
		if (!res.isSuccessful())
			throw new IOException(
				"The call to get Settings was unsuccessful: \"" + res.getError() + "\"");
		
		return res.getSettings();
	}
	
	public Setting getById(String settingId) throws IOException{