|
| [C#] | |
| String
GetSearchString
(String NotificationID)
|
|
| NotificationID |
| Notification ID |
|
| Search string value |
|
| | //Create personalizer object and Session object |
| | PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer()
; |
| | SessionRef.Session sess = new SessionRef.Session()
; |
| | string SessionID = ""; |
| | try{ |
| | SessionID = pers.CreateSession("LogonName", "Password"); |
| | //Create NumPager notification object |
| | NumPagerRef.NumPager objNumPager = new NumPagerRef.NumPager()
; |
| | // Create server notification object |
| | string NumPagerNotifID = sess.CreateNumPagerNotification(SessionID); |
| | int NotificationSequenceNumber; |
| | NotificationSequenceNumber=GetNotificationSequenceNumber()+1
;
//using some user function |
| | objNumPager.SetSearchString(NumPagerNotifID,NotificationSequenceNumber) ; |
| | ...; |
| | SaveNotificationSequenceNumber(objNumPager.GetSearchString(NumPagerNotifID))
;
// retrieve and save search string |
| | objNumPager.Release(NumPagerNotifID); |
| | sess.Release(SessionID); |
| | } |
| | catch(Exception e){ |
| | //Print exception message e.Message |
| | sess.Release(SessionID); |
| | } |