io.sphere.sdk.reviews.commands.ReviewDeleteCommand Maven / Gradle / Ivy
package io.sphere.sdk.reviews.commands;
import io.sphere.sdk.commands.DeleteCommand;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.reviews.Review;
import io.sphere.sdk.reviews.expansion.ReviewExpansionModel;
public interface ReviewDeleteCommand extends MetaModelExpansionDsl>, DeleteCommand {
static ReviewDeleteCommand of(final Versioned versioned) {
return new ReviewDeleteCommandImpl(versioned);
}
static ReviewDeleteCommand ofKey(final String key, final Long version) {
final Versioned versioned = Versioned.of("key=" + key, version);//hack for simple reuse
return of(versioned);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy