Exemplo n.º 1
0
        static void Main()
        {
            var brideForeverDataProvider = new BrideForeverDataProvider(new BrideForeverClient("viktorya.tory1", "QZW17111992QZW"));
            var service = new BrideForeverService(brideForeverDataProvider, new BrideForeverDataContextProvider());

            //var result = brideForeverDataProvider.GetActiveUsers().Result;

            var job = new CountChatsStatisticsMonthly(service, new BrideForeverDataContextProvider());

            //job.ExecuteJobAsync().Wait();
            job.ExecuteAsync(new DateTime(2018, 10, 6), new DateTime(2018, 10, 7)).Wait();


            //var job = new CountUserBonusesMonthly(service, new BrideForeverDataContextProvider());
            //job.ExecuteAsync(new DateTime(2018, 9, 17), new DateTime(2018, 9, 30)).Wait();

            //var users = service.GetActiveUsers().Result;
            //var user = users.FirstOrDefault(u => u.ID == "42676");
            ////var chats = service.GetChatStatistics(new DateTime(2018, 7, 2), new DateTime(2018, 7, 2), krivko).Result;
            //var chats = service.GetCountOfSentEmails(new []{user},new DateTime(2018, 9, 2), new DateTime(2018, 9, 2)).Result;
        }
Exemplo n.º 2
0
 public CountSentEmailsMonthly(BrideForeverService brideForeverService, IDataContextProvider <BrideForeverDataContext> contextProvider)
     : base(brideForeverService, contextProvider)
 {
     _brideForeverService = brideForeverService;
 }
Exemplo n.º 3
0
 public CountChatsStatisticsDaily(BrideForeverService brideForeverService, IDataContextProvider <BrideForeverDataContext> contextProvider)
     : base(brideForeverService, contextProvider)
 {
     _brideForeverService = brideForeverService;
 }
Exemplo n.º 4
0
 protected UserBasedDailyJob(BrideForeverService brideForeverService, IDataContextProvider <T> contextProvider)
 {
     _brideForeverService = brideForeverService;
     _contextProvider     = contextProvider;
 }
Exemplo n.º 5
0
 public CountUserBonusesMonthly(BrideForeverService brideForeverService, IDataContextProvider <BrideForeverDataContext> contextProvider)
     : base(brideForeverService, contextProvider)
 {
     _brideForeverService = brideForeverService;
 }
 public BrideForeverController(BrideForeverService brideForeverService)
 {
     _brideForeverService = brideForeverService;
 }