Class BitwardsAdminService

java.lang.Object
fi.bitwards.service.BitwardsAdminService

public class BitwardsAdminService extends Object
BitwardsAdminService provides utility functions for accessing dedicated admin services in the Bitwards backend server.
  • Method Details

    • getInstance

      public static BitwardsAdminService getInstance(BitwardsService service)
      Get instance of BitwardsAdminService, which is a singleton.
      Parameters:
      service - the BitwardsService instance
      Returns:
      the BitwardsAdminService instance (singleton)
    • getCompanyNfcUrlsList

      public List<BitwardsAdminService.CompanyNfcUrls> getCompanyNfcUrlsList() throws BitwardsException
      Get list of CompanyNfcUrls list. This is a synchronous call and it should not be called using main UI thread.
      Returns:
      the list of CompanyNfcUrls that current admin has access to
      Throws:
      BitwardsException - if an error occured
    • getCompanyNfcUrlsListAsync

      public void getCompanyNfcUrlsListAsync(BitwardsAdminService.BitwardsAdminCallback callback)
      Get list of CompanyNfcUrls list. This an asynchronous call, and the list is returned using BitwardsAdminCallback, where the onSuccess method returns the list. The Object needs to be cast to List<CompanyNfcUrls> instance.
      Parameters:
      callback - the BitwardsAdminCallback instance, where the list is returned by onSuccess method, and the Obje