New file |
| | |
| | | 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;
|
| | | }
|
| | | }
|