|
[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 ICQ notification |
| ICQRef.ICQ objICQ = new ICQRef.ICQ()
; |
| //Create server notification object |
| ICQNotifID = sess.CreateICQNotification(SessionID); |
| objICQ.Logon(ICQNotifID, "012345", "Password"); |
| int NotificationSequenceNumber; |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1
;
// using some user function |
| objICQ.SetSearchString(ICQNotifID,NotificationSequenceNumber) ; |
| ...; |
| SaveNotificationSequenceNumber(objICQ.GetSearchString(ICQNotifID))
;
//retrieve and save search string |
| objICQ.Release(ICQNotifID); |
| sess.Release(SessionID); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| sess.Release(SessionID); |
| } |