![]() |
Hubiquitus Android
0.3
Android client for hubiquitus protocol
|
00001 /* 00002 * Copyright (c) Novedia Group 2012. 00003 * 00004 * This file is part of Hubiquitus. 00005 * 00006 * Hubiquitus is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * Hubiquitus is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with Hubiquitus. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 00021 package org.hubiquitus.hapi.hStructures; 00022 00029 public enum ConnectionStatus { 00030 UNKNOWN(0), 00031 CONNECTING(1), 00032 CONNECTED(2), 00033 REATTACHING(3), 00034 REATTACHED(4), 00035 DISCONNECTING(5), 00036 DISCONNECTED(6); 00037 00038 private int value; 00039 00040 private ConnectionStatus(int value) { 00041 this.value = value; 00042 } 00043 00047 public int value() { 00048 return value; 00049 } 00050 00056 public static ConnectionStatus constant(int value) { 00057 ConnectionStatus [] _values = ConnectionStatus.values(); 00058 return _values[value]; 00059 } 00060 }