Ejemplo n.º 1
0
 private void OnSubscriptionEvent(object sender, SubscriptionEventArgs e)
 {
     if (null != e)
     {
         MySubscriptionSession  session = this.FindSubcribSenssion(e.SessionId);
         SubscriptionEventTypes type    = e.Type;
         if (type != SubscriptionEventTypes.SUBSCRIPTION_OK)
         {
             if (type != SubscriptionEventTypes.UNSUBSCRIPTION_OK)
             {
                 if (type != SubscriptionEventTypes.INCOMING_NOTIFY)
                 {
                 }
             }
             else
             {
                 session.IsConnected = false;
             }
         }
         else
         {
             session.IsConnected = true;
         }
     }
 }
Ejemplo n.º 2
0
 public IntegrationResponse SubscribeEvent(SubscriptionEventTypes eventType, string filter, string callbackUrl)
 {
     object[] results = this.Invoke("SubscribeEvent", new object[] {
         eventType,
         filter,
         callbackUrl
     });
     return((IntegrationResponse)(results[0]));
 }
Ejemplo n.º 3
0
 public IntegrationResponse SubscribePostEvent(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams)
 {
     object[] results = this.Invoke("SubscribePostEvent", new object[] {
         eventType,
         filter,
         postUrl,
         postParams
     });
     return((IntegrationResponse)(results[0]));
 }
Ejemplo n.º 4
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, long sessionId, short sipCode, string phrase, byte[] content, string contentType, string strFromUri)
 {
     this.type        = type;
     this.sessionId   = sessionId;
     this.sipCode     = sipCode;
     this.phrase      = phrase;
     this.content     = content;
     this.contentType = contentType;
     this.strfromUri  = strFromUri;
 }
Ejemplo n.º 5
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, short sipCode, String phrase, byte[] content, String contentType, MySubscriptionSession.EVENT_PACKAGE_TYPE package)
     : base()
 {
     this.type = type;
     this.sipCode = sipCode;
     this.phrase = phrase;
     this.content = content;
     this.contentType = contentType;
     this.package = package;
 }
Ejemplo n.º 6
0
 public SubscriptionEventArgs(SubscriptionEventTypes type, short sipCode, String phrase, byte[] content, String contentType, MySubscriptionSession.EVENT_PACKAGE_TYPE package)
     : base()
 {
     this.type        = type;
     this.sipCode     = sipCode;
     this.phrase      = phrase;
     this.content     = content;
     this.contentType = contentType;
     this.package     = package;
 }
Ejemplo n.º 7
0
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl, object userState)
 {
     if ((this.SubscribeEventOperationCompleted == null))
     {
         this.SubscribeEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubscribeEventOperationCompleted);
     }
     this.InvokeAsync("SubscribeEvent", new object[] {
         eventType,
         filter,
         callbackUrl
     }, this.SubscribeEventOperationCompleted, userState);
 }
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams, object userState) {
     if ((this.SubscribePostEventOperationCompleted == null)) {
         this.SubscribePostEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubscribePostEventOperationCompleted);
     }
     this.InvokeAsync("SubscribePostEvent", new object[] {
                 eventType,
                 filter,
                 postUrl,
                 postParams}, this.SubscribePostEventOperationCompleted, userState);
 }
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams) {
     this.SubscribePostEventAsync(eventType, filter, postUrl, postParams, null);
 }
 public IntegrationResponse SubscribePostEvent(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams) {
     object[] results = this.Invoke("SubscribePostEvent", new object[] {
                 eventType,
                 filter,
                 postUrl,
                 postParams});
     return ((IntegrationResponse)(results[0]));
 }
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl) {
     this.SubscribeEventAsync(eventType, filter, callbackUrl, null);
 }
 public IntegrationResponse SubscribeEvent(SubscriptionEventTypes eventType, string filter, string callbackUrl) {
     object[] results = this.Invoke("SubscribeEvent", new object[] {
                 eventType,
                 filter,
                 callbackUrl});
     return ((IntegrationResponse)(results[0]));
 }
Ejemplo n.º 13
0
 /// <remarks/>
 public void SubscribePostEventAsync(SubscriptionEventTypes eventType, string filter, string postUrl, string postParams)
 {
     this.SubscribePostEventAsync(eventType, filter, postUrl, postParams, null);
 }
Ejemplo n.º 14
0
 /// <remarks/>
 public void SubscribeEventAsync(SubscriptionEventTypes eventType, string filter, string callbackUrl)
 {
     this.SubscribeEventAsync(eventType, filter, callbackUrl, null);
 }