Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.loloof64.j2se.cling_chess_exp;
- import org.teleal.cling.binding.annotations.UpnpAction;
- import org.teleal.cling.binding.annotations.UpnpInputArgument;
- import org.teleal.cling.binding.annotations.UpnpService;
- import org.teleal.cling.binding.annotations.UpnpServiceId;
- import org.teleal.cling.binding.annotations.UpnpServiceType;
- import org.teleal.cling.binding.annotations.UpnpStateVariable;
- @UpnpService(
- serviceId=@UpnpServiceId("ChessMove"),
- serviceType=@UpnpServiceType(value="ChessMove", version=1)
- )
- public class ChessMoveService {
- @UpnpStateVariable(name="LastMove")
- private int compactedLastMove;
- @UpnpAction(name="ChangeTo")
- public void changeTo(
- @UpnpInputArgument(name="CompactedValue", stateVariable="LastMove")
- int compactedMove
- ){
- compactedLastMove = compactedMove;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement