Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

melizeche/dolarpy-wrapper-java

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dolarpy-wrapper-java

API wrapper for DolarPy https://dolar.melizeche.com https://github.com/melizeche/dolarPy

Install

TODO

Usage

import com.melizeche.dolarpy.DolarPy

DolarPy dolar = new DolarPy();

dolar.getProvidersList() // 'bcp', 'maxicambios', 'cambioschaco', etc...
dolar.get() // Returns a Provider Object. default: BCP
dolar.get("maxicambios") // Returns Provider: maxicambios Object
dolar.get("maxicambios").getVenta() //Returns BigDecimal buy value from cambioschaco
dolar.getCompra() // Returns BigDecimal buy value from defaul Provider(bcp)
dolar.getCompra("cambioschaco") // Returns BigDecimal buy value from cambioschaco
dolar.getVenta("amabay") // Returns BigDecimal sell value from Amambay
dolar.get().getUpdated() // Returns LocalDateTime timestamp

Provider Object properties and methods

    private String name;
    private BigDecimal compra;
    private BigDecimal venta;
    private LocalDateTime updated;

    public String getName();
    public void setName(String name);
    public BigDecimal getCompra();
    public void setCompra(BigDecimal compra);
    public BigDecimal getVenta();
    public void setVenta(BigDecimal venta);
    public LocalDateTime getUpdated();
    public void setUpdated(LocalDateTime updated);

Requirements

  • Java 8
  • Gson 2.8.1

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

TODO

  • Testing
  • Proper Extend documentation
  • More API methods

Credits

  • Marcelo Elizeche Landó

License

This project is licensed under the terms of the Apache 2.0 License - see the LICENSE file for details

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.