blob: 77687efb1f629ca0394057dcf8c8337465f87947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
module com.pelagicore.test 1.0;
import common 1.0;
interface ContactService {
State state;
int intValue;
readonly string stringValue;
bool boolValue;
real realValue;
var varValue;
Contact currentContact;
common.Date today;
example.Date tomorrow;
void addContact(Contact contact);
void removeContact(Contact contact);
void updateContact(Contact contact);
list<Contact> contactList;
model<Contact> contactModel;
}
enum State {
Null,
Loading,
Ready,
Failure
}
flag Phase {
PhaseOne,
PhaseTwo,
PhaseThree
}
/*!
* The contact information
*/
struct Contact {
string name;
int age;
bool isMarried;
}
|