Ejemplo n.º 1
0
        private Silanis.ESL.API.Callback CreateTypicalAPICallback()
        {
            Callback callback = new Callback();

            callback.Url = "callback url";
            callback.AddEvent(NotificationEvent.DOCUMENT_SIGNED.getApiValue());
            callback.AddEvent(NotificationEvent.PACKAGE_CREATE.getApiValue());
            callback.AddEvent(NotificationEvent.PACKAGE_TRASH.getApiValue());

            return(callback);
        }
Ejemplo n.º 2
0
        private Silanis.ESL.API.Callback CreateTypicalAPICallback()
        {
            Callback callback = new Callback();

            callback.Url = "callback url";
            callback.AddEvent(CallbackEvent.DOCUMENT_SIGNED);
            callback.AddEvent(CallbackEvent.PACKAGE_CREATE);
            callback.AddEvent(CallbackEvent.PACKAGE_TRASH);

            return(callback);
        }
Ejemplo n.º 3
0
        internal Callback ToAPICallback()
        {
            Callback callback = new Callback();

            callback.Url = url;
            foreach (NotificationEvent notificationEvent in notificationEvents)
            {
                callback.AddEvent(ToAPICallbackEvent(notificationEvent));
            }
            return(callback);
        }
Ejemplo n.º 4
0
        public Silanis.ESL.API.Callback ToAPICallback()
        {
            if (sdkEventNotificationConfig == null)
            {
                return(apiCallback);
            }

            Callback callback = new Callback();

            callback.Url = sdkEventNotificationConfig.Url;
            foreach (NotificationEvent notificationEvent in sdkEventNotificationConfig.NotificationEvents)
            {
                callback.AddEvent(new EventNotificationConverter(notificationEvent).ToAPICallbackEvent());
            }

            return(callback);
        }