コード例 #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;
 }
コード例 #4
0
 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));
 }