package cz.vutbr.fit.iha.adapter.device.values;

import android.graphics.Color;
import cz.vutbr.fit.iha.R;

public class OnOffValue extends BaseEnumValue {

	public static final String SWITCH_ON = "ON";
	public static final String SWITCH_OFF = "OFF";

	public OnOffValue() {
		super();

		mItems.add(this.new Item(0, SWITCH_OFF, R.drawable.dev_switch_off, R.string.dev_switch_value_off, Color.RED));
		mItems.add(this.new Item(1, SWITCH_ON, R.drawable.dev_switch_on, R.string.dev_switch_value_on, Color.GREEN));
	}

}

@@ -191,18 +191,17 @@
 H_ON = %22
-ON
+1
 %22;%0A%09publ
@@ -237,19 +237,17 @@
 _OFF = %22
-OFF
+0
 %22;%0A%0A%09pub

Repair AKTOR value in defenition