All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infobip.mobile.messaging.api.messages.SyncMessagesBody Maven / Gradle / Ivy

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