Example #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()));
        }
Example #2
0
 public Task <MobfoxReport> GetOverallReport(MobfoxApplication app = null)
 {
     return(_mobfoxService.GetReportAsync(app));
 }
Example #3
0
 public static async Task <MobfoxReport> GetOverallReport(this IMobfoxService mobfox, MobfoxApplication app = null)
 {
     return(await mobfox.GetReportAsync(app));
 }
Example #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));
        }
Example #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()));
        }
Example #6
0
 public static async Task <MobfoxReport> GetReportOfDate(this IMobfoxService mobfox, DateTime date, MobfoxApplication app)
 {
     return(await mobfox.GetReportAsync(app, startDate : date, endDate : date));
 }