Changed the way that the covid case data is gathered and sent in the getLatestChanges function.
This enables the program to have a number of possible future uses, for example it could gather information on cases (confirmed, deaths, and recovered) per day, or for a specific location. This is made much easier with the Builder design pattern.
Using a constructor that can access a specified format, while following the builder design format. This way other constructors can reorder or change the functions used, but the format remains the same.
Changed the way that the covid case data is gathered and sent in the getLatestChanges function.
This enables the program to have a number of possible future uses, for example it could gather information on cases (confirmed, deaths, and recovered) per day, or for a specific location. This is made much easier with the Builder design pattern.
Using a constructor that can access a specified format, while following the builder design format. This way other constructors can reorder or change the functions used, but the format remains the same.