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

odata.msgraph.client.beta.entity.collection.request.EducationAssignmentCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.beta.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.beta.entity.EducationAssignment;
import odata.msgraph.client.beta.entity.request.EducationAssignmentRequest;
import odata.msgraph.client.beta.entity.request.EducationAssignmentResourceRequest;
import odata.msgraph.client.beta.entity.request.EducationCategoryRequest;
import odata.msgraph.client.beta.entity.request.EducationSubmissionRequest;

public class EducationAssignmentCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public EducationAssignmentCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, EducationAssignment.class, cp -> new EducationAssignmentRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public EducationCategoryCollectionRequest categories() {
        return new EducationCategoryCollectionRequest(contextPath.addSegment("categories"), Optional.empty());
    }

    public EducationCategoryRequest categories(String id) {
        return new EducationCategoryRequest(contextPath.addSegment("categories").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public EducationAssignmentResourceCollectionRequest resources() {
        return new EducationAssignmentResourceCollectionRequest(contextPath.addSegment("resources"), Optional.empty());
    }

    public EducationAssignmentResourceRequest resources(String id) {
        return new EducationAssignmentResourceRequest(contextPath.addSegment("resources").addKeys(new NameValue(id.toString())), Optional.empty());
    }

    public EducationSubmissionCollectionRequest submissions() {
        return new EducationSubmissionCollectionRequest(contextPath.addSegment("submissions"), Optional.empty());
    }

    public EducationSubmissionRequest submissions(String id) {
        return new EducationSubmissionRequest(contextPath.addSegment("submissions").addKeys(new NameValue(id.toString())), Optional.empty());
    }

}