示例#1
0
        public DataTablesResult <StandupMessage> GetAll(DataTablesParam dataTableParam)
        {
            var service = new StandupService("rWhFopVMgXRBxHUQIzqvDlMHOLuYA5obelp3SOVx");
            var history = service.GetAllStandupHistory("Rave Scrum and Announcements", "Standup");
            var result  = DataTablesResult.Create(history.Select(o => new StandupMessage(o)).AsQueryable(),
                                                  dataTableParam, ArrayOutputType.ArrayOfObjects);

            return(result);
        }
示例#2
0
        private static void Main(string[] args)
        {
            IStandupService service = new StandupService("rWhFopVMgXRBxHUQIzqvDlMHOLuYA5obelp3SOVx");
            //IStandupService service = new FakeStandupService();
            var result = service.GetAllStandupHistory("Rave Scrum and Announcements", "Standup");

            Console.WriteLine("Fetched {0} Hipchat messages", result.Count);
            Console.ReadKey();
        }
示例#3
0
        private IList <IStandupMessage> GetTableData()
        {
            var             key     = ConfigurationManager.AppSettings["AuthTokens.Admin"];
            var             room    = ConfigurationManager.AppSettings["RoomName"];
            var             bot     = ConfigurationManager.AppSettings["BotName"];
            IStandupService service = new StandupService(key);
            var             result  = service.GetAllStandupHistory(room, bot);

            return(result);
        }
示例#4
0
        public DataTablesResult <StandupMessage> GetAll(DataTablesParam dataTableParam)
        {
            var service = new StandupService("rWhFopVMgXRBxHUQIzqvDlMHOLuYA5obelp3SOVx");
            //IStandupService service = new FakeStandupService();
            var history = service.GetAllStandupHistory("Rave Scrum and Announcements", "Standup");
            var result  =
                DataTablesResult.Create(
                    history.Select(o => new StandupMessage(o))
                    .AsQueryable()
                    .InterceptWith(new SetComparerExpressionVisitor(StringComparison.CurrentCultureIgnoreCase))
                    , dataTableParam, (ArrayOutputType?)null);

            return(result);
        }