yujian
2020-04-10 469bba3a544b3beef0c170f6fce5804c9e8a9676
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
package com.yeshi.fanli.vo.msg;
 
import java.util.ArrayList;
import java.util.List;
 
public class CommonMsgItemVOFactory {
 
    public static CommonMsgItemVO createMsgItemVO(ClientTextStyleVO title, ClientTextStyleVO content) {
        List<ClientTextStyleVO> list = new ArrayList<>();
        list.add(content);
 
        CommonMsgItemVO itemVO = new CommonMsgItemVO();
        itemVO.setTitle(title);
        itemVO.setContent(list);
        return itemVO;
    }
 
    public static CommonMsgItemVO createMsgItemVO(ClientTextStyleVO title, ClientTextStyleVO content, boolean click) {
        List<ClientTextStyleVO> list = new ArrayList<>();
        list.add(content);
 
        CommonMsgItemVO itemVO = new CommonMsgItemVO();
        itemVO.setTitle(title);
        itemVO.setContent(list);
        itemVO.setClick(click);
        return itemVO;
    }
 
    public static CommonMsgItemVO createMsgItemVO(ClientTextStyleVO title, ClientTextStyleVO content1,
            ClientTextStyleVO content2) {
        List<ClientTextStyleVO> list = new ArrayList<>();
        list.add(content1);
        list.add(content2);
 
        CommonMsgItemVO itemVO = new CommonMsgItemVO();
        itemVO.setTitle(title);
        itemVO.setContent(list);
        return itemVO;
    }
 
    public static CommonMsgItemVO createMsgItemVO(ClientTextStyleVO title, ClientTextStyleVO content1,
            ClientTextStyleVO content2, boolean click) {
        List<ClientTextStyleVO> list = new ArrayList<>();
        list.add(content1);
        list.add(content2);
 
        CommonMsgItemVO itemVO = new CommonMsgItemVO();
        itemVO.setTitle(title);
        itemVO.setContent(list);
        itemVO.setClick(click);
        return itemVO;
    }
    
    public static CommonMsgItemVO createMsgItemVO(ClientTextStyleVO title, List<ClientTextStyleVO> list) {
        CommonMsgItemVO itemVO = new CommonMsgItemVO();
        itemVO.setTitle(title);
        itemVO.setContent(list);
        return itemVO;
    }
}