-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy patheducation_assignment_points_grade.go
81 lines (78 loc) · 3.28 KB
/
education_assignment_points_grade.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package models
import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
type EducationAssignmentPointsGrade struct {
EducationAssignmentGrade
}
// NewEducationAssignmentPointsGrade instantiates a new EducationAssignmentPointsGrade and sets the default values.
func NewEducationAssignmentPointsGrade()(*EducationAssignmentPointsGrade) {
m := &EducationAssignmentPointsGrade{
EducationAssignmentGrade: *NewEducationAssignmentGrade(),
}
odataTypeValue := "#microsoft.graph.educationAssignmentPointsGrade"
m.SetOdataType(&odataTypeValue)
return m
}
// CreateEducationAssignmentPointsGradeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateEducationAssignmentPointsGradeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewEducationAssignmentPointsGrade(), nil
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *EducationAssignmentPointsGrade) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.EducationAssignmentGrade.GetFieldDeserializers()
res["points"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetFloat32Value()
if err != nil {
return err
}
if val != nil {
m.SetPoints(val)
}
return nil
}
return res
}
// GetPoints gets the points property value. Number of points a teacher is giving this submission object.
// returns a *float32 when successful
func (m *EducationAssignmentPointsGrade) GetPoints()(*float32) {
val, err := m.GetBackingStore().Get("points")
if err != nil {
panic(err)
}
if val != nil {
return val.(*float32)
}
return nil
}
// Serialize serializes information the current object
func (m *EducationAssignmentPointsGrade) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.EducationAssignmentGrade.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteFloat32Value("points", m.GetPoints())
if err != nil {
return err
}
}
return nil
}
// SetPoints sets the points property value. Number of points a teacher is giving this submission object.
func (m *EducationAssignmentPointsGrade) SetPoints(value *float32)() {
err := m.GetBackingStore().Set("points", value)
if err != nil {
panic(err)
}
}
type EducationAssignmentPointsGradeable interface {
EducationAssignmentGradeable
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetPoints()(*float32)
SetPoints(value *float32)()
}