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.paradoxalarm.internal.communication;
15 import org.openhab.binding.paradoxalarm.internal.communication.messages.IPPacket;
16 import org.openhab.binding.paradoxalarm.internal.model.EntityType;
19 * The {@link EpromRequest}. Request for retrieving EPROM data from Paradox system.
21 * @author Konstantin Polihronov - Initial contribution
23 public class EpromRequest extends Request {
25 private EntityType entityType;
28 public EpromRequest(int entityId, EntityType entityType, IPPacket payload, IResponseReceiver receiver) {
29 super(RequestType.EPROM, payload, receiver);
30 this.entityId = entityId;
31 this.entityType = entityType;
34 public EntityType getEntityType() {
38 public int getEntityId() {
43 public String toString() {
44 return "EpromRequest [getType()=" + getType() + ", entityType=" + entityType + ", entityId=" + entityId + "]";