1 package com.foxinmy.weixin4j.response;
2
3
4
5
6
7
8
9
10
11
12
13 public class TransferCustomerResponse implements WeixinResponse {
14
15
16
17
18 private String kfAccount;
19
20 public TransferCustomerResponse(String kfAccount) {
21 this.kfAccount = kfAccount;
22 }
23
24 public String getKfAccount() {
25 return kfAccount;
26 }
27
28 @Override
29 public String toContent() {
30 String content = "";
31 if (kfAccount != null && !kfAccount.trim().isEmpty()) {
32 content = String
33 .format("<TransInfo><KfAccount><![CDATA[%s]]></KfAccount></TransInfo>",
34 kfAccount);
35 }
36 return content;
37 }
38
39 @Override
40 public String getMsgType() {
41 return "transfer_customer_service";
42 }
43 }