Completed
Push — master ( 517572...36253a )
by Roannel Fernández
03:06
created

setFree(List)   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
package com.github.netkorp.telegram.framework.properties;
2
3
import org.springframework.boot.context.properties.ConfigurationProperties;
4
import org.springframework.stereotype.Component;
5
6
import java.util.List;
7
8
/**
9
 * Contains the properties associated to the commands.
10
 */
11
@Component
12
@ConfigurationProperties("telegram.commands")
13
public class CommandProperties {
14
15
    /**
16
     * List with the names of free commands.
17
     */
18
    private List<String> free;
19
20
    /**
21
     * Returns the list with the names of free commands.
22
     *
23
     * @return the list with the names of free commands.
24
     */
25
    public List<String> getFree() {
26
        return free;
27
    }
28
29
    /**
30
     * Sets the names of free commands.
31
     *
32
     * @param free the names of free commands.
33
     */
34
    public void setFree(List<String> free) {
35
        this.free = free;
36
    }
37
}
38