Fuel Pulse
A Java library to get the fuel prices in India by city.
Loading...
Searching...
No Matches
Main.java
Go to the documentation of this file.
1
package
io.github.amithkoujalgi.fuelprices;
2
3
import
io.github.amithkoujalgi.fuelprices.types.City;
4
import
io.github.amithkoujalgi.fuelprices.types.FuelType;
5
import
io.github.amithkoujalgi.fuelprices.types.PriceSource;
6
7
import
java.io.IOException;
8
9
public
class
Main
{
10
public
static
void
main
(String[] args)
throws
IOException {
11
PriceAPI
priceAPI =
new
PriceAPI
(
PriceSource
.
GOOD_RETURNS_IN
);
12
System.out.println(priceAPI.
fetch
(
City
.
KARNATAKA
.BENGALURU_RURAL,
FuelType
.
PETROL
));
13
}
14
}
io.github.amithkoujalgi.fuelprices.Main
Definition
Main.java:9
io.github.amithkoujalgi.fuelprices.Main.main
static void main(String[] args)
Definition
Main.java:10
io.github.amithkoujalgi.fuelprices.PriceAPI
Definition
PriceAPI.java:10
io.github.amithkoujalgi.fuelprices.PriceAPI.fetch
float fetch(String city, FuelType fuelType)
Definition
PriceAPI.java:17
io.github.amithkoujalgi.fuelprices.types.City.KARNATAKA
Definition
City.java:6
io.github.amithkoujalgi.fuelprices.types.City
Definition
City.java:4
io.github.amithkoujalgi.fuelprices.types.FuelType
Definition
FuelType.java:3
io.github.amithkoujalgi.fuelprices.types.FuelType.PETROL
PETROL
Definition
FuelType.java:4
io.github.amithkoujalgi.fuelprices.types.PriceSource
Definition
PriceSource.java:3
io.github.amithkoujalgi.fuelprices.types.PriceSource.GOOD_RETURNS_IN
GOOD_RETURNS_IN
Definition
PriceSource.java:4
src
main
java
io
github
amithkoujalgi
fuelprices
Main.java
Generated by
1.10.0