Subversion Repositories SmartDukaan

Rev

Rev 351 | Rev 495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 351 Rev 472
Line 4... Line 4...
4
/**
4
/**
5
Helper service
5
Helper service
6
created by @ashish
6
created by @ashish
7
**/
7
**/
8
 
8
 
9
struct ItemLogistics{
-
 
10
	1:i64 warehouseId,
-
 
11
	2:i64 availability,
-
 
12
	3:i64 deliveryBy
-
 
13
}
-
 
14
 
-
 
15
struct Mail{
9
struct Mail{
16
	1:list<string> to,
10
	1:list<string> to,
17
	2:string subject,
11
	2:string subject,
18
	3:string data,
12
	3:string data,
19
	4:string sender,
13
	4:string sender,
Line 38... Line 32...
38
	2:string message
32
	2:string message
39
}
33
}
40
 
34
 
41
service HelperService{
35
service HelperService{
42
 
36
 
43
	//This call would return a map having the following 
-
 
44
	list<ItemLogistics> getLogisticsEstimation(1:i64 itemId,2:map<string,string> location) throws (1:HelperServiceException se),
-
 
45
	void sendMail(1:Mail mail) throws (1:HelperServiceException se),
37
	void sendMail(1:Mail mail) throws (1:HelperServiceException se),
46
	void sendText(1:TextMessage message) throws (1:HelperServiceException se),
38
	void sendText(1:TextMessage message) throws (1:HelperServiceException se),
47
	
39
	
48
	void addMessage(1:Message message) throws (1:HelperServiceException se),
40
	void addMessage(1:Message message) throws (1:HelperServiceException se),
49
	void updateMessage(1:i64 id, 2:string message) throws (1:HelperServiceException se),
41
	void updateMessage(1:i64 id, 2:string message) throws (1:HelperServiceException se),