1 /*
2  * Copyright (C) 2020 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  */
16 
17 package com.android.internal.telephony.dataconnection;
18 
19 import android.telephony.Annotation;
20 
21 /**
22  * Container of network configuration settings relevant for telephony module.
23  *
24  */
25 public class ApnConfigType {
26 
27     private final int mType;
28     private final int mPriority;
29 
ApnConfigType(@nnotation.ApnType int type, int priority)30     public ApnConfigType(@Annotation.ApnType int type, int priority) {
31         mType = type;
32         mPriority = priority;
33     }
34 
35     /**
36      * Returns the apn type of this config type
37      * @return Type of apn.
38      */
getType()39     public int getType() {
40         return mType;
41     }
42 
43     /**
44      * Returns the priority of this apn config type.
45      * @return The priority of this apn.
46      */
getPriority()47     public int getPriority() {
48         return mPriority;
49     }
50 }
51