Merge "rcs_service_aidl: Submit 6 newly added files, which is PublicAccount, RichScreen features related. (cherry picked from commit 18ef13528050bda2e04c9514e269e9c7a7107fd7)"
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.aidl b/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.aidl
new file mode 100644
index 0000000..e80f04e
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.aidl
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.aidl.plugin.entity.pubacct;
+
+parcelable MenuInfoMode;
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.java b/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.java
new file mode 100644
index 0000000..c38b373
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/aidl/plugin/entity/pubacct/MenuInfoMode.java
@@ -0,0 +1,175 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.aidl.plugin.entity.pubacct;
+
+import android.os.Parcel;
+import android.os.Parcelable;
+
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * The Class MenuInfoMode.
+ */
+public class MenuInfoMode implements Parcelable{
+
+ /** The pa uuid. */
+ private String paUuid;
+
+ /** The menutimestamp. */
+ private String menutimestamp;
+
+ /** The menu info list. */
+ private List<MenuInfo> menuInfoList;
+
+ /**
+ * Instantiates a new menu info mode.
+ */
+ public MenuInfoMode(){
+
+ }
+
+ /**
+ * Instantiates a new menu info mode.
+ *
+ * @param source the source
+ */
+ public MenuInfoMode( Parcel source )
+ {
+ readFromParcel( source );
+ }
+
+ /* (non-Javadoc)
+ * @see android.os.Parcelable#describeContents()
+ */
+ @Override
+ public int describeContents()
+ {
+ return 0;
+ }
+
+ /**
+ * Write the menu entity to parcel stream. Pay attention to read and
+ * write variables variables sequence should be consistent or not the
+ * correct results
+ *
+ * @param dest
+ * the dest parcel stream
+ * @param flags
+ * the flags
+ */
+ @Override
+ public void writeToParcel( Parcel dest, int flags )
+ {
+ dest.writeString( paUuid );
+ dest.writeString( menutimestamp );
+ dest.writeList( menuInfoList );
+ }
+
+ /**
+ * Create the menu entity from parcel stream. Pay attention to read
+ * and write variables variables sequence should be consistent or not the
+ * correct results
+ *
+ * @param source
+ * The parcel stream
+ */
+ public void readFromParcel( Parcel source )
+ {
+ paUuid = source.readString();
+ menutimestamp = source.readString();
+ menuInfoList = new LinkedList<MenuInfo>();
+ source.readList( menuInfoList, this.getClass().getClassLoader() );
+ }
+
+ /** The parcel creator. */
+ public static final Parcelable.Creator<MenuInfoMode> CREATOR = new Parcelable.Creator<MenuInfoMode>() {
+ @Override
+ public MenuInfoMode createFromParcel( Parcel source )
+ {
+ return new MenuInfoMode( source );
+ }
+
+ @Override
+ public MenuInfoMode[] newArray( int size )
+ {
+ return new MenuInfoMode[ size ];
+ }
+ };
+
+ /**
+ * Gets the pa uuid.
+ *
+ * @return the pa uuid
+ */
+ public String getPaUuid() {
+ return paUuid;
+ }
+
+ /**
+ * Sets the pa uuid.
+ *
+ * @param paUuid the new pa uuid
+ */
+ public void setPaUuid(String paUuid) {
+ this.paUuid = paUuid;
+ }
+
+ /**
+ * Gets the menutimestamp.
+ *
+ * @return the menutimestamp
+ */
+ public String getMenutimestamp() {
+ return menutimestamp;
+ }
+
+ /**
+ * Sets the menutimestamp.
+ *
+ * @param menutimestamp the new menutimestamp
+ */
+ public void setMenutimestamp(String menutimestamp) {
+ this.menutimestamp = menutimestamp;
+ }
+
+ /**
+ * Gets the menu info list.
+ *
+ * @return the menu info list
+ */
+ public List<MenuInfo> getMenuInfoList() {
+ return menuInfoList;
+ }
+
+ /**
+ * Sets the menu info list.
+ *
+ * @param menuInfoList the new menu info list
+ */
+ public void setMenuInfoList(List<MenuInfo> menuInfoList) {
+ this.menuInfoList = menuInfoList;
+ }
+
+}
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/pubacct/MenuInfo.java b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/pubacct/MenuInfo.java
new file mode 100644
index 0000000..af3f30e
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/pubacct/MenuInfo.java
@@ -0,0 +1,260 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.api.plugin.entity.pubacct;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import android.os.Parcel;
+import android.os.Parcelable;
+
+/**
+ * <p>Title: The menu info entity</p>
+ * <p>Description: The menu info entity</p>
+ * <p>Copyright: Copyright (c) 2014</p>
+ * <p>Company: pci-suntek</p>.
+ *
+ * @author zrq
+ * @version 1.0
+ */
+public class MenuInfo implements Parcelable
+{
+
+ /** The command id. */
+ private String commandId;
+
+ /** The title. */
+ private String title;
+
+ /** The type. */
+ private int type;
+
+ /** The priority. */
+ private int priority;
+
+ /** The sub menu list. */
+ private List<MenuInfo> subMenuList;
+
+ /**
+ * Instantiates a new menu info.
+ */
+ public MenuInfo( )
+ {}
+
+ /**
+ * Instantiates a new menu info.
+ *
+ * @param source the source
+ */
+ public MenuInfo( Parcel source )
+ {
+ readFromParcel( source );
+ }
+
+ /**
+ * The parcel describe contents, defaul is 0.
+ *
+ * @return the int
+ */
+ @Override
+ public int describeContents()
+ {
+ return 0;
+ }
+
+ /**
+ * Write the menu entity to parcel stream. Pay attention to read and
+ * write variables variables sequence should be consistent or not the
+ * correct results
+ *
+ * @param dest
+ * the dest parcel stream
+ * @param flags
+ * the flags
+ */
+ @Override
+ public void writeToParcel( Parcel dest, int flags )
+ {
+ dest.writeString( commandId );
+ dest.writeString( title );
+ dest.writeInt( type );
+ dest.writeInt( priority );
+ dest.writeList( subMenuList );
+ }
+
+ /**
+ * Create the menu entity from parcel stream. Pay attention to read
+ * and write variables variables sequence should be consistent or not the
+ * correct results
+ *
+ * @param source
+ * The parcel stream
+ */
+ public void readFromParcel( Parcel source )
+ {
+ commandId = source.readString();
+ title = source.readString();
+ type = source.readInt();
+ priority = source.readInt();
+ subMenuList = new LinkedList<MenuInfo>();
+ source.readList( subMenuList, this.getClass().getClassLoader() );
+ }
+
+ /** The parcel creator. */
+ public static final Parcelable.Creator<MenuInfo> CREATOR = new Parcelable.Creator<MenuInfo>() {
+ @Override
+ public MenuInfo createFromParcel( Parcel source )
+ {
+ return new MenuInfo( source );
+ }
+
+ @Override
+ public MenuInfo[] newArray( int size )
+ {
+ return new MenuInfo[ size ];
+ }
+ };
+
+ /**
+ * Gets the command id.
+ *
+ * @return the command id
+ */
+ public String getCommandId()
+ {
+ return commandId;
+ }
+
+ /**
+ * Sets the command id.
+ *
+ * @param commandId the new command id
+ */
+ public void setCommandId( String commandId )
+ {
+ this.commandId = commandId;
+ }
+
+ /**
+ * Gets the title.
+ *
+ * @return the title
+ */
+ public String getTitle()
+ {
+ return title;
+ }
+
+ /**
+ * Sets the title.
+ *
+ * @param title the new title
+ */
+ public void setTitle( String title )
+ {
+ this.title = title;
+ }
+
+ /**
+ * Gets the type.
+ *
+ * @return the type
+ */
+ public int getType()
+ {
+ return type;
+ }
+
+ /**
+ * Sets the type.
+ *
+ * @param type the new type
+ */
+ public void setType( int type )
+ {
+ this.type = type;
+ }
+
+ /**
+ * Gets the priority.
+ *
+ * @return the priority
+ */
+ public int getPriority()
+ {
+ return priority;
+ }
+
+ /**
+ * Sets the priority.
+ *
+ * @param priority the new priority
+ */
+ public void setPriority( int priority )
+ {
+ this.priority = priority;
+ }
+
+ /**
+ * Gets the sub menu list.
+ *
+ * @return the sub menu list
+ */
+ public List<MenuInfo> getSubMenuList()
+ {
+ return subMenuList;
+ }
+
+ /**
+ * Sets the sub menu list.
+ *
+ * @param subMenuList the new sub menu list
+ */
+ public void setSubMenuList( List<MenuInfo> subMenuList )
+ {
+ this.subMenuList = subMenuList;
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuffer sbuffer = new StringBuffer();
+ sbuffer.append("commandId=").append(this.commandId)
+ .append(",title=").append(this.title)
+ .append(",type=").append(this.type)
+ .append(",priority=").append(this.priority)
+ ;
+ if(null != this.subMenuList && this.subMenuList.size() > 0){
+ sbuffer.append(",subMenuList=").append("[");
+ for(MenuInfo menu : this.subMenuList){
+ sbuffer.append(menu.toString());
+ }
+ sbuffer.append("]");
+ }
+
+ return sbuffer.toString();
+ }
+
+}
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.aidl b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.aidl
new file mode 100644
index 0000000..164a127
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.aidl
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.api.plugin.entity.richscrn;
+
+parcelable PhoneList;
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.java b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.java
new file mode 100644
index 0000000..c7f032b
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/plugin/entity/richscrn/PhoneList.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.api.plugin.entity.richscrn;
+
+import java.util.ArrayList;
+
+import android.os.Parcel;
+import android.os.Parcelable;
+
+/**
+ * <p>
+ * Title: The PhoneList entity
+ * </p>
+ * <p>
+ * Description: the Phone List entity
+ * </p>
+ * <p>
+ * Copyright: Copyright (c) 2014
+ * </p>
+ * <p>
+ * Company: pci-suntek
+ * </p>
+ *
+ * @author zrq
+ * @version 1.0
+ *
+ */
+public class PhoneList implements Parcelable
+{
+
+
+ /** The phone list . */
+ private ArrayList<String> phoneList;
+
+ public ArrayList<String> getPhoneList() {
+ return phoneList;
+ }
+
+ public void setPhoneList(ArrayList<String> phoneList) {
+ this.phoneList = phoneList;
+ }
+
+ /**
+ * Instantiates a new phone list.
+ */
+ public PhoneList()
+ {}
+
+ /**
+ * Instantiates a new phone list.
+ *
+ * @param source
+ * the source
+ */
+ public PhoneList( Parcel source )
+ {
+ readFromParcel( source );
+ }
+
+ /**
+ * The parcel describe contents, defaul is 0.
+ *
+ * @return the int
+ */
+ @Override
+ public int describeContents()
+ {
+ return 0;
+ }
+
+ /**
+ * Write the result entity to parcel stream. Pay attention to read and write
+ * variables variables sequence should be consistent or not the correct
+ * results
+ *
+ * @param dest
+ * the dest parcel stream
+ * @param flags
+ * the flags
+ */
+ @Override
+ public void writeToParcel( Parcel dest, int flags )
+ {
+ dest.writeStringList(phoneList);
+ }
+
+ /**
+ * Create the result entity from parcel stream. Pay attention to read and
+ * write variables variables sequence should be consistent or not the
+ * correct results
+ *
+ * @param source
+ * The parcel stream
+ */
+ public void readFromParcel( Parcel source )
+ {
+ phoneList = source.createStringArrayList();
+ }
+
+ /** The parcel creator. */
+ public static final Parcelable.Creator<PhoneList> CREATOR = new Parcelable.Creator<PhoneList>() {
+ @Override
+ public PhoneList createFromParcel( Parcel source )
+ {
+ return new PhoneList( source );
+ }
+
+ @Override
+ public PhoneList[] newArray( int size )
+ {
+ return new PhoneList[ size ];
+ }
+ };
+
+
+
+
+}
diff --git a/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/provider/model/CloudFileMessage.java b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/provider/model/CloudFileMessage.java
new file mode 100644
index 0000000..94f1903
--- /dev/null
+++ b/rcs_service_aidl/src/com/suntek/mway/rcs/client/api/provider/model/CloudFileMessage.java
@@ -0,0 +1,166 @@
+/*
+ * Copyright (c) 2014 pci-suntektech Technologies, Inc. All Rights Reserved.
+ * pci-suntektech Technologies Proprietary and Confidential.
+ *
+ * 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.suntek.mway.rcs.client.api.provider.model;
+
+import android.os.Parcel;
+import android.os.Parcelable;
+
+/**
+ * The Class CloudFileMessage.
+ */
+public class CloudFileMessage implements Parcelable{
+
+ /** The file name. */
+ private String fileName;
+
+ /** The file size. */
+ private long fileSize;
+
+ /** The share url. */
+ private String shareUrl;
+
+ /**
+ * Instantiates a new cloud file message.
+ */
+ public CloudFileMessage(){}
+
+ /**
+ * Instantiates a new cloud file message.
+ */
+ public CloudFileMessage(String fileName, long fileSize, String shareUrl){
+ this.fileName = fileName;
+ this.fileSize = fileSize;
+ this.shareUrl = shareUrl;
+ }
+
+ /**
+ * Instantiates a new cloud file message.
+ *
+ * @param source the source
+ */
+ public CloudFileMessage( Parcel source )
+ {
+ readFromParcel( source );
+ }
+
+ /* (non-Javadoc)
+ * @see android.os.Parcelable#describeContents()
+ */
+ @Override
+ public int describeContents() {
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int)
+ */
+ @Override
+ public void writeToParcel(Parcel dest, int flags) {
+ dest.writeString( fileName );
+ dest.writeLong( fileSize );
+ dest.writeString( shareUrl );
+ }
+
+ /**
+ * Read from parcel.
+ *
+ * @param source the source
+ */
+ public void readFromParcel( Parcel source )
+ {
+ fileName = source.readString();
+ fileSize = source.readLong();
+ shareUrl = source.readString();
+ }
+
+ /** The parcel creator. */
+ public static final Parcelable.Creator<CloudFileMessage> CREATOR = new Parcelable.Creator<CloudFileMessage>() {
+ @Override
+ public CloudFileMessage createFromParcel( Parcel source )
+ {
+ return new CloudFileMessage( source );
+ }
+
+ @Override
+ public CloudFileMessage[] newArray( int size )
+ {
+ return new CloudFileMessage[ size ];
+ }
+ };
+
+
+ /**
+ * Gets the file name.
+ *
+ * @return the file name
+ */
+ public String getFileName() {
+ return fileName;
+ }
+
+ /**
+ * Sets the file name.
+ *
+ * @param fileName the new file name
+ */
+ public void setFileName(String fileName) {
+ this.fileName = fileName;
+ }
+
+ /**
+ * Gets the file size.
+ *
+ * @return the file size
+ */
+ public long getFileSize() {
+ return fileSize;
+ }
+
+ /**
+ * Sets the file size.
+ *
+ * @param fileSize the new file size
+ */
+ public void setFileSize(long fileSize) {
+ this.fileSize = fileSize;
+ }
+
+ /**
+ * Gets the share url.
+ *
+ * @return the share url
+ */
+ public String getShareUrl() {
+ return shareUrl;
+ }
+
+ /**
+ * Sets the share url.
+ *
+ * @param shareUrl the new share url
+ */
+ public void setShareUrl(String shareUrl) {
+ this.shareUrl = shareUrl;
+ }
+
+}