Пример #1
0
        public void TestMethod1()
        {
            var s = SlackResponseFactory.CreateWhereIsResponse("Robson", "Vancouver Office", new Uri("https://slack-whereis.s3.ca-central-1.amazonaws.com/maps/saturna.png"), "Meeting Room", UseStatus.Available, "Available until 5:00 PM", floor: "16th Floor");

            var j = JsonConvert.SerializeObject(s);

            ExchangeProvider p = new ExchangeProvider(new ExchangeConfig()
            {
                Server = "https://exchange.absolute.com/ews/exchange.asmx", Domain = "absolute.com", Username = "******", Password = "******"
            });
            bool isAvailable = p.GetAvailability("*****@*****.**", out string details);
        }