public ScheduleLogsResult GetSchedules(ScheduleInfo userIdPumpIdStartTimestampEndTimestamp) { var scheduleInfo = userIdPumpIdStartTimestampEndTimestamp; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetSchedules(scheduleInfo.UserId, scheduleInfo.PumpId, scheduleInfo.StartTimestamp, scheduleInfo.EndTimestamp)); }
public VoltmeterReadings GetVoltmeterReadings(VoltmeterInfo userIdSiteId) { var voltmeterInfo = userIdSiteId; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetVoltmeterReadings(voltmeterInfo.UserId, voltmeterInfo.SiteId)); }
public UserActivityLogsResult GetUserActivityLogs(UserActivityInfo userIdStartTimestampEndTimestamp) { var userActivityInfo = userIdStartTimestampEndTimestamp; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetUserActivityLogs(userActivityInfo.UserId, userActivityInfo.StartTimestamp, userActivityInfo.EndTimestamp)); }
public SiteDetails GetSiteDetails(SiteDetailsInfo userIdSiteId) { var siteDetailsInfo = userIdSiteId; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetSiteDetails(siteDetailsInfo.UserId, siteDetailsInfo.SiteId)); }
public List <Cities> GetCities(CityInfo cityIdSessionId) { var cityInfo = cityIdSessionId; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetCities(cityInfo.UserId, cityInfo.SessionId)); }
public bool UpdateMotor(GensetMotorInfo userIdPumpIdAction) { var motorInfo = userIdPumpIdAction; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.UpdateMotor(motorInfo.UserId, motorInfo.PumpId, motorInfo.Action)); }
public Result AuthenticateUser(UserInfo userNamePassword) { var userInfo = userNamePassword; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.Authantication(userInfo.UserName, userInfo.Password)); }
public GensetMotorStatus GetGensetMotorStatus(PumpInfo userIdPumpId) { var pumpInfo = userIdPumpId; if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.Headers.Add("Cache-Control", "no-cache"); } var businnessLayer = new APIBusinessLayer(); return(businnessLayer.GetGensetMotorStatus(pumpInfo.UserId, pumpInfo.PumpId)); }