getLottery

suspend fun getLottery(lotteryId: String): Lottery?

Gets a Lottery object from the database given its lotteryId.

Return

The Lottery object with the specified lotteryId if it exists. null otherwise.

Parameters

lotteryId

The lotteryId to search for.