Last active
July 28, 2023 04:44
-
-
Save TharmiganK/3e0cbb4eadbddb64ffcc5a0c6607921a to your computer and use it in GitHub Desktop.
Conference model in Ballerina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Represents a conference | |
# | |
# + id - The id of the conference | |
# + name - The name of the conference | |
public type Conference record {| | |
readonly int id; | |
string name; | |
|}; | |
# Represents a conference request | |
# | |
# + name - The name of the conference | |
public type ConferenceRequest record {| | |
string name; | |
|}; | |
# Represents a country response | |
# | |
# + name - The name of the country | |
public type Country record {| | |
string name; | |
|}; | |
# Represents a extended conference | |
# | |
# + name - The name of the conference | |
# + country - The country of the conference | |
public type ExtendedConference record {| | |
string name; | |
string country; | |
|}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment