Subversion Repositories SmartDukaan

Rev

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

Rev 1590 Rev 1599
Line 22... Line 22...
22
exception UserCommunicationException{
22
exception UserCommunicationException{
23
	1:i64 id,
23
	1:i64 id,
24
	2:string message
24
	2:string message
25
}
25
}
26
 
26
 
-
 
27
enum UserType{
-
 
28
	USER = 0,
-
 
29
	ANONYMOUS = 1 
-
 
30
}
-
 
31
 
27
enum AddressType{
32
enum AddressType{
28
	WORK = 0,
33
	WORK = 0,
29
	HOME = 1
34
	HOME = 1
30
}
35
}
31
 
36
 
Line 344... Line 349...
344
	bool updateMyResearch(1:i64 userId, 2:i64 itemId) throws (1:WidgetException scx),
349
	bool updateMyResearch(1:i64 userId, 2:i64 itemId) throws (1:WidgetException scx),
345
	void deleteItemFromMyResearch(1:i64 userId, 2:i64 itemId) throws (1:WidgetException scx),
350
	void deleteItemFromMyResearch(1:i64 userId, 2:i64 itemId) throws (1:WidgetException scx),
346
		
351
		
347
	void updateBrowseHistory(1:i64 userId, 2:i64 itemId),
352
	void updateBrowseHistory(1:i64 userId, 2:i64 itemId),
348
	Widget getBrowseHistory(1:i64 userId) throws (1:WidgetException scx),
353
	Widget getBrowseHistory(1:i64 userId) throws (1:WidgetException scx),
349
	void mergeBrowseHistory(1:i64 fromUserId, 2:i64 toUserId)
354
	void mergeBrowseHistory(1:i64 fromUserId, 2:i64 toUserId),
-
 
355
	
-
 
356
	/**
-
 
357
	Returns number of registered users.
-
 
358
	If userType = null, then it returns count of all users, including anonymous
-
 
359
	If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
-
 
360
	If userType = UserType.USER, then it returns count of non-anonymous users only
-
 
361
	*/
-
 
362
	i64 getUserCount(1:UserType userType)
-
 
363
	
350
	
364
	
351
	/** Masking right now. May be used later.	
365
	/** Masking right now. May be used later.	
352
	void addWidget(1:Widget widget) throws (1:WidgetException scx),
366
	void addWidget(1:Widget widget) throws (1:WidgetException scx),
353
	void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
367
	void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
354
	void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
368
	void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
355
	void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
369
	void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
356
	void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
370
	void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
357
	Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
371
	Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
358
	*/
372
	*/
-
 
373
	
-
 
374
	
359
}
375
}
360
 
376