-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathCampaign.java
More file actions
162 lines (132 loc) · 4.42 KB
/
Campaign.java
File metadata and controls
162 lines (132 loc) · 4.42 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package com.plivo.api.models.campaign;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.plivo.api.models.base.BaseResource;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Campaign extends BaseResource {
private String brandID;
private String campaignID;
private String resellerID;
private String usecase;
private String subUsecase;
private String registrationStatus;
private String messageFlow;
private String helpMessage;
private String optoutMessage;
private String optinKeywords;
private String optinMessage;
private String optoutKeywords;
private String helpKeywords;
private MnoMetadata mnoMetadata;
private CampaignResponse campaign;
private String sample1;
private String sample2;
private String description;
private CampaignAttributes campaignAttributes;
private String createdAt;
public static CampaignCreator creator(String brandID,String campaignAlias,String vertical,String usecase,String[] subUsecases,String description,Boolean embeddedLink,Boolean embeddedPhone,Boolean ageGated,Boolean directLending,Boolean affiliateMarketing,Boolean subscriberOptin,Boolean subscriberOptout,Boolean subscriberHelp,String sample1,String sample2,String url, String method, String messageFlow, String helpMessage, String optoutMessage, String optinKeywords, String optinMessage, String optoutKeywords, String helpKeywords) {
return new CampaignCreator(brandID,campaignAlias,vertical,usecase,subUsecases,description,embeddedLink,embeddedPhone,ageGated,directLending,affiliateMarketing,subscriberOptin,subscriberOptout,subscriberHelp,sample1,sample2,url,method,messageFlow,helpMessage,optoutMessage,optinKeywords,optinMessage,optoutKeywords,helpKeywords);
}
public static CampaignUpdater updater(String campaign_id, String reseller_id, String description, String sample1, String sample2, String message_flow, String help_message, String optin_keywords, String optin_message, String optout_keywords, String optout_message, String help_keywords) {
return new CampaignUpdater(campaign_id,reseller_id,description,sample1,sample2,message_flow,help_message,optin_keywords,optin_message,optout_keywords,optout_message,help_keywords);
}
public static CampaignGetter getter(String id) {
return new CampaignGetter(id);
}
public static CampaignLister lister() {
return new CampaignLister();
}
public static CampaignDeleter deleter(String id) {
return new CampaignDeleter(id);
}
/**
* @return String return the brandID
*/
public String getBrandID() {
return brandID;
}
/**
* @return String return the campaignID
*/
public String getCampaignID() {
return campaignID;
}
/**
* @return String return the resellerID
*/
public String getResellerID() {
return resellerID;
}
/**
* @return String return the usecase
*/
public String getUsecase() {
return usecase;
}
/**
* @return String return the subUsecase
*/
public String getSubUsecase() {
return subUsecase;
}
/**
* @return String return the registrationStatus
*/
public String getRegistrationStatus() {
return registrationStatus;
}
public String getMessageFlow(){
return this.messageFlow;
}
public String getHelpMessage(){
return this.helpMessage;
}
public String getOptoutMessage(){
return this.optoutMessage;
}
public String getOptinKeywords(){
return this.optinKeywords;
}
public String getOptinMessage(){
return this.optinMessage;
}
public String getOptoutKeywords(){
return this.optoutKeywords;
}
public String getHelpKeywords(){
return this.helpKeywords;
}
/**
* @return MnoMetadata return the mnoMetadata
*/
public MnoMetadata getMnoMetadata() {
return mnoMetadata;
}
/**
* @return String return the sample1
*/
public String getSample1() {
return sample1;
}
/**
* @return String return the sample2
*/
public String getSample2() {
return sample2;
}
public CampaignResponse getCampaign() {
return campaign;
}
public CampaignAttributes getCampaignAttributes() {
return campaignAttributes;
}
public String getDescription() {
return description;
}
public String getCreatedAt() {
return createdAt;
}
@Override
public String getId() {
return this.campaignID;
}
}