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

com.vikingbrain.nmt.operations.setting.SetLanguageOperation Maven / Gradle / Ivy

Go to download

A Java HTTP client for consuming TheDavidBox Service API of Networked Media Tank devices

There is a newer version: 1.2.1
Show newest version
package com.vikingbrain.nmt.operations.setting;

import com.vikingbrain.nmt.operations.ModuleType;
import com.vikingbrain.nmt.operations.OperationType;
import com.vikingbrain.nmt.operations.TheDavidboxOperationFactory;

/**
 * Operation that sets the system language.
 * Execution example: http://popcorn:8008/setting?arg0=set_language&arg1=english
 * 
 * @author vikingBrain
 */
public class SetLanguageOperation extends AbstractSetLanguageOperation {

	/** Operation type. */
	private static final OperationType operationType = ModuleType.SETTING.set_language;

	/**
	 * Constructor.
	 * @param operationFactory the operation factory
	 * @param language Any options returns from ListLanguage operation
	 */
	public SetLanguageOperation(TheDavidboxOperationFactory operationFactory, String language) {
		super(operationFactory, operationType, language);				
	}

	@Override
	public String toString() {
		return "SetLanguageOperation [getLanguage()=" + getLanguage()
				+ ", getOperationType()=" + getOperationType() + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy