
org.infobip.mobile.messaging.api.messages.SyncMessagesBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-mobile-messaging-api-java Show documentation
Show all versions of infobip-mobile-messaging-api-java Show documentation
Mobile Messaging SDK for Android
The newest version!
package org.infobip.mobile.messaging.api.messages;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author pandric on 09/09/16.
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SyncMessagesBody {
String[] mIDs;
String[] drIDs;
static public SyncMessagesBody make(String[] mIDs, String[] drIDs) {
if (mIDs.length == 0 && drIDs.length == 0) {
return null;
}
SyncMessagesBody result = new SyncMessagesBody();
result.mIDs = mIDs.length > 0 ? mIDs : null;
result.drIDs = drIDs.length > 0 ? drIDs : null;
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy