Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Menu {
- private int opcja;
- String restCall;
- GetIssue getIssue = new GetIssue();
- RestApiGet restApiGet = new RestApiGet();
- Login login = new Login();
- private Scanner input = new Scanner(System.in);
- private String output = restApiGet.getOutput();
- void setOpcja(){
- System.out.println("Wybierz opcję:");
- System.out.println("1-Wyświetl zgłoszenie");
- System.out.println("2-wyszukaj zgłoszenie");
- this.opcja = input.nextInt();
- switch(this.opcja)
- {
- case 1:
- System.out.println("Wybrałeś opcję wyświetlenia zgłoszenia.");
- getIssue.setIssueKey();
- System.out.println("Wybrałeś zgłoszenie: " + getIssue.getIssueKey());
- restApiGet.setOutput(login.getUsername(),login.getPassword(),"/rest/api/latest/issue/"+getIssue.getIssueKey());
- System.out.println(restApiGet.getOutput());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement