CallbackInfo.java revision 32dc7a6b919375aede777f3c821fa316d85449ae
1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package com.android.bluetooth.gatt;
17
18import java.util.UUID;
19
20/**
21 * Helper class that keeps track of callback parameters for app callbacks.
22 * These are held during congestion and reported when congestion clears.
23 * @hide
24 */
25/*package*/
26
27class CallbackInfo {
28    String address;
29    int status;
30    int handle;
31
32    CallbackInfo(String address, int status, int handle) {
33        this.address = address;
34        this.status = status;
35        this.handle = handle;
36    }
37
38    CallbackInfo(String address, int status) {
39        this.address = address;
40        this.status = status;
41    }
42}
43
44