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

io.sphere.sdk.messages.queries.MessageQueryModelImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.messages.queries;

import io.sphere.sdk.messages.Message;
import io.sphere.sdk.queries.AnyReferenceQueryModel;
import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;

final class MessageQueryModelImpl extends ResourceQueryModelImpl implements MessageQueryModel {

    public MessageQueryModelImpl(final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    public static MessageQueryModel of() {
        return new MessageQueryModelImpl(null, null);
    }

    @Override
    public MessageTypeQueryModel type() {
        return new MessageTypeQueryModelImpl(this, "type");
    }

    @Override
    public AnyReferenceQueryModel resource() {
        return anyReferenceModel("resource");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy