2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
15 import java.util.List;
18 * Pojo for notification model.
20 * @author Gregory Moyer - Initial contribution
22 public class NotificationModel {
23 private Integer cycles;
24 private List<Frame> frames;
27 public Integer getCycles() {
31 public void setCycles(Integer cycles) {
35 public NotificationModel withCycles(Integer cycles) {
40 public List<Frame> getFrames() {
44 public void setFrames(List<Frame> frames) {
48 public NotificationModel withFrames(List<Frame> frames) {
53 public Sound getSound() {
57 public void setSound(Sound sound) {
61 public NotificationModel withSound(Sound sound) {
67 public String toString() {
68 StringBuilder builder = new StringBuilder();
69 builder.append("NotificationModel [cycles=");
70 builder.append(cycles);
71 builder.append(", frames=");
72 builder.append(frames);
73 builder.append(", sound=");
74 builder.append(sound);
76 return builder.toString();