• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package com.update.check.dto;
17 
18 import java.util.List;
19 
20 /**
21  * UpdateCheckReportDto
22  *
23  * @since 23-04-07
24  */
25 public class UpdateCheckReportDto {
26     private String apiDefinition;
27     private String reminderInformation;
28     private String sourceFileName;
29     private String pos;
30     private List<ApiDiffResultDto.Changelog> changelogs;
31     private String changeType;
32 
33     /**
34      * UpdateCheckReportDto
35      *
36      * @since 23-04-07
37      */
UpdateCheckReportDto()38     public UpdateCheckReportDto() {
39     }
40 
41     /**
42      * UpdateCheckReportDto
43      *
44      * @param apiDto              ApiDiffResultDto
45      * @param reminderInformation reminderInformation
46      * @param collApiDto          collApiDto
47      * @param changeType          changeType
48      */
UpdateCheckReportDto(ApiDiffResultDto apiDto, String reminderInformation, CollectApplicationApiDto collApiDto, String changeType)49     public UpdateCheckReportDto(ApiDiffResultDto apiDto,
50                                 String reminderInformation,
51                                 CollectApplicationApiDto collApiDto,
52                                 String changeType) {
53         this.apiDefinition = apiDto.getRawText();
54         this.reminderInformation = reminderInformation;
55         this.sourceFileName = collApiDto.getSourceFileName();
56         this.pos = collApiDto.getPos();
57         this.changelogs = apiDto.getChangelogs();
58         this.changeType = changeType;
59     }
60 
getPos()61     public String getPos() {
62         return pos;
63     }
64 
setPos(String pos)65     public void setPos(String pos) {
66         this.pos = pos;
67     }
68 
getApiDefinition()69     public String getApiDefinition() {
70         return apiDefinition;
71     }
72 
setApiDefinition(String apiDefinition)73     public void setApiDefinition(String apiDefinition) {
74         this.apiDefinition = apiDefinition;
75     }
76 
getReminderInformation()77     public String getReminderInformation() {
78         return reminderInformation;
79     }
80 
setReminderInformation(String reminderInformation)81     public void setReminderInformation(String reminderInformation) {
82         this.reminderInformation = reminderInformation;
83     }
84 
getSourceFileName()85     public String getSourceFileName() {
86         return sourceFileName;
87     }
88 
setSourceFileName(String sourceFileName)89     public void setSourceFileName(String sourceFileName) {
90         this.sourceFileName = sourceFileName;
91     }
92 
getChangelogs()93     public List<ApiDiffResultDto.Changelog> getChangelogs() {
94         return changelogs;
95     }
96 
setChangelogs(List<ApiDiffResultDto.Changelog> changelogs)97     public void setChangelogs(List<ApiDiffResultDto.Changelog> changelogs) {
98         this.changelogs = changelogs;
99     }
100 
getChangeType()101     public String getChangeType() {
102         return changeType;
103     }
104 
setChangeType(String changeType)105     public void setChangeType(String changeType) {
106         this.changeType = changeType;
107     }
108 }
109