summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/user-models.ice
blob: 0cc00a13743735d81948ec773919b79cee4b9718 (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
#ifndef GENTOO_USER_MODELS
#define GENTOO_USER_MODELS

[	"slicer:include:boost/date_time/posix_time/posix_time.hpp" ]
module Gentoo {
	class User {
		int userid;
		string username;
		string userrealname;
		string useremail;
		[	"slicer:conversion:boost.posix_time.ptime:boost.posix_time.to_iso_extended_string:boost.posix_time.time_from_string:nodeclare" ]
		string signedup;
		[	"slicer:conversion:boost.posix_time.ptime:boost.posix_time.to_iso_extended_string:boost.posix_time.time_from_string:nodeclare" ]
		optional(0) string lastmailshot;
	};

	class NewUser extends User {
		string verifyguid;
	};

	exception InvalidCredentials { };
	exception DuplicateDetails { };
	exception Rejected { };
};

#endif