Subversion Repositories SmartDukaan

Rev

Rev 351 | Rev 495 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
116 ashish 1
namespace java in.shop2020.utils
2
namespace py shop2020.thriftpy.utils
3
 
4
/**
5
Helper service
6
created by @ashish
7
**/
8
 
121 ashish 9
struct Mail{
10
	1:list<string> to,
11
	2:string subject,
12
	3:string data,
351 ashish 13
	4:string sender,
14
	5:list<string> attachments,
15
	6:string password
121 ashish 16
}
17
 
18
struct TextMessage{
19
	1:string number,
20
	2:string message,
21
	3:i64 dispatchTime,
22
	4:i64 deliveryTime
23
}
24
 
116 ashish 25
exception HelperServiceException{
26
	1:i64 id,
27
	2:string message
28
}
29
 
121 ashish 30
struct Message{
31
	1:i64 id,
32
	2:string message
33
}
34
 
302 ashish 35
service HelperService{
116 ashish 36
 
121 ashish 37
	void sendMail(1:Mail mail) throws (1:HelperServiceException se),
38
	void sendText(1:TextMessage message) throws (1:HelperServiceException se),
39
 
351 ashish 40
	void addMessage(1:Message message) throws (1:HelperServiceException se),
121 ashish 41
	void updateMessage(1:i64 id, 2:string message) throws (1:HelperServiceException se),
351 ashish 42
	Message getMessage(1:i64 id) throws (1:HelperServiceException se),
43
	Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se)
116 ashish 44
}