]> git.basschouten.com Git - openhab-addons.git/blob
32a2f6346e9c3c0588b985e3a1b113ae7f2f570c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.paradoxalarm.internal.communication;
14
15 import org.openhab.binding.paradoxalarm.internal.communication.messages.IPPacket;
16 import org.openhab.binding.paradoxalarm.internal.model.EntityType;
17
18 /**
19  * The {@link EpromRequest}. Request for retrieving EPROM data from Paradox system.
20  *
21  * @author Konstantin Polihronov - Initial contribution
22  */
23 public class EpromRequest extends Request {
24
25     private EntityType entityType;
26     private int entityId;
27
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;
32     }
33
34     public EntityType getEntityType() {
35         return entityType;
36     }
37
38     public int getEntityId() {
39         return entityId;
40     }
41
42     @Override
43     public String toString() {
44         return "EpromRequest [getType()=" + getType() + ", entityType=" + entityType + ", entityId=" + entityId + "]";
45     }
46 }