예제 #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()));
        }
예제 #2
0
 public AccountController(IMobfoxService mobfoxService, MobfoxSessionStorage storage)
 {
     _mobfoxService = mobfoxService;
     _storage       = storage;
 }
예제 #3
0
 public ReportsController(IMobfoxService mobfoxService, DashboardStorage storage)
 {
     _mobfoxService = mobfoxService;
     _storage       = storage;
 }
 public ApplicationsController(IMobfoxService mobfoxService, MobfoxApplicationStorage storage)
 {
     _mobfoxService = mobfoxService;
     _storage       = storage;
 }
예제 #5
0
 public static async Task <MobfoxReport> GetOverallReport(this IMobfoxService mobfox, MobfoxApplication app = null)
 {
     return(await mobfox.GetReportAsync(app));
 }
예제 #6
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));
        }
예제 #7
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()));
        }
예제 #8
0
 public static async Task <MobfoxReport> GetYesterdayReport(this IMobfoxService mobfox, MobfoxApplication app = null)
 {
     return(await mobfox.GetReportOfDate(DateTime.Now.PreviousDay(), app));
 }
예제 #9
0
 public static async Task <MobfoxReport> GetTodayReport(this IMobfoxService mobfox, MobfoxApplication app = null)
 {
     return(await mobfox.GetReportOfDate(DateTime.Now, app));
 }
예제 #10
0
 public static async Task <MobfoxReport> GetReportOfDate(this IMobfoxService mobfox, DateTime date, MobfoxApplication app)
 {
     return(await mobfox.GetReportAsync(app, startDate : date, endDate : date));
 }