Class KatApi

java.lang.Object
com.reign.api.kat.KatApi

public class KatApi extends Object
  • Field Details

    • host

      public static String host
    • authStr

      public static String authStr
  • Constructor Details

    • KatApi

      public KatApi()
  • Method Details

    • setAuthorization

      public static void setAuthorization(String host, String authentication)
    • setProvider

      public static void setProvider(IApiProvider provider)
      Sets the API Provider to be used when saving/loading data

      Currently only have 2 providers:
      - ApiHttpProvider: Connects to a HTTP api at a remote source
      - ApiLocalProvider: Uses a file for storage. (Should only be used in dev environments!)
    • getClient

      public static HttpClient getClient()