cz.mmsparams.api.utils.MmsUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MmsParamsAPI Show documentation
Show all versions of MmsParamsAPI Show documentation
Common library for MmsParams system
The newest version!
package cz.mmsparams.api.utils;
import cz.mmsparams.api.enums.MessageClass;
import cz.mmsparams.api.enums.Priority;
import cz.mmsparams.api.websocket.model.mms.MmsSendModel;
public class MmsUtils
{
private MmsUtils()
{
}
public static final long DEFAULT_EXPIRY = 7L * 24L * 60L * 60L;
public static final long DEFAULT_DELIVERY_TIME = 0L;
public static MmsSendModel setDefaultTestProfile(final MmsSendModel mms)
{
mms.setDeliveryReport(true);
mms.setReadReport(false);
mms.setSenderVisible(true);
mms.setExpiry(DEFAULT_EXPIRY);
mms.setDeliveryTime(DEFAULT_DELIVERY_TIME);
mms.setPriority(Priority.NORMAL);
mms.setMsgClass(MessageClass.PERSONAL);
return mms;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy