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

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

There is a newer version: 0.2.2
Show newest version
package microsoft.dynamics.crm.entity.collection.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

import java.util.Map;

import microsoft.dynamics.crm.complex.RetrieveTimelineWallRecordsResponse;
import microsoft.dynamics.crm.entity.Activitypointer;
import microsoft.dynamics.crm.entity.Crmbaseentity;
import microsoft.dynamics.crm.entity.request.ActivitymimeattachmentRequest;
import microsoft.dynamics.crm.entity.request.ActivitypartyRequest;
import microsoft.dynamics.crm.entity.request.ActivitypointerRequest;
import microsoft.dynamics.crm.entity.request.AppointmentRequest;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.EmailRequest;
import microsoft.dynamics.crm.entity.request.FaxRequest;
import microsoft.dynamics.crm.entity.request.LetterRequest;
import microsoft.dynamics.crm.entity.request.PhonecallRequest;
import microsoft.dynamics.crm.entity.request.QueueitemRequest;
import microsoft.dynamics.crm.entity.request.RecurrenceruleRequest;
import microsoft.dynamics.crm.entity.request.RecurringappointmentmasterRequest;
import microsoft.dynamics.crm.entity.request.SlakpiinstanceRequest;
import microsoft.dynamics.crm.entity.request.SocialactivityRequest;
import microsoft.dynamics.crm.entity.request.TaskRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class ActivitypointerCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ActivitypointerCollectionRequest(ContextPath contextPath) {
        super(contextPath, Activitypointer.class, cp -> new ActivitypointerRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public SocialactivityCollectionRequest activity_pointer_socialactivity() {
        return new SocialactivityCollectionRequest(contextPath.addSegment("activity_pointer_socialactivity"));
    }

    public SocialactivityRequest activity_pointer_socialactivity(String activityid) {
        return new SocialactivityRequest(contextPath.addSegment("activity_pointer_socialactivity").addKeys(new NameValue(activityid.toString())));
    }

    public RecurringappointmentmasterCollectionRequest activity_pointer_recurringappointmentmaster() {
        return new RecurringappointmentmasterCollectionRequest(contextPath.addSegment("activity_pointer_recurringappointmentmaster"));
    }

    public RecurringappointmentmasterRequest activity_pointer_recurringappointmentmaster(String activityid) {
        return new RecurringappointmentmasterRequest(contextPath.addSegment("activity_pointer_recurringappointmentmaster").addKeys(new NameValue(activityid.toString())));
    }

    public EmailCollectionRequest activity_pointer_email() {
        return new EmailCollectionRequest(contextPath.addSegment("activity_pointer_email"));
    }

    public EmailRequest activity_pointer_email(String activityid) {
        return new EmailRequest(contextPath.addSegment("activity_pointer_email").addKeys(new NameValue(activityid.toString())));
    }

    public QueueitemCollectionRequest activityPointer_QueueItem() {
        return new QueueitemCollectionRequest(contextPath.addSegment("ActivityPointer_QueueItem"));
    }

    public QueueitemRequest activityPointer_QueueItem(String queueitemid) {
        return new QueueitemRequest(contextPath.addSegment("ActivityPointer_QueueItem").addKeys(new NameValue(queueitemid.toString())));
    }

    public ActivitymimeattachmentCollectionRequest activity_pointer_activity_mime_attachment() {
        return new ActivitymimeattachmentCollectionRequest(contextPath.addSegment("activity_pointer_activity_mime_attachment"));
    }

    public ActivitymimeattachmentRequest activity_pointer_activity_mime_attachment(String activitymimeattachmentid) {
        return new ActivitymimeattachmentRequest(contextPath.addSegment("activity_pointer_activity_mime_attachment").addKeys(new NameValue(activitymimeattachmentid.toString())));
    }

    public FaxCollectionRequest activity_pointer_fax() {
        return new FaxCollectionRequest(contextPath.addSegment("activity_pointer_fax"));
    }

    public FaxRequest activity_pointer_fax(String activityid) {
        return new FaxRequest(contextPath.addSegment("activity_pointer_fax").addKeys(new NameValue(activityid.toString())));
    }

    public TaskCollectionRequest activity_pointer_task() {
        return new TaskCollectionRequest(contextPath.addSegment("activity_pointer_task"));
    }

    public TaskRequest activity_pointer_task(String activityid) {
        return new TaskRequest(contextPath.addSegment("activity_pointer_task").addKeys(new NameValue(activityid.toString())));
    }

    public PhonecallCollectionRequest activity_pointer_phonecall() {
        return new PhonecallCollectionRequest(contextPath.addSegment("activity_pointer_phonecall"));
    }

    public PhonecallRequest activity_pointer_phonecall(String activityid) {
        return new PhonecallRequest(contextPath.addSegment("activity_pointer_phonecall").addKeys(new NameValue(activityid.toString())));
    }

    public AppointmentCollectionRequest activity_pointer_appointment() {
        return new AppointmentCollectionRequest(contextPath.addSegment("activity_pointer_appointment"));
    }

    public AppointmentRequest activity_pointer_appointment(String activityid) {
        return new AppointmentRequest(contextPath.addSegment("activity_pointer_appointment").addKeys(new NameValue(activityid.toString())));
    }

    public LetterCollectionRequest activity_pointer_letter() {
        return new LetterCollectionRequest(contextPath.addSegment("activity_pointer_letter"));
    }

    public LetterRequest activity_pointer_letter(String activityid) {
        return new LetterRequest(contextPath.addSegment("activity_pointer_letter").addKeys(new NameValue(activityid.toString())));
    }

    public ConnectionCollectionRequest activitypointer_connections2() {
        return new ConnectionCollectionRequest(contextPath.addSegment("activitypointer_connections2"));
    }

    public ConnectionRequest activitypointer_connections2(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("activitypointer_connections2").addKeys(new NameValue(connectionid.toString())));
    }

    public SlakpiinstanceCollectionRequest slakpiinstance_activitypointer() {
        return new SlakpiinstanceCollectionRequest(contextPath.addSegment("slakpiinstance_activitypointer"));
    }

    public SlakpiinstanceRequest slakpiinstance_activitypointer(String slakpiinstanceid) {
        return new SlakpiinstanceRequest(contextPath.addSegment("slakpiinstance_activitypointer").addKeys(new NameValue(slakpiinstanceid.toString())));
    }

    public BulkdeletefailureCollectionRequest activityPointer_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(contextPath.addSegment("ActivityPointer_BulkDeleteFailures"));
    }

    public BulkdeletefailureRequest activityPointer_BulkDeleteFailures(String bulkdeletefailureid) {
        return new BulkdeletefailureRequest(contextPath.addSegment("ActivityPointer_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
    }

    public ConnectionCollectionRequest activitypointer_connections1() {
        return new ConnectionCollectionRequest(contextPath.addSegment("activitypointer_connections1"));
    }

    public ConnectionRequest activitypointer_connections1(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("activitypointer_connections1").addKeys(new NameValue(connectionid.toString())));
    }

    public AsyncoperationCollectionRequest activityPointer_AsyncOperations() {
        return new AsyncoperationCollectionRequest(contextPath.addSegment("ActivityPointer_AsyncOperations"));
    }

    public AsyncoperationRequest activityPointer_AsyncOperations(String asyncoperationid) {
        return new AsyncoperationRequest(contextPath.addSegment("ActivityPointer_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
    }

    public RecurrenceruleCollectionRequest activity_pointer_recurrencerule() {
        return new RecurrenceruleCollectionRequest(contextPath.addSegment("activity_pointer_recurrencerule"));
    }

    public RecurrenceruleRequest activity_pointer_recurrencerule(String ruleid) {
        return new RecurrenceruleRequest(contextPath.addSegment("activity_pointer_recurrencerule").addKeys(new NameValue(ruleid.toString())));
    }

    public ActivitypartyCollectionRequest activitypointer_activity_parties() {
        return new ActivitypartyCollectionRequest(contextPath.addSegment("activitypointer_activity_parties"));
    }

    public ActivitypartyRequest activitypointer_activity_parties(String activitypartyid) {
        return new ActivitypartyRequest(contextPath.addSegment("activitypointer_activity_parties").addKeys(new NameValue(activitypartyid.toString())));
    }

    @Function(name = "RetrieveTimelineWallRecords")
    @JsonIgnore
    public FunctionRequestReturningNonCollectionUnwrapped retrieveTimelineWallRecords(String fetchXml, Crmbaseentity target, Integer rollupType) {
        Preconditions.checkNotNull(fetchXml, "fetchXml cannot be null");
        Preconditions.checkNotNull(target, "target cannot be null");
        Preconditions.checkNotNull(rollupType, "rollupType cannot be null");
        Map _parameters = ParameterMap
            .put("FetchXml", "Edm.String", Checks.checkIsAscii(fetchXml))
            .put("Target", "Microsoft.Dynamics.CRM.crmbaseentity", target)
            .put("RollupType", "Edm.Int32", rollupType)
            .build();
        return new FunctionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrieveTimelineWallRecords"), RetrieveTimelineWallRecordsResponse.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy