| | |
| | | package com.yeshi.fanli.vo.msg;
|
| | |
|
| | | import com.yeshi.common.vo.ClientTextStyleVO;
|
| | |
|
| | | 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;
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.vo.msg; |
| | | |
| | | import com.yeshi.common.vo.ClientTextStyleVO; |
| | | |
| | | 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; |
| | | } |
| | | } |