-
Notifications
You must be signed in to change notification settings - Fork 9
/
CodeBlockAttributeContentData.java
39 lines (29 loc) · 1.1 KB
/
CodeBlockAttributeContentData.java
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
package com.czertainly.api.model.common.attribute.v2.content.data;
import io.swagger.v3.oas.annotations.media.Schema;
public class CodeBlockAttributeContentData {
@Schema(description = "Definition of programming languages used for code",
example = "JAVA, PHP, C, etc",
requiredMode = Schema.RequiredMode.REQUIRED)
private ProgrammingLanguageEnum language;
@Schema(description = "Block of the code in Base64. Formatting of the code is specified by variable language",
requiredMode = Schema.RequiredMode.REQUIRED)
private String code;
public CodeBlockAttributeContentData(final ProgrammingLanguageEnum language, final String code) {
this.language = language;
this.code = code;
}
public CodeBlockAttributeContentData() {
}
public ProgrammingLanguageEnum getLanguage() {
return language;
}
public void setLanguage(ProgrammingLanguageEnum language) {
this.language = language;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}