Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Apr 10, 2024
1 parent 1a8f4a8 commit d2aeada
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ sealed interface Node {
data class Session(
override val id: String,
val title: String,
/**
* The description of the event. [description] may contain emojis and '\n' Chars but no markdown or HTML.
*
* May be null if no description is available.
*/
val description: String?,
/**
* A shorter version of description for use when real estate is scarce like watches for an example.
Expand Down Expand Up @@ -424,6 +429,11 @@ data class Venue(
return descriptions.get("\"fr\"") ?: descriptions.get("en") ?: ""
}

/**
* The description of the venue. [description] may contain emojis and '\n' Chars but no markdown or HTML.
*
* May be null if no description is available.
*/
fun description(@GraphQLDefault("\"en\"") language: String?): String {
return descriptions.get(language) ?: descriptions.get("en") ?: ""
}
Expand Down

0 comments on commit d2aeada

Please sign in to comment.