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

com.microsoft.graph.beta.generated.models.EducationPointsOutcome Maven / Gradle / Ivy

There is a newer version: 6.26.0
Show newest version
package com.microsoft.graph.beta.models;

import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class EducationPointsOutcome extends EducationOutcome implements Parsable {
    /**
     * Instantiates a new {@link EducationPointsOutcome} and sets the default values.
     */
    public EducationPointsOutcome() {
        super();
        this.setOdataType("#microsoft.graph.educationPointsOutcome");
    }
    /**
     * Creates a new instance of the appropriate class based on discriminator value
     * @param parseNode The parse node to use to read the discriminator value and create the object
     * @return a {@link EducationPointsOutcome}
     */
    @jakarta.annotation.Nonnull
    public static EducationPointsOutcome createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new EducationPointsOutcome();
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
        deserializerMap.put("points", (n) -> { this.setPoints(n.getObjectValue(EducationAssignmentPointsGrade::createFromDiscriminatorValue)); });
        deserializerMap.put("publishedPoints", (n) -> { this.setPublishedPoints(n.getObjectValue(EducationAssignmentPointsGrade::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the points property value. The numeric grade that the teacher gave the student for this assignment.
     * @return a {@link EducationAssignmentPointsGrade}
     */
    @jakarta.annotation.Nullable
    public EducationAssignmentPointsGrade getPoints() {
        return this.backingStore.get("points");
    }
    /**
     * Gets the publishedPoints property value. A copy of the points property that is made when the grade is released to the student.
     * @return a {@link EducationAssignmentPointsGrade}
     */
    @jakarta.annotation.Nullable
    public EducationAssignmentPointsGrade getPublishedPoints() {
        return this.backingStore.get("publishedPoints");
    }
    /**
     * Serializes information the current object
     * @param writer Serialization writer to use to serialize this model
     */
    public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
        Objects.requireNonNull(writer);
        super.serialize(writer);
        writer.writeObjectValue("points", this.getPoints());
        writer.writeObjectValue("publishedPoints", this.getPublishedPoints());
    }
    /**
     * Sets the points property value. The numeric grade that the teacher gave the student for this assignment.
     * @param value Value to set for the points property.
     */
    public void setPoints(@jakarta.annotation.Nullable final EducationAssignmentPointsGrade value) {
        this.backingStore.set("points", value);
    }
    /**
     * Sets the publishedPoints property value. A copy of the points property that is made when the grade is released to the student.
     * @param value Value to set for the publishedPoints property.
     */
    public void setPublishedPoints(@jakarta.annotation.Nullable final EducationAssignmentPointsGrade value) {
        this.backingStore.set("publishedPoints", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy