package dev.photosync.core.provider;

import java.util.Optional;

/** One album as shown in the album picker. */
public record Album(String id, String name, int assetCount, Optional<String> coverAssetId) {

    public Album {
        coverAssetId = coverAssetId == null ? Optional.empty() : coverAssetId;
    }

    public AlbumRef ref() {
        return AlbumRef.of(id);
    }
}
