// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/game/Player.java
// @Getter
// @Builder
// @AllArgsConstructor
// public class Player implements Serializable {
// 
//     private String username;
//     private String image;
//     private String url;
// }


import be.ordina.jworks.rpsls.game.Player;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionRepository;
import org.springframework.social.connect.NotConnectedException;
import org.springframework.social.twitter.api.Twitter;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpSession;
package be.ordina.jworks.rpsls.controller;



@Slf4j
@RestController
@RequestMapping("/game/player")
public class PlayerController {

    private final ConnectionRepository connectionRepository;

    @Autowired
    public PlayerController(final ConnectionRepository connectionRepository) {
        this.connectionRepository = connectionRepository;
    }

    @RequestMapping(method = RequestMethod.GET)
// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/game/Player.java
// @Getter
// @Builder
// @AllArgsConstructor
// public class Player implements Serializable {
// 
//     private String username;
//     private String image;
//     private String url;
// }


// Path: rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/controller/PlayerController.java
import be.ordina.jworks.rpsls.game.Player;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionRepository;
import org.springframework.social.connect.NotConnectedException;
import org.springframework.social.twitter.api.Twitter;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpSession;

package be.ordina.jworks.rpsls.controller;



@Slf4j
@RestController
@RequestMapping("/game/player")
public class PlayerController {

    private final ConnectionRepository connectionRepository;

    @Autowired
    public PlayerController(final ConnectionRepository connectionRepository) {
        this.connectionRepository = connectionRepository;
    }

    @RequestMapping(method = RequestMethod.GET)
    public ResponseEntity<Player> userSession(final HttpSession session) {