• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #45

29 Aug 2023 04:23PM UTC coverage: 50.55%. Remained the same
#45

push

github-actions

web-flow
Make the license header consistent and add checkstyle rule (#63)

* Make the license header consistent and add checkstyle rule

* Make the file license come before the package

* Remove Smartsheet SDK for Java from every file

3448 of 6821 relevant lines covered (50.55%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/models/ProjectSettings.java
1
/*
2
 * Copyright (C) 2023 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.models;
18

19
import com.smartsheet.api.models.enums.DayOfWeek;
20

21
import java.util.List;
22

23
public class ProjectSettings {
×
24

25
    /**
26
     * Working days of a week for a project sheet.
27
     */
28
    private List<DayOfWeek> workingDays;
29

30
    /**
31
     * Non-working days for a project sheet. Must be an array of strings that are valid ISO-8601 dates ('YYYY-MM-DD’)
32
     */
33
    private List<String> nonWorkingDays;
34

35
    /**
36
     * Length of a workday in hours for a project sheet. Valid value must be above or equal to 1 hour, and less than or equal to 24 hours.
37
     */
38
    private Float lengthOfDay;
39

40
    /**
41
     * Get working days of a week for a project sheet.
42
     *
43
     * @return the list of working days
44
     */
45
    public List<DayOfWeek> getWorkingDays() {
46
        return workingDays;
×
47
    }
48

49
    /**
50
     * Set the working days of a week for a project sheet.
51
     *
52
     * @param workingDays the list of {@link DayOfWeek}s to set
53
     */
54
    public ProjectSettings setWorkingDays(List<DayOfWeek> workingDays) {
55
        this.workingDays = workingDays;
×
56
        return this;
×
57
    }
58

59
    /**
60
     * Get non-working days of a week for a project sheet.
61
     *
62
     * @return the list of non-working days
63
     */
64
    public List<String> getNonWorkingDays() {
65
        return nonWorkingDays;
×
66
    }
67

68
    /**
69
     * Set the non-working days of a week for a project sheet.
70
     *
71
     * @param nonWorkingDays the list of days to set. Must be an array of strings that are valid ISO-8601 dates ('YYYY-MM-DD’)
72
     */
73
    public ProjectSettings setNonWorkingDays(List<String> nonWorkingDays) {
74
        this.nonWorkingDays = nonWorkingDays;
×
75
        return this;
×
76
    }
77

78
    /**
79
     * Get length of workday for a project sheet, in hours.
80
     *
81
     * @return length of day
82
     */
83
    public Float getLengthOfDay() {
84
        return lengthOfDay;
×
85
    }
86

87
    /**
88
     * Set length of a workday for a project sheet in hours.
89
     * Valid value must be above or equal to 1 hour, and less than or equal to 24 hours.
90
     */
91
    public ProjectSettings setLengthOfDay(Float lengthOfDay) {
92
        this.lengthOfDay = lengthOfDay;
×
93
        return this;
×
94
    }
95

96
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc