-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Altera sdk buscando por lista de tracking codes
- Loading branch information
1 parent
59b2cf6
commit c98b948
Showing
9 changed files
with
207 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.0.12-BETA | ||
version=0.0.13-BETA |
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
59 changes: 59 additions & 0 deletions
59
src/main/java/br/com/correios/api/rastreio/model/DetalhesRastreio.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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package br.com.correios.api.rastreio.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Alexandre Gama | ||
* | ||
* @description Classe que contem todas as informacoes de um Objeto Rastreado, inclusive os eventos associados ao Objeto em questao | ||
* | ||
* @since 0.0.1-BETA | ||
*/ | ||
public class DetalhesRastreio { | ||
|
||
/** | ||
* Versão do SRO XML | ||
*/ | ||
private String versao; | ||
|
||
/** | ||
* Quantidade de objetos consultados | ||
*/ | ||
private Integer quantidade; | ||
|
||
/** | ||
* Lista de objetos rastreados | ||
*/ | ||
private List<ObjetoRastreio> objetosRastreio = new ArrayList<ObjetoRastreio>(); | ||
|
||
public String getVersao() { | ||
return versao; | ||
} | ||
|
||
public void setVersao(String versao) { | ||
this.versao = versao; | ||
} | ||
|
||
public Integer getQuantidade() { | ||
return quantidade; | ||
} | ||
|
||
public void setQuantidade(Integer quantidade) { | ||
this.quantidade = quantidade; | ||
} | ||
|
||
public void adicionaObjetoRastreio(ObjetoRastreio objetoRastreio) { | ||
this.objetosRastreio.add(objetoRastreio); | ||
} | ||
|
||
public List<ObjetoRastreio> getObjetosRastreio() { | ||
return objetosRastreio; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DetalhesRastreio [versao=" + versao + ", quantidade=" + quantidade + ", objetosRastreio=" + objetosRastreio + "]"; | ||
} | ||
|
||
} |
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
Oops, something went wrong.