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())); }
public Task <MobfoxReport> GetOverallReport(MobfoxApplication app = null) { return(_mobfoxService.GetReportAsync(app)); }
public static async Task <MobfoxReport> GetOverallReport(this IMobfoxService mobfox, MobfoxApplication app = null) { return(await mobfox.GetReportAsync(app)); }
public static async Task <MobfoxReport> GetThisMonthReport(this IMobfoxService mobfox, MobfoxApplication app = null) { var currentTime = DateTime.Now; return(await mobfox.GetReportAsync(app, currentTime.FirstDayOfMonth(), currentTime)); }
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())); }
public static async Task <MobfoxReport> GetReportOfDate(this IMobfoxService mobfox, DateTime date, MobfoxApplication app) { return(await mobfox.GetReportAsync(app, startDate : date, endDate : date)); }