microsoft.dynamics.crm.entity.collection.request.PostregardingCollectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
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 microsoft.dynamics.crm.entity.Postregarding;
import microsoft.dynamics.crm.entity.request.PostRequest;
import microsoft.dynamics.crm.entity.request.PostregardingRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class PostregardingCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public PostregardingCollectionRequest(ContextPath contextPath) {
super(contextPath, Postregarding.class, cp -> new PostregardingRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public PostCollectionRequest post_PostRegardings() {
return new PostCollectionRequest(contextPath.addSegment("post_PostRegardings"));
}
public PostRequest post_PostRegardings(String postid) {
return new PostRequest(contextPath.addSegment("post_PostRegardings").addKeys(new NameValue(postid.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy