/*
 *  Copyright (C) 2014 Copyright Citrix Systems, Inc.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy of 
 *  this software and associated documentation files (the "Software"), to deal in 
 *  the Software without restriction, including without limitation the rights to 
 *  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
 *  of the Software, and to permit persons to whom the Software is furnished to 
 *  do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all 
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
 *  SOFTWARE.
 */
package com.podio.sdk.domain;

import com.podio.sdk.internal.Utils;

public class Presence {
    private final String ref_type = null;
    private final Long ref_id = null;
    private final Long user_id = null;
    private final String signature = null;

    public String getRef_type() {
        return ref_type;
    }

    public long getRefId() {
        return Utils.getNative(ref_id, -1L);
    }

    public long getUserId() {
        return Utils.getNative(user_id, -1L);
    }

    public String getSignature() {
        return signature;
    }
}

@@ -1187,16 +1187,73 @@
 omain;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 import c
@@ -1308,199 +1308,1156 @@
 nce 
+implements Parcelable 
 %7B%0A
+%0A
     p
-rivate final String ref_type = null;%0A    private final Long ref_id = null;%0A    private final Long user_id = null;%0A    private final String signature = null;%0A%0A    public String
+ublic static final Parcelable.Creator%3CPresence%3E CREATOR = new Parcelable.Creator%3CPresence%3E() %7B%0A        public Presence createFromParcel(Parcel in) %7B%0A            return new Presence(in);%0A        %7D%0A%0A        public Presence%5B%5D newArray(int size) %7B%0A            return new Presence%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A    private final Long ref_id;%0A    private final Long user_id;%0A    private final String ref_type;%0A    private final String signature;%0A%0A    private Presence(Parcel parcel) %7B%0A        this.ref_id = parcel.readLong();%0A        this.user_id = parcel.readLong();%0A        this.ref_type = parcel.readString();%0A        this.signature = parcel.readString();%0A    %7D%0A%0A    private Presence() %7B%0A        this.ref_id = null;%0A        this.user_id = null;%0A        this.ref_type = null;%0A        this.signature = null;%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeLong(ref_id);%0A        dest.writeLong(user_id);%0A        dest.writeString(ref_type);%0A        dest.writeString(signature);%0A    %7D%0A%0A    public Type
  getRef
-_t
+T
 ype(
@@ -2472,24 +2472,222 @@
     
-return ref_type;
+try %7B%0A            return Type.valueOf(ref_type);%0A        %7D catch (NullPointerException e) %7B%0A            return Type.unknown;%0A        %7D catch (IllegalArgumentException e) %7B%0A            return Type.unknown;%0A        %7D
 %0A   
@@ -2921,10 +2921,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Make Presence domain object Parcelable.