albumModel method

Future<AlbumModel> albumModel()

Implementation

Future<AlbumModel> albumModel() async {
  var helper = ExampleAlbumHelper(
      app: app,
      memberId: memberId,
      examplePhoto1AssetPath: examplePhoto1AssetPath,
      examplePhoto2AssetPath: examplePhoto2AssetPath);
  var example1 = await helper.example1();
  var example2 = await helper.example2();
  var albumModel = AlbumModel(
    documentID: constructDocumentId(
        uniqueId: uniqueId, documentId: albumComponentIdentifier),
    appId: app.documentID,
    albumEntries: [
      example1,
      example2,
    ],
    description: "Example Photos",
    conditions: StorageConditionsModel(
        privilegeLevelRequired:
            PrivilegeLevelRequiredSimple.noPrivilegeRequiredSimple),
  );
  print("return albumModel");
  return albumModel;
}