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

microsoft.dynamics.crm.entity.collection.request.ActivitypartyCollectionRequest 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.Activityparty;
import microsoft.dynamics.crm.entity.request.ActivitypartyRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;

public class ActivitypartyCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ActivitypartyCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Activityparty.class, cp -> new ActivitypartyRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public SyncerrorRequest activityParty_SyncErrors(UUID syncerrorid) {
        return new SyncerrorRequest(contextPath.addSegment("ActivityParty_SyncErrors").addKeys(new NameValue(syncerrorid, UUID.class)), Optional.empty());
    }

    public SyncerrorCollectionRequest activityParty_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("ActivityParty_SyncErrors"), Optional.empty());
    }

}