|
[C#] | |
SetSearchString
(String NotificationID, String SearchString)
|
|
NotificationID |
Notification ID |
SearchString |
|
|
| //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 Phone notification object |
| PhoneRef.Phone objPhone = new PhoneRef.Phone()
; |
| string PhoneNotifID = sess.CreatePhoneNotification(SessionID); |
| int NotificationSequenceNumber; |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1
;
// using some user function |
| objPhone.SetSearchString(PhoneNotifID,NotificationSequenceNumber) ; |
| ...; |
| SaveNotificationSequenceNumber(objPhone.GetSearchString(PhoneNotifID))
;
// retrieve and save search string |
| objPhone.Release(PhoneNotifID); |
| sess.Release(SessionID); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| sess.Release(SessionID); |
| } |