package com.x.collaboration.assemble.websocket.jaxrs.online;

import com.x.base.core.http.WrapOutOnline;

public class ActionGetOnlineLocal extends ActionBase {

	public WrapOutOnline execute(String person) throws Exception {
		WrapOutOnline wrap = new WrapOutOnline();
		wrap.setPerson(person);
		if (this.getOnlineLocal(person)) {
			wrap.setOnlineStatus(WrapOutOnline.status_online);
		} else {
			wrap.setOnlineStatus(WrapOutOnline.status_offline);
		}
		return wrap;
	}
}