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

microsoft.dynamics.crm.entity.collection.request.LanguagelocaleCollectionRequest Maven / Gradle / Ivy

package microsoft.dynamics.crm.entity.collection.request;

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.util.Optional;
import java.util.UUID;

import microsoft.dynamics.crm.entity.Languagelocale;
import microsoft.dynamics.crm.entity.request.KnowledgearticleRequest;
import microsoft.dynamics.crm.entity.request.LanguagelocaleRequest;

public class LanguagelocaleCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public LanguagelocaleCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Languagelocale.class, cp -> new LanguagelocaleRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public KnowledgearticleRequest knowledgearticle_languagelocaleid(UUID knowledgearticleid) {
        return new KnowledgearticleRequest(contextPath.addSegment("knowledgearticle_languagelocaleid").addKeys(new NameValue(knowledgearticleid, UUID.class)), Optional.empty());
    }

    public KnowledgearticleCollectionRequest knowledgearticle_languagelocaleid() {
        return new KnowledgearticleCollectionRequest(contextPath.addSegment("knowledgearticle_languagelocaleid"), Optional.empty());
    }

}