mail(tokenValue.user.email, message.to, message.subj, message.title);
tokenValue.device.dataReceivedAt = now; String body = makeBody(dash, deviceId, pin, pinType, pinValue);
@GET @Path("{token}/update/{pin}") @Consumes(value = MediaType.APPLICATION_JSON) @Metric(HTTP_UPDATE_PIN_DATA) public Response updateWidgetPinDataViaGet(@PathParam("token") String token, @PathParam("pin") String pinString, @QueryParam("value") String[] pinValues, @EnumQueryParam(WidgetProperty.class) AbstractMap.SimpleImmutableEntry<WidgetProperty, String> widgetProperty) { if (pinValues != null) { return updateWidgetPinData(token, pinString, pinValues); } if (widgetProperty != null) { return updateWidgetProperty(token, pinString, widgetProperty.getKey(), widgetProperty.getValue()); } return badRequest("Wrong request format."); }
HttpAPILogic httpAPILogic = new HttpAPILogic(holder); NoMatchHandler noMatchHandler = new NoMatchHandler(); BaseWebSocketUnificator baseWebSocketUnificator = new BaseWebSocketUnificator() {
@PUT @Path("{token}/update/{pin}") @Consumes(value = MediaType.APPLICATION_JSON) @Metric(HTTP_UPDATE_PIN_DATA) public Response updateWidgetPinDataNew(@PathParam("token") String token, @PathParam("pin") String pinString, String[] pinValues) { return updateWidgetPinData(token, pinString, pinValues); }
var httpAPILogic = new HttpAPILogic(holder); var noMatchHandler = new NoMatchHandler(); var webSocketHandler = new WSHandler(stats);
user.profile.update(dash, deviceId, pin, pinType, pinsData[0].value, now); String body = makeBody(dash, deviceId, pin, pinType, pinsData[0].value);