blob: a50a22f68fa048b1e9d0e6d10488fd8722209025 [file] [log] [blame]
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -07001/*
2 * Copyright (c) 2016 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
17package com.android.ims.internal.uce.presence;
18
Artur Satayev74cb7192019-12-10 17:47:56 +000019import android.compat.annotation.UnsupportedAppUsage;
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -070020import android.os.Parcel;
21import android.os.Parcelable;
22
23/** @hide */
24public class PresPublishTriggerType implements Parcelable {
25
26 /** Publish Trigger Indication Definitions
27 * @hide
28 */
29
30 /** ETag expired. */
31 public static final int UCE_PRES_PUBLISH_TRIGGER_ETAG_EXPIRED = 0;
32 /** Move to LTE with VoPS disabled. */
33 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_LTE_VOPS_DISABLED = 1;
34 /** Move to LTE with VoPS enabled. */
35 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_LTE_VOPS_ENABLED = 2;
36 /** Move to eHRPD. */
37 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_EHRPD = 3;
38 /** Move to HSPA+. */
39 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_HSPAPLUS = 4;
40 /** Move to 3G. */
41 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_3G = 5;
42 /** Move to 2G. */
43 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_2G = 6;
44 /** Move to WLAN */
45 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_WLAN = 7;
46 /** Move to IWLAN */
47 public static final int UCE_PRES_PUBLISH_TRIGGER_MOVE_TO_IWLAN = 8;
48 /** Trigger is unknown. */
49 public static final int UCE_PRES_PUBLISH_TRIGGER_UNKNOWN = 9;
50
51
52
53
54 private int mPublishTriggerType = UCE_PRES_PUBLISH_TRIGGER_UNKNOWN;
55
56
57 /**
58 * Gets the publish trigger types.
59 * @hide
60 */
61 public int getPublishTrigeerType() {
62 return mPublishTriggerType;
63 }
64
65 /**
66 * Sets the publish trigger type.
67 * @hide
68 */
Mathew Inwood45321de2018-08-01 14:07:13 +010069 @UnsupportedAppUsage
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -070070 public void setPublishTrigeerType(int nPublishTriggerType) {
71 this.mPublishTriggerType = nPublishTriggerType;
72 }
73
74
75 /**
76 * Constructor for the PresPublishTriggerType class.
77 * @hide
78 */
Mathew Inwood45321de2018-08-01 14:07:13 +010079 @UnsupportedAppUsage
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -070080 public PresPublishTriggerType(){};
81
82 /** @hide */
83 public int describeContents() {
84 return 0;
85 }
86
87 /** @hide */
88 public void writeToParcel(Parcel dest, int flags) {
89 dest.writeInt(mPublishTriggerType);
90 }
91
92 /** @hide */
93 public static final Parcelable.Creator<PresPublishTriggerType> CREATOR =
94 new Parcelable.Creator<PresPublishTriggerType>() {
95
96 public PresPublishTriggerType createFromParcel(Parcel source) {
97
98 return new PresPublishTriggerType(source);
99 }
100
101 public PresPublishTriggerType[] newArray(int size) {
102
103 return new PresPublishTriggerType[size];
104 }
105 };
106
107 /** @hide */
108 private PresPublishTriggerType(Parcel source) {
109 readFromParcel(source);
110 }
111
112 /** @hide */
113 public void readFromParcel(Parcel source) {
114 mPublishTriggerType = source.readInt();
115 }
116}