Home | History | Annotate | Download | only in presence
      1 /*
      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 
     17 package com.android.ims.internal.uce.presence;
     18 
     19 import android.os.Parcel;
     20 import android.os.Parcelable;
     21 
     22 /** @hide  */
     23 public class PresTupleInfo implements Parcelable {
     24 
     25     private String mFeatureTag = "";
     26     private String mContactUri = "";
     27     private String mTimestamp = "";
     28 
     29 
     30     /**
     31      * Gets the feature tag.
     32      * @hide
     33      */
     34     public String getFeatureTag() {
     35         return mFeatureTag;
     36     }
     37 
     38     /**
     39      * Sets the feature tag.
     40      * @hide
     41      */
     42     public void setFeatureTag(String featureTag) {
     43         this.mFeatureTag = featureTag;
     44     }
     45 
     46     /**
     47      * Gets the contact URI.
     48      * @hide
     49      */
     50     public String getContactUri() {
     51         return mContactUri;
     52     }
     53     /**
     54      * Sets the contact URI.
     55      * @hide
     56      */
     57     public void setContactUri(String contactUri) {
     58         this.mContactUri = contactUri;
     59     }
     60 
     61     /**
     62      * Gets the timestamp.
     63      * @hide
     64      */
     65     public String getTimestamp() {
     66         return mTimestamp;
     67     }
     68 
     69     /**
     70      * Sets the timestamp.
     71      * @hide
     72      */
     73     public void setTimestamp(String timestamp) {
     74         this.mTimestamp = timestamp;
     75     }
     76 
     77     /**
     78      * Constructor for the PresTupleInfo class.
     79      * @hide
     80      */
     81     public PresTupleInfo(){};
     82 
     83     /** @hide */
     84     public int describeContents() {
     85         return 0;
     86     }
     87 
     88     /** @hide */
     89     public void writeToParcel(Parcel dest, int flags) {
     90         dest.writeString(mFeatureTag);
     91         dest.writeString(mContactUri);
     92         dest.writeString(mTimestamp);
     93     }
     94 
     95     /** @hide */
     96     public static final Parcelable.Creator<PresTupleInfo> CREATOR =
     97                                       new Parcelable.Creator<PresTupleInfo>() {
     98 
     99         public PresTupleInfo createFromParcel(Parcel source) {
    100             return new PresTupleInfo(source);
    101         }
    102 
    103         public PresTupleInfo[] newArray(int size) {
    104             return new PresTupleInfo[size];
    105         }
    106     };
    107 
    108     /** @hide */
    109     private PresTupleInfo(Parcel source) {
    110         readFromParcel(source);
    111     }
    112 
    113     /** @hide */
    114     public void readFromParcel(Parcel source) {
    115         mFeatureTag = source.readString();
    116         mContactUri = source.readString();
    117         mTimestamp = source.readString();
    118     }
    119 }