Newer
Older
algoLike.push / src / main / java / algoLike / push / GuessB.java
package algoLike.push;

import java.util.*;
import javax.ws.rs.*;
import javax.ws.rs.client.*;
import javax.ws.rs.core.*;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.core.JsonProcessingException;
import pushPullRefactor.Getter;
import pushPullRefactor.Message;
import pushPullRefactor.Resource;
import pushPullRefactor.State;

@Path("/guessB")
@Component
@Resource("guessB")
public class GuessB {
	@State
	private int value = 0;
	@PUT
	@Message({})
	public void setGuessB(@FormParam("b") int b) {
		this.value = b;
	}
	@Produces(MediaType.APPLICATION_JSON)
	@GET
	@Getter
	public int getValue() {
		return value;
	}
}