Package 

Class Oasth


  • 
    public final class Oasth
    
                        

    Class used for fetching static data about the OASTH network.

    By default caching is enabled. The first time the data is downloaded it is stored in the object. This behaviour can be disabled by setting the cachingEnabled parameter on the constructor to false.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Oasth.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      Oasth(Boolean cachingEnabled)
    • Method Summary

      Modifier and Type Method Description
      final OasthData fetchData() Get the data.
      • Methods inherited from class xyz.teogramm.oasth.Oasth

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Oasth

        Oasth(Boolean cachingEnabled)
    • Method Detail

      • fetchData

         final OasthData fetchData()

        Get the data. The first time this method is run the data is fetched from the Internet. Subsequent calls return the data fetched during the first run, if caching is enabled, else they download it again.