Skip to content

Instantly share code, notes, and snippets.

@TharmiganK
Last active July 28, 2023 04:44
Show Gist options
  • Save TharmiganK/3e0cbb4eadbddb64ffcc5a0c6607921a to your computer and use it in GitHub Desktop.
Save TharmiganK/3e0cbb4eadbddb64ffcc5a0c6607921a to your computer and use it in GitHub Desktop.
Conference model in Ballerina
# 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