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

odata.msgraph.client.entity.collection.request.ConversationMemberCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.entity.collection.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import odata.msgraph.client.complex.ActionResultPart;
import odata.msgraph.client.entity.ConversationMember;
import odata.msgraph.client.entity.request.ConversationMemberRequest;

public class ConversationMemberCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ConversationMemberCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, ConversationMember.class, cp -> new ConversationMemberRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    @Action(name = "add")
    @JsonIgnore
    public CollectionPageNonEntityRequest add(List values) {
        Map _parameters = ParameterMap
            .put("values", "Collection(microsoft.graph.conversationMember)", values)
            .build();
        return CollectionPageNonEntityRequest.forAction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.add"), ActionResultPart.class, _parameters);
    }

}