
com.bronto.api.operation.DeliveryGroupOperationsAsync Maven / Gradle / Ivy
The newest version!
package com.bronto.api.operation;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Future;
import com.bronto.api.AsyncHandler;
import com.bronto.api.BrontoApiAsync;
import com.bronto.api.model.DeliveryGroupIds;
import com.bronto.api.model.DeliveryGroupObject;
import com.bronto.api.model.WriteResult;
import com.bronto.api.reflect.ApiReflection;
public class DeliveryGroupOperationsAsync extends AbstractAsyncObjectOperations {
private DeliveryGroupOperations deliveryGroupOps;
public DeliveryGroupOperationsAsync(BrontoApiAsync client) {
super(DeliveryGroupObject.class, client);
}
@Override
public ApiReflection getSupportedWriteOperations() {
this.deliveryGroupOps = new DeliveryGroupOperations(client);
return deliveryGroupOps.getSupportedWriteOperations();
}
public Future addOrUpdate(List deliveryGroups) {
return callWriteAsync("addOrUpdate", deliveryGroups);
}
public Future addOrUpdate(DeliveryGroupObject...deliveryGroups) {
return addOrUpdate(Arrays.asList(deliveryGroups));
}
public Future addOrUpdate(List deliveryGroups, AsyncHandler handler) {
return callWriteAsync("addOrUpdate", deliveryGroups, handler);
}
public Future addToDeliveryGroup(DeliveryGroupObject deliveryGroup, DeliveryGroupIds ids) {
return callClientAsync("addToDeliveryGroup", deliveryGroupOps.createAddToDeliveryGroupCall(deliveryGroup, ids));
}
public Future addToDeliveryGroup(DeliveryGroupObject deliveryGroup, DeliveryGroupIds ids, AsyncHandler handler) {
return callClientAsync("addToDeliveryGroup", deliveryGroupOps.createAddToDeliveryGroupCall(deliveryGroup, ids), handler);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy