/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/service/lsm/LCSEvent.java
Java | 68 lines | 25 code | 8 blank | 35 comment | 0 complexity | ecb51a3510bcbbcec36ea6c05bda91b3 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
- /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
- package org.mobicents.protocols.ss7.map.api.service.lsm;
- /**
- * LCS-Event ::= ENUMERATED {
- * emergencyCallOrigination (0),
- * emergencyCallRelease (1),
- * mo-lr (2),
- * ...,
- * deferredmt-lrResponse (3) }
- * -- exception handling:
- * -- a SubscriberLocationReport-Arg containing an unrecognized LCS-Event
- * -- shall be rejected by a receiver with a return error cause of unexpected data value
- *
- * @author amit bhayani
- *
- */
- public enum LCSEvent {
- emergencyCallOrigination(0), emergencyCallRelease(1), molr(2), deferredmtlrResponse(3);
-
- private final int event;
-
-
- private LCSEvent(int event){
- this.event = event;
- }
-
- public int getEvent(){
- return this.event;
- }
-
- public static LCSEvent getLCSEvent(int event){
- switch(event){
- case 0:
- return emergencyCallOrigination;
- case 1:
- return emergencyCallRelease;
- case 2:
- return molr;
- case 3:
- return deferredmtlrResponse;
- default:
- return null;
- }
- }
- }