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

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

The newest version!
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.Pluginassembly;
import microsoft.dynamics.crm.entity.request.PluginassemblyRequest;
import microsoft.dynamics.crm.entity.request.PlugintypeRequest;

public class PluginassemblyCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public PluginassemblyCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Pluginassembly.class, cp -> new PluginassemblyRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public PlugintypeRequest pluginassembly_plugintype(UUID plugintypeid) {
        return new PlugintypeRequest(contextPath.addSegment("pluginassembly_plugintype").addKeys(new NameValue(plugintypeid, UUID.class)), Optional.empty());
    }

    public PlugintypeCollectionRequest pluginassembly_plugintype() {
        return new PlugintypeCollectionRequest(contextPath.addSegment("pluginassembly_plugintype"), Optional.empty());
    }

}