Hubiquitus Android  0.3
Android client for hubiquitus protocol
ResultStatus.java
Go to the documentation of this file.
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 package org.hubiquitus.hapi.hStructures;
00021 
00028 public enum ResultStatus {
00029          
00030          NO_ERROR (0),
00031          TECH_ERROR (1),
00032          NOT_CONNECTED (3),
00033          NOT_AUTHORIZED (5),
00034          MISSING_ATTR (6),
00035          INVALID_ATTR (7),
00036          NOT_AVAILABLE (9),
00037          EXEC_TIMEOUT (10);
00038          
00039          private int value;
00040          
00041          private ResultStatus(int value) {
00042                   this.value = value;
00043          }
00044          
00048          public int value() {
00049                   return value;
00050          }
00051          
00057          public static ResultStatus constant(int value) {
00058                   ResultStatus [] _values = ResultStatus.values();
00059                   return _values[value];
00060          }
00061 }
 All Classes Namespaces Files Functions Variables