com.sap.cds.services.mt.MtUnsubscribeEventContext Maven / Gradle / Ivy
/**************************************************************************
* (C) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. *
**************************************************************************/
package com.sap.cds.services.mt;
import com.sap.cds.services.EventContext;
import com.sap.cds.services.EventName;
import com.sap.cloud.mt.subscription.json.DeletePayload;
/**
* The {@link EventContext} used for the {@link MtSubscriptionService#EVENT_UNSUBSCRIBE} event.
*/
@EventName(MtSubscriptionService.EVENT_UNSUBSCRIBE)
public interface MtUnsubscribeEventContext extends EventContext {
/**
* Creates an {@link EventContext} already overlayed with this interface. The event is set to be
* {@link MtSubscriptionService#EVENT_UNSUBSCRIBE}
* @return the {@link MtUnsubscribeEventContext}
*/
static MtUnsubscribeEventContext create() {
return EventContext.create(MtUnsubscribeEventContext.class, null);
}
DeletePayload getDeletePayload();
void setDeletePayload(DeletePayload payload);
String getTenantId();
void setTenantId(String tenantId);
Boolean getDelete();
void setDelete(boolean delete);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy