claimOwnerShipApplication method

Future<AppModel> claimOwnerShipApplication(
  1. String appId,
  2. String ownerID
)

Implementation

Future<AppModel> claimOwnerShipApplication(
    String appId, String ownerID) async {
  // add the app
  var application = AppModel(
    appStatus: AppStatus.offline,
    documentID: appId,
    ownerID: ownerID,
  );
  return await AbstractMainRepositorySingleton.singleton
      .appRepository()!
      .add(application);
}