org.openmuc.jdlms.internal.ReleaseRespReason Maven / Gradle / Ivy
/*
* Copyright 2012-20 Fraunhofer ISE
*
* This file is part of jDLMS.
* For more information visit http://www.openmuc.org
*
* jDLMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* jDLMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with jDLMS. If not, see .
*
*/
package org.openmuc.jdlms.internal;
import org.openmuc.jdlms.internal.asn1.iso.acse.ReleaseResponseReason;
public enum ReleaseRespReason {
NORMAL(0),
NOT_FINISHED(1),
USER_DEFINED(2);
private long code;
private ReleaseRespReason(long code) {
this.code = code;
}
public ReleaseResponseReason toDlmsReason() {
return new ReleaseResponseReason(code);
}
}