]> git.basschouten.com Git - openhab-addons.git/blob
6bb981924a5ab288bdfa8faba40514a62567821d
[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
17 /**
18  * The {@link LogonRequest}. Request for initial logon sequence.
19  *
20  * @author Konstantin Polihronov - Initial contribution
21  */
22 public class LogonRequest extends Request {
23
24     private CommunicationState logonSequenceSender;
25
26     public LogonRequest(CommunicationState logonSequenceSender, IPPacket payload) {
27         super(RequestType.LOGON_SEQUENCE, payload, logonSequenceSender);
28         this.logonSequenceSender = logonSequenceSender;
29     }
30
31     public CommunicationState getLogonSequenceSender() {
32         return logonSequenceSender;
33     }
34
35     @Override
36     public String toString() {
37         return "LogonRequest [getType()=" + getType() + ", getLogonSequenceSender()=" + getLogonSequenceSender() + "]";
38     }
39 }