Exemplo n.º 1
0
        public static async Task <MobfoxReport> GetLastMonthReport(this IMobfoxService mobfox, MobfoxApplication app = null)
        {
            var currentTime  = DateTime.Now;
            var previusMonth = currentTime.PreviousMonth();

            return(await mobfox.GetReportAsync(app, previusMonth.FirstDayOfMonth(), previusMonth.LastDayOfMonth()));
        }
Exemplo n.º 2
0
 public Task <MobfoxReport> GetOverallReport(MobfoxApplication app = null)
 {
     return(_mobfoxService.GetReportAsync(app));
 }
Exemplo n.º 3
0
 public static async Task <MobfoxReport> GetOverallReport(this IMobfoxService mobfox, MobfoxApplication app = null)
 {
     return(await mobfox.GetReportAsync(app));
 }
Exemplo n.º 4
0
        public static async Task <MobfoxReport> GetThisMonthReport(this IMobfoxService mobfox, MobfoxApplication app = null)
        {
            var currentTime = DateTime.Now;

            return(await mobfox.GetReportAsync(app, currentTime.FirstDayOfMonth(), currentTime));
        }
Exemplo n.º 5
0
        public static async Task <MobfoxReport> GetLastWeekReport(this IMobfoxService mobfox, MobfoxApplication app = null)
        {
            var currentTime = DateTime.Now;

            return(await mobfox.GetReportAsync(app, currentTime.FirstDayOfWeek().WeekEarlier(), currentTime.LastDayOfWeek().WeekEarlier()));
        }
Exemplo n.º 6
0
 public static async Task <MobfoxReport> GetReportOfDate(this IMobfoxService mobfox, DateTime date, MobfoxApplication app)
 {
     return(await mobfox.GetReportAsync(app, startDate : date, endDate : date));
 }