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

microsoft.dynamics.crm.entity.request.AuditRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.annotation.Function;
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.RetrieveAuditDetailsResponse;
import microsoft.dynamics.crm.entity.Audit;
import microsoft.dynamics.crm.schema.SchemaInfo;

@JsonIgnoreType
public class AuditRequest extends EntityRequest {

    public AuditRequest(ContextPath contextPath) {
        super(Audit.class, contextPath, SchemaInfo.INSTANCE);
    }

    public SystemuserRequest callinguserid() {
        return new SystemuserRequest(contextPath.addSegment("callinguserid"));
    }

    public SystemuserRequest userid() {
        return new SystemuserRequest(contextPath.addSegment("userid"));
    }

    @Function(name = "RetrieveAuditDetails")
    @JsonIgnore
    public FunctionRequestReturningNonCollectionUnwrapped retrieveAuditDetails() {
        Map _parameters = ParameterMap.empty();
        return new FunctionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrieveAuditDetails"), RetrieveAuditDetailsResponse.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy