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

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

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.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.lang.String;
import java.util.Optional;

import odata.msgraph.client.entity.WorkbookComment;
import odata.msgraph.client.entity.request.WorkbookCommentReplyRequest;
import odata.msgraph.client.entity.request.WorkbookCommentRequest;

public class WorkbookCommentCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public WorkbookCommentCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, WorkbookComment.class, cp -> new WorkbookCommentRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public WorkbookCommentReplyRequest replies(String id) {
        return new WorkbookCommentReplyRequest(contextPath.addSegment("replies").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public WorkbookCommentReplyCollectionRequest replies() {
        return new WorkbookCommentReplyCollectionRequest(contextPath.addSegment("replies"), Optional.empty());
    }

}