bloombox / bloombox.client.services.menu / MenuClient / MenuContext

MenuContext

data class MenuContext (source)

Specifies contextual information for a menu operation. Required context items (aside from the standard API key required for all operations) are the partner code and location code to consider when downloading menu data.

Constructors

<init>

MenuContext(partner: String? = null, location: String? = null)

Specifies contextual information for a menu operation. Required context items (aside from the standard API key required for all operations) are the partner code and location code to consider when downloading menu data.

Companion Object Functions

defaultContext

fun defaultContext(): MenuContext

Generate a default menu context. This yields to the outer API client to resolve the desired partner and location codes before submitting a request. One way or another they must be defined, or that's an error.