generated from matheusfy/readme-template-alura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemente get episode by word and remove tests [feature]
- Loading branch information
Showing
7 changed files
with
76 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/io/github/matheusfy/screanmatch/ScreanMatchApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
src/main/java/io/github/matheusfy/screanmatch/application/Principal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
package io.github.matheusfy.screanmatch.application; | ||
|
||
import io.github.matheusfy.screanmatch.model.Episodio; | ||
import io.github.matheusfy.screanmatch.model.dtos.EpisodioDTO; | ||
import io.github.matheusfy.screanmatch.service.ConsumoApi; | ||
|
||
import java.util.List; | ||
import java.util.Scanner; | ||
import java.util.logging.Logger; | ||
|
||
public class Principal { | ||
|
||
private Scanner leitor = new Scanner(System.in); | ||
private final String URI_API = "http://www.omdbapi.com/?"; | ||
private final String API_KEY = "&apikey=35dcfa5c"; | ||
private final Scanner leitor; | ||
private ConsumoApi api; | ||
|
||
public Principal(){ | ||
this.api = new ConsumoApi(); | ||
this.api = new ConsumoApi(); | ||
this.leitor = new Scanner(System.in); | ||
} | ||
|
||
public void exibeMenu(){ | ||
System.out.println("Digite o nome da série/filme: "); | ||
String serie = leitor.nextLine(); | ||
|
||
String URI_API = "http://www.omdbapi.com/?"; | ||
String API_KEY = "&apikey=35dcfa5c"; | ||
String uri = URI_API + "t=" + serie.replace(" ", "+") + API_KEY; | ||
|
||
api.obterDado(uri); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/test/java/io/github/matheusfy/screanmatch/ScreanMatchApplicationTests.java
This file was deleted.
Oops, something went wrong.