summaryrefslogtreecommitdiff
path: root/tests/in/com.pelagicore.test.qface
blob: a5be5189cf96d1a51d5f5427b67911c40f8ac1e1 (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 = "2";
  readonly string stringValue = "hello";
  bool boolValue = "true";
  real realValue = "0.1";
  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 = "name";
    int age = "99";
    bool isMarried = "false";
}