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; } } }
public IntegrationResponse SubscribeEvent(SubscriptionEventTypes eventType, string filter, string callbackUrl) { object[] results = this.Invoke("SubscribeEvent", new object[] { eventType, filter, callbackUrl }); return((IntegrationResponse)(results[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])); }
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; }
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; }
/// <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])); }