| Line 41... |
Line 41... |
| 41 |
5:string state,
|
41 |
5:string state,
|
| 42 |
6:string pin,
|
42 |
6:string pin,
|
| 43 |
7:string country,
|
43 |
7:string country,
|
| 44 |
8:i64 id,
|
44 |
8:i64 id,
|
| 45 |
9:bool enabled,
|
45 |
9:bool enabled,
|
| 46 |
10:TAddressType type,
|
46 |
10:AddressType type,
|
| 47 |
11:i64 addedOn
|
47 |
11:i64 addedOn
|
| 48 |
}
|
48 |
}
|
| 49 |
|
49 |
|
| 50 |
/**
|
50 |
/**
|
| 51 |
Primary information of the user
|
51 |
Primary information of the user
|
| Line 85... |
Line 85... |
| 85 |
/**
|
85 |
/**
|
| 86 |
structure representing timestamp and ip at which user logged into the system
|
86 |
structure representing timestamp and ip at which user logged into the system
|
| 87 |
**/
|
87 |
**/
|
| 88 |
struct IPMap{
|
88 |
struct IPMap{
|
| 89 |
1:i64 timestamp
|
89 |
1:i64 timestamp
|
| 90 |
2:Stirng ip
|
90 |
2:string ip
|
| 91 |
}
|
91 |
}
|
| 92 |
|
92 |
|
| 93 |
/**
|
93 |
/**
|
| 94 |
dynamic user state
|
94 |
dynamic user state
|
| 95 |
**/
|
95 |
**/
|
| Line 101... |
Line 101... |
| 101 |
5:i64 emailVerificationSentOn,
|
101 |
5:i64 emailVerificationSentOn,
|
| 102 |
6:i64 smsVerificationSentOn,
|
102 |
6:i64 smsVerificationSentOn,
|
| 103 |
7:bool isSMSVerified,
|
103 |
7:bool isSMSVerified,
|
| 104 |
8:i64 activeSince,
|
104 |
8:i64 activeSince,
|
| 105 |
9:bool isLoggedIn,
|
105 |
9:bool isLoggedIn,
|
| 106 |
10:list<IPMap> ips
|
106 |
10:list<IPMap> ips,
|
| - |
|
107 |
11:i64 shoppingCartHandle
|
| 107 |
}
|
108 |
}
|
| 108 |
|
109 |
|
| 109 |
/**
|
110 |
/**
|
| 110 |
complete user structre
|
111 |
complete user structre
|
| 111 |
**/
|
112 |
**/
|
| Line 127... |
Line 128... |
| 127 |
UserContext getContextFromEmailOrHandle(1:string emailorhandle, 2:bool isEmail) throws (1:UserContextException ucx),
|
128 |
UserContext getContextFromEmailOrHandle(1:string emailorhandle, 2:bool isEmail) throws (1:UserContextException ucx),
|
| 128 |
UserState getState(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
129 |
UserState getState(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
| 129 |
UserPrimaryInfo getPrimaryInfo(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
130 |
UserPrimaryInfo getPrimaryInfo(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
| 130 |
UserInternalInfo getInternalInfo(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
131 |
UserInternalInfo getInternalInfo(1:i64 userId, 2:bool isSessionId) throws (1:UserContextException ucx),
|
| 131 |
UserContext getContext(1:string email, 2:string password) throws (1:AuthenticationException ax),
|
132 |
UserContext getContext(1:string email, 2:string password) throws (1:AuthenticationException ax),
|
| - |
|
133 |
bool authenticateUser(1:string handle, 2:string password, 3:bool isEmail) throws (1:AuthenticationException ax),
|
| 132 |
bool userExists(1:string email)throws (1:UserContextException ucx),
|
134 |
bool userExists(1:string email)throws (1:UserContextException ucx),
|
| 133 |
bool addIpAdressForUser(1:string ip, 2:i64 timestamp, 3:i64 userId)throws (1:UserContextException ucx),
|
135 |
bool addIpAdressForUser(1:string ip, 2:i64 timestamp, 3:i64 userId)throws (1:UserContextException ucx),
|
| 134 |
bool addAddressForUser(1:Address address, 2:i64 userid, 3:i64 timestamp)throws (1:UserContextException ucx),
|
136 |
bool addAddressForUser(1:Address address, 2:i64 userid, 3:i64 timestamp)throws (1:UserContextException ucx),
|
| 135 |
bool removeAddressForUser(1:i64 userid, 2:i64 addressId)throws (1:UserContextException ucx),
|
137 |
bool removeAddressForUser(1:i64 userid, 2:i64 addressId)throws (1:UserContextException ucx),
|
| 136 |
bool setUserAsLoggedIn(1:i64 userId, 2:i64 timestamp)throws (1:UserContextException ucx),
|
138 |
bool setUserAsLoggedIn(1:i64 userId, 2:i64 timestamp)throws (1:UserContextException ucx),
|