public static string UpdateAlert(EUSiteSetting siteSetting, string webUrl, EUAlert alert)
 {
     SobiensAlertsWS.AlertsWebService ws = new Sobiens.Office.SharePointOutlookConnector.SobiensAlertsWS.AlertsWebService();
     ws.Credentials = SharePointManager.GetCredential(siteSetting);
     ws.Url         = webUrl + "/_layouts/AlertsWebSebService.asmx";
     return(ws.UpdateAlert(alert.ID, alert.Title, alert.ListID, alert.AlertTime, alert.EventType, alert.AlertFrequency, alert.GetFilterXML()));
 }
 public static SharePointAlertsWS.DeleteFailure[] DeleteAlert(EUSiteSetting siteSetting, string webUrl, string alertID)
 {
     SharePointAlertsWS.Alerts ws = new Sobiens.Office.SharePointOutlookConnector.SharePointAlertsWS.Alerts();
     ws.Credentials = SharePointManager.GetCredential(siteSetting);
     ws.Url         = webUrl + "/_vti_bin/alerts.asmx";
     SharePointAlertsWS.DeleteFailure[] failures = ws.DeleteAlerts(new string[] { alertID });
     return(failures);
 }
        public static List <EUAlert> GetAlerts(EUSiteSetting siteSetting, string webUrl)
        {
            SobiensAlertsWS.AlertsWebService ws = new Sobiens.Office.SharePointOutlookConnector.SobiensAlertsWS.AlertsWebService();
            ws.Credentials = SharePointManager.GetCredential(siteSetting);
            ws.Url         = webUrl + "/_layouts/AlertsWebSebService.asmx";
            XmlElement element = ws.GetMyAlerts();

            return(AlertManager.NodeToSobiensAlerts(element));
        }
        public static bool CheckSobiensAlertServiceEnability(EUSiteSetting siteSetting, string webUrl)
        {
            SobiensAlertsWS.AlertsWebService ws = new Sobiens.Office.SharePointOutlookConnector.SobiensAlertsWS.AlertsWebService();
            ws.Credentials = SharePointManager.GetCredential(siteSetting);
            ws.Url         = webUrl + "/_layouts/AlertsWebSebService.asmx";
            bool serviceExistency = false;

            try
            {
                serviceExistency = ws.CheckServiceExistency();
            }
            catch (Exception ex)
            {
            }
            return(serviceExistency);
        }