-
Notifications
You must be signed in to change notification settings - Fork 59
/
main.mo
34 lines (26 loc) · 923 Bytes
/
main.mo
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
import Result "mo:base/Result";
import HashMap "mo:base/HashMap";
import Types "types";
actor {
type Member = Types.Member;
type Result<Ok, Err> = Types.Result<Ok, Err>;
type HashMap<K, V> = Types.HashMap<K, V>;
public shared ({ caller }) func addMember(member : Member) : async Result<(), Text> {
return #err("Not implemented");
};
public query func getMember(p : Principal) : async Result<Member, Text> {
return #err("Not implemented");
};
public shared ({ caller }) func updateMember(member : Member) : async Result<(), Text> {
return #err("Not implemented");
};
public query func getAllMembers() : async [Member] {
return [];
};
public query func numberOfMembers() : async Nat {
return 0;
};
public shared ({ caller }) func removeMember() : async Result<(), Text> {
return #err("Not implemented");
};
};