package com.monits.agilefant.model;

import android.annotation.SuppressLint;

public class UserChooser {

	private long id;

	private boolean enabled;

	private String matchedString;

	private String name;

	public UserChooser() {
	}

	public UserChooser(final long id, final boolean enabled,
			final String matchedString, final String name) {
		this.id = id;
		this.enabled = enabled;
		this.matchedString = matchedString;
		this.name = name;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(final long id) {
		this.id = id;
	}

	/**
	 * @return the enabled
	 */
	public boolean isEnabled() {
		return enabled;
	}

	/**
	 * @param enabled the enabled to set
	 */
	public void setEnabled(final boolean enabled) {
		this.enabled = enabled;
	}

	/**
	 * @param matchedString the matchedString to set
	 */
	public void setMatchedString(final String matchedString) {
		this.matchedString = matchedString;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(final String name) {
		this.name = name;
	}

	/**
	 * Checks if there a partial match.
	 * @param filterString The partial string
	 * @return True if there a partial match, false otherwise.
	 */
	@SuppressLint("DefaultLocale")
	public boolean match(final String filterString) {
		return matchedString.toLowerCase().contains(filterString.toLowerCase());
	}

}
@@ -1477,9 +1477,133 @@
 ));%0A%09%7D%0A%0A
+%09@Override%0A%09public String toString() %7B%0A%09%09// This value is shown when in landscape and using autocomplete.%0A%09%09return name;%0A%09%7D%0A
 %7D

fix autocomplete users when set responsibles to a task