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

io.leopard.web.mvc.ListJsonView Maven / Gradle / Ivy

The newest version!
package io.leopard.web.mvc;

import java.util.LinkedHashMap;
import java.util.Map;

public class ListJsonView extends JsonView {

	private boolean next;

	public ListJsonView(Object data, boolean next) {
		super(data);
		this.next = next;
	}

	public boolean isNext() {
		return next;
	}

	public void setNext(boolean next) {
		this.next = next;
	}

	/**
	 * 返回结果.
	 * 
	 * @return
	 */
	@Override
	protected Map getResult() {
		Map map = new LinkedHashMap();
		map.put("status", this.getStatus());
		map.put("message", "");
		map.put("next", this.isNext());
		map.put("data", this.getData());

		return map;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy