import java.io.Serializable; /** * * This class stores the MMS push message's binary data. The binary data can have a * mime type and a unique ID associated with it. All of the set methods are used by * the server during message construction. All the get methods can be used by an * implementation of a push message * * @version 1.0 */ public class ContentSlide implements Serializable { private String contentId = null; // Can be name of the file also private String contentMimeType = null; private byte[] contentData = null; /** * Default Constructor for ContentSlide. */ protected ContentSlide() {} /** * Returns the binary data, as an array, associated with an MMS push message. * @return byte array containing the binary data */ public byte[] getContentData() { return contentData; } /** * Returns the unique ID associated with an MMS push message’s binary data. * @return a String ID for the binary data */ public String getContentId() { return contentId; } /** * Returns the MIME type of an MMS push message’s binary data. * @return MIME type as a String */ public String getContentMimeType() { return contentMimeType; } /** * Sets the MMS push message's binary data as an array. * @param contentData byte array containing the binary data */ public void setContentData(byte[] contentData) { this.contentData = contentData; } /** * Sets the unique ID associated with an MMS push message's binary data. * @param contentId the unique ID as a String */ public void setContentId(String contentId) { this.contentId = contentId; } /** * Sets the MIME type of an MMS push message's binary data. * @param contentMimeType the MIME type as a String */ public void setContentMimeType(String contentMimeType) { this.contentMimeType = contentMimeType; } }