10440b6fe8c7efb6ad1e0553f9ee8a1e69485e62
[contrib/iotivity.git] / android / Base / app / src / main / java / org / iotivity / base / OCStackResult.java
1 //******************************************************************
2 //
3 // Copyright 2014 MediaTek All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 package org.iotivity.base;
22
23 public class OCStackResult {
24     /* Success status code - START HERE */
25     static final public int  OC_STACK_OK                    = 0;
26     static final public int  OC_STACK_RESOURCE_CREATED      = 1;
27     static final public int  OC_STACK_RESOURCE_DELETED      = 2;
28     /* Success status code - END HERE */
29     /* Error status code - START HERE */
30     static final public int  OC_STACK_INVALID_URI           = 3;
31     static final public int  OC_STACK_INVALID_QUERY         = 4;
32     static final public int  OC_STACK_INVALID_IP            = 5;
33     static final public int  OC_STACK_INVALID_PORT          = 6;
34     static final public int  OC_STACK_INVALID_CALLBACK      = 7;
35     static final public int  OC_STACK_INVALID_METHOD        = 8;
36     static final public int  OC_STACK_INVALID_PARAM         = 9;
37     static final public int  OC_STACK_INVALID_OBSERVE_PARAM = 10;
38     static final public int  OC_STACK_NO_MEMORY             = 11;
39     static final public int  OC_STACK_COMM_ERROR            = 12;
40     static final public int  OC_STACK_NOTIMPL               = 13;
41     static final public int  OC_STACK_NO_RESOURCE           = 14;               /* resource not found */
42     static final public int  OC_STACK_RESOURCE_ERROR        = 15;            /* ex: not supported method or interface */
43     static final public int  OC_STACK_SLOW_RESOURCE         = 16;
44     static final public int  OC_STACK_NO_OBSERVERS          = 17;              /* resource has no registered observers */
45     static final public int  OC_STACK_OBSERVER_NOT_FOUND    = 18;
46     static final public int  OC_STACK_OBSERVER_NOT_ADDED    = 19;
47     static final public int  OC_STACK_OBSERVER_NOT_REMOVED  = 20;
48     static final public int  OC_STACK_PRESENCE_STOPPED      = 21;
49     static final public int  OC_STACK_PRESENCE_DO_NOT_HANDLE = 22;
50     static final public int  OC_STACK_INVALID_OPTION        = 23;
51     static final public int  OC_STACK_MALFORMED_RESPONSE    = 24;        /* the remote reply contained malformed data */
52     static final public int  OC_STACK_ERROR                 = 25;
53     /* Error status code - END HERE */
54 }