From 5701685af7b4ea21d887a4640aa48a9726ebb5c8 Mon Sep 17 00:00:00 2001 From: lyonspe Date: Fri, 23 Oct 2015 13:15:28 -0400 Subject: [PATCH 1/5] RawRecipientDataExport --- .../RawRecipientDataExportCommand.java | 574 ++++++++++++++++++ .../result/RawRecipientDataExportResult.java | 42 ++ 2 files changed, 616 insertions(+) create mode 100644 src/main/java/com/silverpop/api/client/command/RawRecipientDataExportCommand.java create mode 100644 src/main/java/com/silverpop/api/client/result/RawRecipientDataExportResult.java diff --git a/src/main/java/com/silverpop/api/client/command/RawRecipientDataExportCommand.java b/src/main/java/com/silverpop/api/client/command/RawRecipientDataExportCommand.java new file mode 100644 index 0000000..934283f --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/RawRecipientDataExportCommand.java @@ -0,0 +1,574 @@ +package com.silverpop.api.client.command; + +import com.silverpop.api.client.ApiCommand; +import com.silverpop.api.client.ApiResult; +import com.silverpop.api.client.XmlApiProperties; +import com.silverpop.api.client.command.elements.ColumnsElementType; +import com.silverpop.api.client.command.elements.MultiMailingsElementType; +import com.silverpop.api.client.result.RawRecipientDataExportResult; +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + +import java.util.List; + +/** + * Created by PeterJLyons on 10/15/2015. + */ +@XmlApiProperties("RawRecipientDataExport") +public class RawRecipientDataExportCommand implements ApiCommand { + + @XStreamAlias("MAILING_ID") + protected Long mailingid; + @XStreamAlias("REPORT_ID") + protected Long reportid; + @XStreamImplicit(itemFieldName = "MAILING") + protected List mailings; + @XStreamAlias("CAMPAIGN_ID") + protected Long campaignid; + @XStreamAlias("LIST_ID") + protected Long listid; + @XStreamAlias("INCLUDE_CHILDREN") + protected String includechildren; + @XStreamAlias("ALL_NON_EXPORTED") + protected String allnonexported; + @XStreamAlias("EVENT_DATE_START") + protected String eventdatestart; + @XStreamAlias("EVENT_DATE_END") + protected String eventdateend; + @XStreamAlias("SEND_DATE_START") + protected String senddatestart; + @XStreamAlias("SEND_DATE_END") + protected String senddateend; + @XStreamAlias("EXPORT_FORMAT") + protected Integer exportformat; + @XStreamAlias("EXPORT_FILE_NAME") + protected String exportfilename; + @XStreamAlias("FILE_ENCODING") + protected ImportListCommand.FileEncoding fileencoding; + @XStreamAlias("EMAIL") + protected String email; + @XStreamAlias("MOVE_TO_FTP") + protected String movetoftp; + @XStreamAlias("PRIVATE") + protected String _private; + @XStreamAlias("SHARED") + protected String shared; + @XStreamAlias("SENT_MAILINGS") + protected String sentmailings; + @XStreamAlias("SENDING") + protected String sending; + @XStreamAlias("OPTIN_CONFIRMATION") + protected String optinconfirmation; + @XStreamAlias("PROFILE_CONFIRMATION") + protected String profileconfirmation; + @XStreamAlias("AUTOMATED") + protected String automated; + @XStreamAlias("CAMPAIGN_ACTIVE") + protected String campaignactive; + @XStreamAlias("CAMPAIGN_COMPLETED") + protected String campaigncompleted; + @XStreamAlias("CAMPAIGN_CANCELLED") + protected String campaigncancelled; + @XStreamAlias("CAMPAIGN_SCRAPE_TEMPLATE") + protected String campaignscrapetemplate; + @XStreamAlias("INCLUDE_TEST_MAILINGS") + protected String includetestmailings; + @XStreamAlias("ALL_EVENT_TYPES") + protected String alleventtypes; + @XStreamAlias("SENT") + protected String sent; + @XStreamAlias("SUPPRESSED") + protected String suppressed; + @XStreamAlias("OPENS") + protected String opens; + @XStreamAlias("CLICKS") + protected String clicks; + @XStreamAlias("OPTINS") + protected String optins; + @XStreamAlias("OPTOUTS") + protected String optouts; + @XStreamAlias("FORWARDS") + protected String forwards; + @XStreamAlias("ATTACHMENTS") + protected String attachments; + @XStreamAlias("CONVERSIONS") + protected String conversions; + @XStreamAlias("CLICKSTREAMS") + protected String clickstreams; + @XStreamAlias("HARD_BOUNCES") + protected String hardbounces; + @XStreamAlias("SOFT_BOUNCES") + protected String softbounces; + @XStreamAlias("REPLY_ABUSE") + protected String replyabuse; + @XStreamAlias("REPLY_COA") + protected String replycoa; + @XStreamAlias("REPLY_OTHER") + protected String replyother; + @XStreamAlias("MAIL_BLOCKS") + protected String mailblocks; + @XStreamAlias("MAILING_RESTRICTIONS") + protected String mailingrestrictions; + @XStreamAlias("SMS_ERROR") + protected String smserror; + @XStreamAlias("SMS_REJECT") + protected String smsreject; + @XStreamAlias("SMS_OPTOUT") + protected String smsoptout; + @XStreamAlias("INCLUDE_SEEDS") + protected String includeseeds; + @XStreamAlias("INCLUDE_FORWARDS") + protected String includeforwards; + @XStreamAlias("INCLUDE_INBOX_MONITORING") + protected String includeinboxmonitoring; + @XStreamAlias("CODED_TYPE_FIELDS") + protected String codedtypefields; + @XStreamAlias("EXCLUDE_DELETED") + protected String excludedeleted; + @XStreamAlias("COLUMNS") + protected ColumnsElementType columns; + + public Class getResultType() { + return RawRecipientDataExportResult.class; + } + + public Long getMailingid() { + return mailingid; + } + + public void setMailingid(Long mailingid) { + this.mailingid = mailingid; + } + + public Long getReportid() { + return reportid; + } + + public void setReportid(Long reportid) { + this.reportid = reportid; + } + + public List getMailings() { + return mailings; + } + + public void setMailings(List mailings) { + this.mailings = mailings; + } + + public Long getCampaignid() { + return campaignid; + } + + public void setCampaignid(Long campaignid) { + this.campaignid = campaignid; + } + + public Long getListid() { + return listid; + } + + public void setListid(Long listid) { + this.listid = listid; + } + + public String getIncludechildren() { + return includechildren; + } + + public void setIncludechildren(String includechildren) { + this.includechildren = includechildren; + } + + public String getAllnonexported() { + return allnonexported; + } + + public void setAllnonexported(String allnonexported) { + this.allnonexported = allnonexported; + } + + public String getEventdatestart() { + return eventdatestart; + } + + public void setEventdatestart(String eventdatestart) { + this.eventdatestart = eventdatestart; + } + + public String getEventdateend() { + return eventdateend; + } + + public void setEventdateend(String eventdateend) { + this.eventdateend = eventdateend; + } + + public String getSenddatestart() { + return senddatestart; + } + + public void setSenddatestart(String senddatestart) { + this.senddatestart = senddatestart; + } + + public String getSenddateend() { + return senddateend; + } + + public void setSenddateend(String senddateend) { + this.senddateend = senddateend; + } + + public Integer getExportformat() { + return exportformat; + } + + public void setExportformat(Integer exportformat) { + this.exportformat = exportformat; + } + + public String getExportfilename() { + return exportfilename; + } + + public void setExportfilename(String exportfilename) { + this.exportfilename = exportfilename; + } + + public ImportListCommand.FileEncoding getFileencoding() { + return fileencoding; + } + + public void setFileencoding(ImportListCommand.FileEncoding fileencoding) { + this.fileencoding = fileencoding; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getMovetoftp() { + return movetoftp; + } + + public void setMovetoftp(String movetoftp) { + this.movetoftp = movetoftp; + } + + public String get_private() { + return _private; + } + + public void set_private(String _private) { + this._private = _private; + } + + public String getShared() { + return shared; + } + + public void setShared(String shared) { + this.shared = shared; + } + + public String getSentmailings() { + return sentmailings; + } + + public void setSentmailings(String sentmailings) { + this.sentmailings = sentmailings; + } + + public String getSending() { + return sending; + } + + public void setSending(String sending) { + this.sending = sending; + } + + public String getOptinconfirmation() { + return optinconfirmation; + } + + public void setOptinconfirmation(String optinconfirmation) { + this.optinconfirmation = optinconfirmation; + } + + public String getProfileconfirmation() { + return profileconfirmation; + } + + public void setProfileconfirmation(String profileconfirmation) { + this.profileconfirmation = profileconfirmation; + } + + public String getAutomated() { + return automated; + } + + public void setAutomated(String automated) { + this.automated = automated; + } + + public String getCampaignactive() { + return campaignactive; + } + + public void setCampaignactive(String campaignactive) { + this.campaignactive = campaignactive; + } + + public String getCampaigncompleted() { + return campaigncompleted; + } + + public void setCampaigncompleted(String campaigncompleted) { + this.campaigncompleted = campaigncompleted; + } + + public String getCampaigncancelled() { + return campaigncancelled; + } + + public void setCampaigncancelled(String campaigncancelled) { + this.campaigncancelled = campaigncancelled; + } + + public String getCampaignscrapetemplate() { + return campaignscrapetemplate; + } + + public void setCampaignscrapetemplate(String campaignscrapetemplate) { + this.campaignscrapetemplate = campaignscrapetemplate; + } + + public String getIncludetestmailings() { + return includetestmailings; + } + + public void setIncludetestmailings(String includetestmailings) { + this.includetestmailings = includetestmailings; + } + + public String getAlleventtypes() { + return alleventtypes; + } + + public void setAlleventtypes(String alleventtypes) { + this.alleventtypes = alleventtypes; + } + + public String getSent() { + return sent; + } + + public void setSent(String sent) { + this.sent = sent; + } + + public String getSuppressed() { + return suppressed; + } + + public void setSuppressed(String suppressed) { + this.suppressed = suppressed; + } + + public String getOpens() { + return opens; + } + + public void setOpens(String opens) { + this.opens = opens; + } + + public String getClicks() { + return clicks; + } + + public void setClicks(String clicks) { + this.clicks = clicks; + } + + public String getOptins() { + return optins; + } + + public void setOptins(String optins) { + this.optins = optins; + } + + public String getOptouts() { + return optouts; + } + + public void setOptouts(String optouts) { + this.optouts = optouts; + } + + public String getForwards() { + return forwards; + } + + public void setForwards(String forwards) { + this.forwards = forwards; + } + + public String getAttachments() { + return attachments; + } + + public void setAttachments(String attachments) { + this.attachments = attachments; + } + + public String getConversions() { + return conversions; + } + + public void setConversions(String conversions) { + this.conversions = conversions; + } + + public String getClickstreams() { + return clickstreams; + } + + public void setClickstreams(String clickstreams) { + this.clickstreams = clickstreams; + } + + public String getHardbounces() { + return hardbounces; + } + + public void setHardbounces(String hardbounces) { + this.hardbounces = hardbounces; + } + + public String getSoftbounces() { + return softbounces; + } + + public void setSoftbounces(String softbounces) { + this.softbounces = softbounces; + } + + public String getReplyabuse() { + return replyabuse; + } + + public void setReplyabuse(String replyabuse) { + this.replyabuse = replyabuse; + } + + public String getReplycoa() { + return replycoa; + } + + public void setReplycoa(String replycoa) { + this.replycoa = replycoa; + } + + public String getReplyother() { + return replyother; + } + + public void setReplyother(String replyother) { + this.replyother = replyother; + } + + public String getMailblocks() { + return mailblocks; + } + + public void setMailblocks(String mailblocks) { + this.mailblocks = mailblocks; + } + + public String getMailingrestrictions() { + return mailingrestrictions; + } + + public void setMailingrestrictions(String mailingrestrictions) { + this.mailingrestrictions = mailingrestrictions; + } + + public String getSmserror() { + return smserror; + } + + public void setSmserror(String smserror) { + this.smserror = smserror; + } + + public String getSmsreject() { + return smsreject; + } + + public void setSmsreject(String smsreject) { + this.smsreject = smsreject; + } + + public String getSmsoptout() { + return smsoptout; + } + + public void setSmsoptout(String smsoptout) { + this.smsoptout = smsoptout; + } + + public String getIncludeseeds() { + return includeseeds; + } + + public void setIncludeseeds(String includeseeds) { + this.includeseeds = includeseeds; + } + + public String getIncludeforwards() { + return includeforwards; + } + + public void setIncludeforwards(String includeforwards) { + this.includeforwards = includeforwards; + } + + public String getIncludeinboxmonitoring() { + return includeinboxmonitoring; + } + + public void setIncludeinboxmonitoring(String includeinboxmonitoring) { + this.includeinboxmonitoring = includeinboxmonitoring; + } + + public String getCodedtypefields() { + return codedtypefields; + } + + public void setCodedtypefields(String codedtypefields) { + this.codedtypefields = codedtypefields; + } + + public String getExcludedeleted() { + return excludedeleted; + } + + public void setExcludedeleted(String excludedeleted) { + this.excludedeleted = excludedeleted; + } + + public ColumnsElementType getColumns() { + return columns; + } + + public void setColumns(ColumnsElementType columns) { + this.columns = columns; + } +} diff --git a/src/main/java/com/silverpop/api/client/result/RawRecipientDataExportResult.java b/src/main/java/com/silverpop/api/client/result/RawRecipientDataExportResult.java new file mode 100644 index 0000000..2e29d2d --- /dev/null +++ b/src/main/java/com/silverpop/api/client/result/RawRecipientDataExportResult.java @@ -0,0 +1,42 @@ +package com.silverpop.api.client.result; + +import com.silverpop.api.client.ApiResult; +import com.silverpop.api.client.result.elements.MailingElementType; +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by PeterJLyons on 10/15/2015. + */ +public class RawRecipientDataExportResult implements ApiResult { + + + @XStreamImplicit(itemFieldName = "MAILING") + protected List mailings; + @XStreamAlias("SUCCESS") + protected boolean success; + + public List getMailings() { + if(this.mailings == null) + { + this.mailings = new ArrayList(); + } + + return mailings; + } + + public void setMailings(List mailings) { + this.mailings = mailings; + } + + public boolean isSuccess() { + return success; + } + + public void setSuccess(boolean success) { + this.success = success; + } +} From 214dece599a6dcebcc664432b681bc7d19e67e7d Mon Sep 17 00:00:00 2001 From: lyonspe Date: Mon, 26 Oct 2015 13:51:25 -0400 Subject: [PATCH 2/5] Updated ImportListCommand --- .../api/client/command/ImportListCommand.java | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/silverpop/api/client/command/ImportListCommand.java b/src/main/java/com/silverpop/api/client/command/ImportListCommand.java index aa09cf4..d42e4be 100644 --- a/src/main/java/com/silverpop/api/client/command/ImportListCommand.java +++ b/src/main/java/com/silverpop/api/client/command/ImportListCommand.java @@ -15,6 +15,9 @@ public class ImportListCommand implements ApiCommand { @XStreamAlias("SOURCE_FILE") private String sourceFile; + @XStreamAlias("FILE_ENCODING") + private FileEncoding fileEncoding; + @Override public Class getResultType() { return DataJobResult.class; @@ -35,4 +38,36 @@ public String getSourceFile() { public void setSourceFile(String sourceFile) { this.sourceFile = sourceFile; } -} \ No newline at end of file + + public FileEncoding getFileEncoding() { + return fileEncoding; + } + + public void setFileEncoding(FileEncoding fileEncoding) { + this.fileEncoding = fileEncoding; + } + + + public enum FileEncoding { + UTF_8("UTF-8"), + ISO_8859_1("ISO-8859-1"); + private String value; + + FileEncoding(String v) { + value = v; + } + + public String value() { + return value; + } + + public static FileEncoding fromValue(String v) { + for (FileEncoding c: FileEncoding.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + } +} From b07dbd1c682c15987981453997bbafc4d9f24a62 Mon Sep 17 00:00:00 2001 From: rkovarik Date: Mon, 2 Jul 2018 15:16:45 +0200 Subject: [PATCH 3/5] Partially port f42e7f796dea1174f489de941fbb492b88e63d03 to support RawRecipientDataExportCommand --- .../command/elements/ColumnElementType.java | 69 + .../command/elements/ColumnsElementType.java | 72 + .../command/elements/MailingElementType.java | 1948 +++++++++++++++++ .../elements/MultiMailingsElementType.java | 63 + .../elements/SelectionValuesElementType.java | 76 + .../command/elements/TagsElementType.java | 76 + 6 files changed, 2304 insertions(+) create mode 100644 src/main/java/com/silverpop/api/client/command/elements/ColumnElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/ColumnsElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/MailingElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/MultiMailingsElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/SelectionValuesElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/TagsElementType.java diff --git a/src/main/java/com/silverpop/api/client/command/elements/ColumnElementType.java b/src/main/java/com/silverpop/api/client/command/elements/ColumnElementType.java new file mode 100644 index 0000000..b81b014 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/ColumnElementType.java @@ -0,0 +1,69 @@ +package com.silverpop.api.client.command.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; + +/** + */ +@XStreamAlias("COLUMN") +public class ColumnElementType { + + @XStreamAlias("NAME") + protected String name; + + @XStreamAlias("VALUE") + protected String value; + + @XStreamAlias("DEFAULT_VALUE") + protected String defaultValue; + + @XStreamAlias("TYPE") + protected int type; + + @XStreamAlias("SELECTION_VALUES") + protected SelectionValuesElementType SelectionValues; + + public ColumnElementType() + { + this.SelectionValues = new SelectionValuesElementType(); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public int getType() { + return type; + } + + public void setType(int type) { + this.type = type; + } + + public SelectionValuesElementType getSelectionValues() { + return SelectionValues; + } + + public void setSelectionValues(SelectionValuesElementType selectionValues) { + SelectionValues = selectionValues; + } +} \ No newline at end of file diff --git a/src/main/java/com/silverpop/api/client/command/elements/ColumnsElementType.java b/src/main/java/com/silverpop/api/client/command/elements/ColumnsElementType.java new file mode 100644 index 0000000..d5087a4 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/ColumnsElementType.java @@ -0,0 +1,72 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import java.util.ArrayList; +import java.util.List; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + + +/** + *

Java class for ColumnsElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ColumnsElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="COLUMN" type="{SilverpopApi:EngageService.ListMgmt.UserActions}ColumnElementType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XStreamAlias("COLUMNS") +public class ColumnsElementType { + + @XStreamImplicit(itemFieldName = "COLUMN") + protected List columns; + + /** + * Gets the value of the columns property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the columns property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCOLUMNS().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ColumnElementType } + * + * + */ + public List getCOLUMNS() { + if (columns == null) { + columns = new ArrayList(); + } + return this.columns; + } + +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/MailingElementType.java b/src/main/java/com/silverpop/api/client/command/elements/MailingElementType.java new file mode 100644 index 0000000..f98bc85 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/MailingElementType.java @@ -0,0 +1,1948 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.result.elements; + +import com.silverpop.api.client.XmlApiProperties; +import com.thoughtworks.xstream.annotations.XStreamAlias; + + +/** + *

Java class for MailingElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MailingElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MailingId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ReportId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ScheduledTS" type="{SilverpopApi:EngageService.Reporting}DateTime4" minOccurs="0"/>
+ *         <element name="MailingName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ListName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ListId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ParentListId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="UserName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SentTS" type="{SilverpopApi:EngageService.Reporting}DateTime4" minOccurs="0"/>
+ *         <element name="SentDateTime" type="{SilverpopApi:EngageService.Reporting}DateTime4" minOccurs="0"/>
+ *         <element name="NumSent" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Visibility" type="{SilverpopApi:EngageService.Reporting}PrivateShared" minOccurs="0"/>
+ *         <element name="QueryId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="QueryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ContactListId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ContactListName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Tags" type="{SilverpopApi:EngageService.Reporting}TagsElementType" minOccurs="0"/>
+ *         <element name="NumSeeds" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumSuppressed" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumInboxMonitored" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumBounceHard" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumBounceSoft" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueOpen" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossOpen" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueClick" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossClick" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueAttach" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossAttach" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueClickStreams" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossClickStreams" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueMedia" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossMedia" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossAbuse" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossChangeAddress" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossMailBlock" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossMailRestriction" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossOther" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumConversions" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumConversionAmount" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumBounceHardFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumBounceSoftFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumConversionAmountFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumAttachOpenFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumClickFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueForwardFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossForwardFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueConversionsFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossConversionsFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueClickstreamFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossClickstreamFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueClickFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossClickFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueAttachOpenFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossAttachOpenFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueMediaFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossMediaFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUniqueOpenFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumGrossOpenFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumAbuseFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumChangeAddressFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumMailRestrictionFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumMailBlockFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumOtherFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumSuppressedFwd" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="NumUnsubscribes" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlApiProperties("Mailing") +public class MailingElementType { + + + @XStreamAlias("JOB_ID") + protected long jobId; + @XStreamAlias("MAILING_ID") + protected long mailingID; + @XStreamAlias("FILE_PATH") + protected String filePath; + @XStreamAlias("SENT_DATE") + protected String dateSent; + @XStreamAlias("MailingId") + protected Long mailingId; + @XStreamAlias("ReportId") + protected Long reportId; + @XStreamAlias("ScheduledTS") + protected String scheduledTS; + @XStreamAlias("MailingName") + protected String mailingName; + @XStreamAlias("ListName") + protected String listName; + @XStreamAlias("ListId") + protected Long listId; + @XStreamAlias("ParentListId") + protected Long parentListId; + @XStreamAlias("UserName") + protected String userName; + @XStreamAlias("SentTS") + protected String sentTS; + @XStreamAlias("SentDateTime") + protected String sentDateTime; + @XStreamAlias("NumSent") + protected Integer numSent; + @XStreamAlias("Subject") + protected String subject; + @XStreamAlias("Visibility") + protected String visibility; + @XStreamAlias("QueryId") + protected Long queryId; + @XStreamAlias("QueryName") + protected String queryName; + @XStreamAlias("ContactListId") + protected Long contactListId; + @XStreamAlias("ContactListName") + protected String contactListName; + @XStreamAlias("Tags") + protected com.silverpop.api.client.result.elements.TagsElementType tags; + @XStreamAlias("NumSeeds") + protected Integer numSeeds; + @XStreamAlias("NumSuppressed") + protected Integer numSuppressed; + @XStreamAlias("NumInboxMonitored") + protected Integer numInboxMonitored; + @XStreamAlias("NumBounceHard") + protected Integer numBounceHard; + @XStreamAlias("NumBounceSoft") + protected Integer numBounceSoft; + @XStreamAlias("NumUniqueOpen") + protected Integer numUniqueOpen; + @XStreamAlias("NumGrossOpen") + protected Integer numGrossOpen; + @XStreamAlias("NumUniqueClick") + protected Integer numUniqueClick; + @XStreamAlias("NumGrossClick") + protected Integer numGrossClick; + @XStreamAlias("NumUniqueAttach") + protected Integer numUniqueAttach; + @XStreamAlias("NumGrossAttach") + protected Integer numGrossAttach; + @XStreamAlias("NumUniqueClickStreams") + protected Integer numUniqueClickStreams; + @XStreamAlias("NumGrossClickStreams") + protected Integer numGrossClickStreams; + @XStreamAlias("NumUniqueMedia") + protected Integer numUniqueMedia; + @XStreamAlias("NumGrossMedia") + protected Integer numGrossMedia; + @XStreamAlias("NumGrossAbuse") + protected Integer numGrossAbuse; + @XStreamAlias("NumGrossChangeAddress") + protected Integer numGrossChangeAddress; + @XStreamAlias("NumGrossMailBlock") + protected Integer numGrossMailBlock; + @XStreamAlias("NumGrossMailRestriction") + protected Integer numGrossMailRestriction; + @XStreamAlias("NumGrossOther") + protected Integer numGrossOther; + @XStreamAlias("NumConversions") + protected Integer numConversions; + @XStreamAlias("NumConversionAmount") + protected Integer numConversionAmount; + @XStreamAlias("NumBounceHardFwd") + protected Integer numBounceHardFwd; + @XStreamAlias("NumBounceSoftFwd") + protected Integer numBounceSoftFwd; + @XStreamAlias("NumConversionAmountFwd") + protected Integer numConversionAmountFwd; + @XStreamAlias("NumAttachOpenFwd") + protected Integer numAttachOpenFwd; + @XStreamAlias("NumClickFwd") + protected Integer numClickFwd; + @XStreamAlias("NumUniqueForwardFwd") + protected Integer numUniqueForwardFwd; + @XStreamAlias("NumGrossForwardFwd") + protected Integer numGrossForwardFwd; + @XStreamAlias("NumUniqueConversionsFwd") + protected Integer numUniqueConversionsFwd; + @XStreamAlias("NumGrossConversionsFwd") + protected Integer numGrossConversionsFwd; + @XStreamAlias("NumUniqueClickstreamFwd") + protected Integer numUniqueClickstreamFwd; + @XStreamAlias("NumGrossClickstreamFwd") + protected Integer numGrossClickstreamFwd; + @XStreamAlias("NumUniqueClickFwd") + protected Integer numUniqueClickFwd; + @XStreamAlias("NumGrossClickFwd") + protected Integer numGrossClickFwd; + @XStreamAlias("NumUniqueAttachOpenFwd") + protected Integer numUniqueAttachOpenFwd; + @XStreamAlias("NumGrossAttachOpenFwd") + protected Integer numGrossAttachOpenFwd; + @XStreamAlias("NumUniqueMediaFwd") + protected Integer numUniqueMediaFwd; + @XStreamAlias("NumGrossMediaFwd") + protected Integer numGrossMediaFwd; + @XStreamAlias("NumUniqueOpenFwd") + protected Integer numUniqueOpenFwd; + @XStreamAlias("NumGrossOpenFwd") + protected Integer numGrossOpenFwd; + @XStreamAlias("NumAbuseFwd") + protected Integer numAbuseFwd; + @XStreamAlias("NumChangeAddressFwd") + protected Integer numChangeAddressFwd; + @XStreamAlias("NumMailRestrictionFwd") + protected Integer numMailRestrictionFwd; + @XStreamAlias("NumMailBlockFwd") + protected Integer numMailBlockFwd; + @XStreamAlias("NumOtherFwd") + protected Integer numOtherFwd; + @XStreamAlias("NumSuppressedFwd") + protected Integer numSuppressedFwd; + @XStreamAlias("NumUnsubscribes") + protected Integer numUnsubscribes; + @XStreamAlias("TotalOpens") + protected int totalOpens; + @XStreamAlias("TotalClickstreams") + protected int totalClickstreams; + @XStreamAlias("TotalClicks") + protected int totalClicks; + @XStreamAlias("TotalConversions") + protected int totalConversions; + @XStreamAlias("TotalAttachments") + protected int totalAttachments; + @XStreamAlias("TotalForwards") + protected int totalForwards; + @XStreamAlias("TotalMediaPlays") + protected int totalMediaPlays; + @XStreamAlias("TotalBounces") + protected int totalBounces; + @XStreamAlias("TotalOptOuts") + protected int totalOptOuts; + + /** + * Gets the value of the mailingId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMailingId() { + return mailingId; + } + + /** + * Sets the value of the mailingId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMailingId(Long value) { + this.mailingId = value; + } + + /** + * Gets the value of the reportId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getReportId() { + return reportId; + } + + /** + * Sets the value of the reportId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setReportId(Long value) { + this.reportId = value; + } + + /** + * Gets the value of the scheduledTS property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScheduledTS() { + return scheduledTS; + } + + /** + * Sets the value of the scheduledTS property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScheduledTS(String value) { + this.scheduledTS = value; + } + + /** + * Gets the value of the mailingName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMailingName() { + return mailingName; + } + + /** + * Sets the value of the mailingName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMailingName(String value) { + this.mailingName = value; + } + + /** + * Gets the value of the listName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getListName() { + return listName; + } + + /** + * Sets the value of the listName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setListName(String value) { + this.listName = value; + } + + /** + * Gets the value of the listId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getListId() { + return listId; + } + + /** + * Sets the value of the listId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setListId(Long value) { + this.listId = value; + } + + /** + * Gets the value of the parentListId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentListId() { + return parentListId; + } + + /** + * Sets the value of the parentListId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentListId(Long value) { + this.parentListId = value; + } + + /** + * Gets the value of the userName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserName() { + return userName; + } + + /** + * Sets the value of the userName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserName(String value) { + this.userName = value; + } + + /** + * Gets the value of the sentTS property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSentTS() { + return sentTS; + } + + /** + * Sets the value of the sentTS property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSentTS(String value) { + this.sentTS = value; + } + + /** + * Gets the value of the sentDateTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSentDateTime() { + return sentDateTime; + } + + /** + * Sets the value of the sentDateTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSentDateTime(String value) { + this.sentDateTime = value; + } + + /** + * Gets the value of the numSent property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumSent() { + return numSent; + } + + /** + * Sets the value of the numSent property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumSent(Integer value) { + this.numSent = value; + } + + /** + * Gets the value of the subject property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubject() { + return subject; + } + + /** + * Sets the value of the subject property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubject(String value) { + this.subject = value; + } + + /** + * Gets the value of the visibility property. + * + * + */ + public String getVisibility() { + if ("Shared".equals(visibility)) + { + return "1"; + } else { + return "0"; + } + } + + /** + * Sets the value of the visibility property. + * + * + */ + public void setVisibility(String privateShared) { + this.visibility = privateShared; + } + + /** + * Gets the value of the queryId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getQueryId() { + return queryId; + } + + /** + * Sets the value of the queryId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setQueryId(Long value) { + this.queryId = value; + } + + /** + * Gets the value of the queryName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQueryName() { + return queryName; + } + + /** + * Sets the value of the queryName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQueryName(String value) { + this.queryName = value; + } + + /** + * Gets the value of the contactListId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getContactListId() { + return contactListId; + } + + /** + * Sets the value of the contactListId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setContactListId(Long value) { + this.contactListId = value; + } + + /** + * Gets the value of the contactListName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContactListName() { + return contactListName; + } + + /** + * Sets the value of the contactListName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContactListName(String value) { + this.contactListName = value; + } + + /** + * Gets the value of the tags property. + * + * @return + * possible object is + * {@link TagsElementType } + * + */ + public com.silverpop.api.client.result.elements.TagsElementType getTags() { + return tags; + } + + /** + * Sets the value of the tags property. + * + * @param value + * allowed object is + * {@link TagsElementType } + * + */ + public void setTags(com.silverpop.api.client.result.elements.TagsElementType value) { + this.tags = value; + } + + /** + * Gets the value of the numSeeds property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumSeeds() { + return numSeeds; + } + + /** + * Sets the value of the numSeeds property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumSeeds(Integer value) { + this.numSeeds = value; + } + + /** + * Gets the value of the numSuppressed property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumSuppressed() { + return numSuppressed; + } + + /** + * Sets the value of the numSuppressed property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumSuppressed(Integer value) { + this.numSuppressed = value; + } + + /** + * Gets the value of the numInboxMonitored property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumInboxMonitored() { + return numInboxMonitored; + } + + /** + * Sets the value of the numInboxMonitored property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumInboxMonitored(Integer value) { + this.numInboxMonitored = value; + } + + /** + * Gets the value of the numBounceHard property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumBounceHard() { + return numBounceHard; + } + + /** + * Sets the value of the numBounceHard property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumBounceHard(Integer value) { + this.numBounceHard = value; + } + + /** + * Gets the value of the numBounceSoft property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumBounceSoft() { + return numBounceSoft; + } + + /** + * Sets the value of the numBounceSoft property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumBounceSoft(Integer value) { + this.numBounceSoft = value; + } + + /** + * Gets the value of the numUniqueOpen property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueOpen() { + return numUniqueOpen; + } + + /** + * Sets the value of the numUniqueOpen property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueOpen(Integer value) { + this.numUniqueOpen = value; + } + + /** + * Gets the value of the numGrossOpen property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossOpen() { + return numGrossOpen; + } + + /** + * Sets the value of the numGrossOpen property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossOpen(Integer value) { + this.numGrossOpen = value; + } + + /** + * Gets the value of the numUniqueClick property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueClick() { + return numUniqueClick; + } + + /** + * Sets the value of the numUniqueClick property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueClick(Integer value) { + this.numUniqueClick = value; + } + + /** + * Gets the value of the numGrossClick property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossClick() { + return numGrossClick; + } + + /** + * Sets the value of the numGrossClick property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossClick(Integer value) { + this.numGrossClick = value; + } + + /** + * Gets the value of the numUniqueAttach property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueAttach() { + return numUniqueAttach; + } + + /** + * Sets the value of the numUniqueAttach property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueAttach(Integer value) { + this.numUniqueAttach = value; + } + + /** + * Gets the value of the numGrossAttach property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossAttach() { + return numGrossAttach; + } + + /** + * Sets the value of the numGrossAttach property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossAttach(Integer value) { + this.numGrossAttach = value; + } + + /** + * Gets the value of the numUniqueClickStreams property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueClickStreams() { + return numUniqueClickStreams; + } + + /** + * Sets the value of the numUniqueClickStreams property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueClickStreams(Integer value) { + this.numUniqueClickStreams = value; + } + + /** + * Gets the value of the numGrossClickStreams property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossClickStreams() { + return numGrossClickStreams; + } + + /** + * Sets the value of the numGrossClickStreams property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossClickStreams(Integer value) { + this.numGrossClickStreams = value; + } + + /** + * Gets the value of the numUniqueMedia property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueMedia() { + return numUniqueMedia; + } + + /** + * Sets the value of the numUniqueMedia property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueMedia(Integer value) { + this.numUniqueMedia = value; + } + + /** + * Gets the value of the numGrossMedia property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossMedia() { + return numGrossMedia; + } + + /** + * Sets the value of the numGrossMedia property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossMedia(Integer value) { + this.numGrossMedia = value; + } + + /** + * Gets the value of the numGrossAbuse property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossAbuse() { + return numGrossAbuse; + } + + /** + * Sets the value of the numGrossAbuse property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossAbuse(Integer value) { + this.numGrossAbuse = value; + } + + /** + * Gets the value of the numGrossChangeAddress property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossChangeAddress() { + return numGrossChangeAddress; + } + + /** + * Sets the value of the numGrossChangeAddress property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossChangeAddress(Integer value) { + this.numGrossChangeAddress = value; + } + + /** + * Gets the value of the numGrossMailBlock property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossMailBlock() { + return numGrossMailBlock; + } + + /** + * Sets the value of the numGrossMailBlock property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossMailBlock(Integer value) { + this.numGrossMailBlock = value; + } + + /** + * Gets the value of the numGrossMailRestriction property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossMailRestriction() { + return numGrossMailRestriction; + } + + /** + * Sets the value of the numGrossMailRestriction property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossMailRestriction(Integer value) { + this.numGrossMailRestriction = value; + } + + /** + * Gets the value of the numGrossOther property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossOther() { + return numGrossOther; + } + + /** + * Sets the value of the numGrossOther property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossOther(Integer value) { + this.numGrossOther = value; + } + + /** + * Gets the value of the numConversions property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumConversions() { + return numConversions; + } + + /** + * Sets the value of the numConversions property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumConversions(Integer value) { + this.numConversions = value; + } + + /** + * Gets the value of the numConversionAmount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumConversionAmount() { + return numConversionAmount; + } + + /** + * Sets the value of the numConversionAmount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumConversionAmount(Integer value) { + this.numConversionAmount = value; + } + + /** + * Gets the value of the numBounceHardFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumBounceHardFwd() { + return numBounceHardFwd; + } + + /** + * Sets the value of the numBounceHardFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumBounceHardFwd(Integer value) { + this.numBounceHardFwd = value; + } + + /** + * Gets the value of the numBounceSoftFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumBounceSoftFwd() { + return numBounceSoftFwd; + } + + /** + * Sets the value of the numBounceSoftFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumBounceSoftFwd(Integer value) { + this.numBounceSoftFwd = value; + } + + /** + * Gets the value of the numConversionAmountFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumConversionAmountFwd() { + return numConversionAmountFwd; + } + + /** + * Sets the value of the numConversionAmountFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumConversionAmountFwd(Integer value) { + this.numConversionAmountFwd = value; + } + + /** + * Gets the value of the numAttachOpenFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumAttachOpenFwd() { + return numAttachOpenFwd; + } + + /** + * Sets the value of the numAttachOpenFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumAttachOpenFwd(Integer value) { + this.numAttachOpenFwd = value; + } + + /** + * Gets the value of the numClickFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumClickFwd() { + return numClickFwd; + } + + /** + * Sets the value of the numClickFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumClickFwd(Integer value) { + this.numClickFwd = value; + } + + /** + * Gets the value of the numUniqueForwardFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueForwardFwd() { + return numUniqueForwardFwd; + } + + /** + * Sets the value of the numUniqueForwardFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueForwardFwd(Integer value) { + this.numUniqueForwardFwd = value; + } + + /** + * Gets the value of the numGrossForwardFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossForwardFwd() { + return numGrossForwardFwd; + } + + /** + * Sets the value of the numGrossForwardFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossForwardFwd(Integer value) { + this.numGrossForwardFwd = value; + } + + /** + * Gets the value of the numUniqueConversionsFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueConversionsFwd() { + return numUniqueConversionsFwd; + } + + /** + * Sets the value of the numUniqueConversionsFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueConversionsFwd(Integer value) { + this.numUniqueConversionsFwd = value; + } + + /** + * Gets the value of the numGrossConversionsFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossConversionsFwd() { + return numGrossConversionsFwd; + } + + /** + * Sets the value of the numGrossConversionsFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossConversionsFwd(Integer value) { + this.numGrossConversionsFwd = value; + } + + /** + * Gets the value of the numUniqueClickstreamFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueClickstreamFwd() { + return numUniqueClickstreamFwd; + } + + /** + * Sets the value of the numUniqueClickstreamFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueClickstreamFwd(Integer value) { + this.numUniqueClickstreamFwd = value; + } + + /** + * Gets the value of the numGrossClickstreamFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossClickstreamFwd() { + return numGrossClickstreamFwd; + } + + /** + * Sets the value of the numGrossClickstreamFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossClickstreamFwd(Integer value) { + this.numGrossClickstreamFwd = value; + } + + /** + * Gets the value of the numUniqueClickFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueClickFwd() { + return numUniqueClickFwd; + } + + /** + * Sets the value of the numUniqueClickFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueClickFwd(Integer value) { + this.numUniqueClickFwd = value; + } + + /** + * Gets the value of the numGrossClickFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossClickFwd() { + return numGrossClickFwd; + } + + /** + * Sets the value of the numGrossClickFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossClickFwd(Integer value) { + this.numGrossClickFwd = value; + } + + /** + * Gets the value of the numUniqueAttachOpenFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueAttachOpenFwd() { + return numUniqueAttachOpenFwd; + } + + /** + * Sets the value of the numUniqueAttachOpenFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueAttachOpenFwd(Integer value) { + this.numUniqueAttachOpenFwd = value; + } + + /** + * Gets the value of the numGrossAttachOpenFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossAttachOpenFwd() { + return numGrossAttachOpenFwd; + } + + /** + * Sets the value of the numGrossAttachOpenFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossAttachOpenFwd(Integer value) { + this.numGrossAttachOpenFwd = value; + } + + /** + * Gets the value of the numUniqueMediaFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueMediaFwd() { + return numUniqueMediaFwd; + } + + /** + * Sets the value of the numUniqueMediaFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueMediaFwd(Integer value) { + this.numUniqueMediaFwd = value; + } + + /** + * Gets the value of the numGrossMediaFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossMediaFwd() { + return numGrossMediaFwd; + } + + /** + * Sets the value of the numGrossMediaFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossMediaFwd(Integer value) { + this.numGrossMediaFwd = value; + } + + /** + * Gets the value of the numUniqueOpenFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUniqueOpenFwd() { + return numUniqueOpenFwd; + } + + /** + * Sets the value of the numUniqueOpenFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUniqueOpenFwd(Integer value) { + this.numUniqueOpenFwd = value; + } + + /** + * Gets the value of the numGrossOpenFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumGrossOpenFwd() { + return numGrossOpenFwd; + } + + /** + * Sets the value of the numGrossOpenFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumGrossOpenFwd(Integer value) { + this.numGrossOpenFwd = value; + } + + /** + * Gets the value of the numAbuseFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumAbuseFwd() { + return numAbuseFwd; + } + + /** + * Sets the value of the numAbuseFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumAbuseFwd(Integer value) { + this.numAbuseFwd = value; + } + + /** + * Gets the value of the numChangeAddressFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumChangeAddressFwd() { + return numChangeAddressFwd; + } + + /** + * Sets the value of the numChangeAddressFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumChangeAddressFwd(Integer value) { + this.numChangeAddressFwd = value; + } + + /** + * Gets the value of the numMailRestrictionFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumMailRestrictionFwd() { + return numMailRestrictionFwd; + } + + /** + * Sets the value of the numMailRestrictionFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumMailRestrictionFwd(Integer value) { + this.numMailRestrictionFwd = value; + } + + /** + * Gets the value of the numMailBlockFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumMailBlockFwd() { + return numMailBlockFwd; + } + + /** + * Sets the value of the numMailBlockFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumMailBlockFwd(Integer value) { + this.numMailBlockFwd = value; + } + + /** + * Gets the value of the numOtherFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumOtherFwd() { + return numOtherFwd; + } + + /** + * Sets the value of the numOtherFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumOtherFwd(Integer value) { + this.numOtherFwd = value; + } + + /** + * Gets the value of the numSuppressedFwd property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumSuppressedFwd() { + return numSuppressedFwd; + } + + /** + * Sets the value of the numSuppressedFwd property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumSuppressedFwd(Integer value) { + this.numSuppressedFwd = value; + } + + /** + * Gets the value of the numUnsubscribes property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNumUnsubscribes() { + return numUnsubscribes; + } + + /** + * Sets the value of the numUnsubscribes property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumUnsubscribes(Integer value) { + this.numUnsubscribes = value; + } + + public int getTotalOpens() { + return totalOpens; + } + + public void setTotalOpens(int totalOpens) { + this.totalOpens = totalOpens; + } + + public int getTotalClickstreams() { + return totalClickstreams; + } + + public void setTotalClickstreams(int totalClickstreams) { + this.totalClickstreams = totalClickstreams; + } + + public int getTotalClicks() { + return totalClicks; + } + + public void setTotalClicks(int totalClicks) { + this.totalClicks = totalClicks; + } + + public int getTotalConversions() { + return totalConversions; + } + + public void setTotalConversions(int totalConversions) { + this.totalConversions = totalConversions; + } + + public int getTotalAttachments() { + return totalAttachments; + } + + public void setTotalAttachments(int totalAttachments) { + this.totalAttachments = totalAttachments; + } + + public int getTotalForwards() { + return totalForwards; + } + + public void setTotalForwards(int totalForwards) { + this.totalForwards = totalForwards; + } + + public int getTotalMediaPlays() { + return totalMediaPlays; + } + + public void setTotalMediaPlays(int totalMediaPlays) { + this.totalMediaPlays = totalMediaPlays; + } + + public int getTotalBounces() { + return totalBounces; + } + + public void setTotalBounces(int totalBounces) { + this.totalBounces = totalBounces; + } + + public int getTotalOptOuts() { + return totalOptOuts; + } + + public void setTotalOptOuts(int totalOptOuts) { + this.totalOptOuts = totalOptOuts; + } + + public long getJobId() { + return jobId; + } + + public void setJobId(long jobId) { + this.jobId = jobId; + } + + public long getMailingID() { + return mailingID; + } + + public void setMailingID(long mailingID) { + this.mailingID = mailingID; + } + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public String getDateSent() { + return dateSent; + } + + public void setDateSent(String dateSent) { + this.dateSent = dateSent; + } +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/MultiMailingsElementType.java b/src/main/java/com/silverpop/api/client/command/elements/MultiMailingsElementType.java new file mode 100644 index 0000000..2d0ce96 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/MultiMailingsElementType.java @@ -0,0 +1,63 @@ + + +package com.silverpop.api.client.command.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; + +@XStreamAlias("MAILING") +public class MultiMailingsElementType { + + @XStreamAlias("MAILING_ID") + protected Long mailingid; + @XStreamAlias("REPORT_ID") + protected Long reportid; + + /** + * Gets the value of the mailingid property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMAILINGID() { + return mailingid; + } + + /** + * Sets the value of the mailingid property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMAILINGID(Long value) { + this.mailingid = value; + } + + /** + * Gets the value of the reportid property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getREPORTID() { + return reportid; + } + + /** + * Sets the value of the reportid property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setREPORTID(Long value) { + this.reportid = value; + } + +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/SelectionValuesElementType.java b/src/main/java/com/silverpop/api/client/command/elements/SelectionValuesElementType.java new file mode 100644 index 0000000..8981f10 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/SelectionValuesElementType.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SelectionValuesElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SelectionValuesElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="VALUE" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XStreamAlias("SELECTION_VALUES") +public class SelectionValuesElementType { + + @XStreamImplicit(itemFieldName = "VALUE") + protected List values; + + /** + * Gets the value of the values property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the values property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getVALUES().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getVALUES() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/TagsElementType.java b/src/main/java/com/silverpop/api/client/command/elements/TagsElementType.java new file mode 100644 index 0000000..231941c --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/TagsElementType.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.result.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TagsElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="TagsElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XStreamAlias("Tags") +public class TagsElementType { + + @XStreamImplicit(itemFieldName = "Tag") + protected List tags; + + /** + * Gets the value of the tags property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tags property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTags().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getTags() { + if (tags == null) { + tags = new ArrayList(); + } + return this.tags; + } + +} From b897886904d57f72e01c6d3e88b8468626c52a49 Mon Sep 17 00:00:00 2001 From: lyonspe Date: Fri, 23 Oct 2015 13:33:44 -0400 Subject: [PATCH 4/5] WebTrackingDataExport --- .../command/WebTrackingDataExportCommand.java | 222 ++++++++++++++++++ .../result/WebTrackingDataExportResult.java | 29 +++ 2 files changed, 251 insertions(+) create mode 100644 src/main/java/com/silverpop/api/client/command/WebTrackingDataExportCommand.java create mode 100644 src/main/java/com/silverpop/api/client/result/WebTrackingDataExportResult.java diff --git a/src/main/java/com/silverpop/api/client/command/WebTrackingDataExportCommand.java b/src/main/java/com/silverpop/api/client/command/WebTrackingDataExportCommand.java new file mode 100644 index 0000000..a59d1a9 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/WebTrackingDataExportCommand.java @@ -0,0 +1,222 @@ +package com.silverpop.api.client.command; + +import com.silverpop.api.client.ApiCommand; +import com.silverpop.api.client.ApiResult; +import com.silverpop.api.client.XmlApiProperties; +import com.silverpop.api.client.command.elements.ColumnsElementType; +import com.silverpop.api.client.command.elements.DomainsElementType; +import com.silverpop.api.client.command.elements.SitesElementType; +import com.silverpop.api.client.result.WebTrackingDataExportResult; +import com.thoughtworks.xstream.annotations.XStreamAlias; + +/** + * Created by PeterJLyons on 10/16/2015. + */ +@XmlApiProperties("WebTrackingDataExport") +public class WebTrackingDataExportCommand implements ApiCommand { + + @XStreamAlias("EVENT_DATE_START") + protected String eventdatestart; + @XStreamAlias("EVENT_DATE_END") + protected String eventdateend; + @XStreamAlias("DOMAINS") + protected DomainsElementType domains; + @XStreamAlias("SITES") + protected SitesElementType sites; + @XStreamAlias("DATABASE_ID") + protected Long databaseid; + @XStreamAlias("EXPORT_FORMAT") + protected Integer exportformat; + @XStreamAlias("EXPORT_FILE_NAME") + protected String exportfilename; + @XStreamAlias("FILE_ENCODING") + protected ImportListCommand.FileEncoding fileencoding; + @XStreamAlias("EMAIL") + protected String email; + @XStreamAlias("MOVE_TO_FTP") + protected String movetoftp; + @XStreamAlias("ALL_EVENT_TYPES") + protected String alleventtypes; + @XStreamAlias("INCLUDE_SITE_VISIT_EVENTS") + protected String includesitevisitevents; + @XStreamAlias("INCLUDE_PAGE_VIEW_EVENTS") + protected String includepageviewevents; + @XStreamAlias("INCLUDE_CLICK_EVENTS") + protected String includeclickevents; + @XStreamAlias("INCLUDE_FORM_SUBMIT_EVENTS") + protected String includeformsubmitevents; + @XStreamAlias("INCLUDE_DOWNLOAD_EVENTS") + protected String includedownloadevents; + @XStreamAlias("INCLUDE_MEDIA_EVENTS") + protected String includemediaevents; + @XStreamAlias("INCLUDE_SHARE_TO_SOCIAL_EVENTS") + protected String includesharetosocialevents; + @XStreamAlias("INCLUDE_CUSTOM_EVENTS") + protected String includecustomevents; + @XStreamAlias("COLUMNS") + protected ColumnsElementType columns; + + public Class getResultType() { + return WebTrackingDataExportResult.class; + } + + public String getEventdatestart() { + return eventdatestart; + } + + public void setEventdatestart(String eventdatestart) { + this.eventdatestart = eventdatestart; + } + + public String getEventdateend() { + return eventdateend; + } + + public void setEventdateend(String eventdateend) { + this.eventdateend = eventdateend; + } + + public DomainsElementType getDomains() { + return domains; + } + + public void setDomains(DomainsElementType domains) { + this.domains = domains; + } + + public SitesElementType getSites() { + return sites; + } + + public void setSites(SitesElementType sites) { + this.sites = sites; + } + + public Long getDatabaseid() { + return databaseid; + } + + public void setDatabaseid(Long databaseid) { + this.databaseid = databaseid; + } + + public Integer getExportformat() { + return exportformat; + } + + public void setExportformat(Integer exportformat) { + this.exportformat = exportformat; + } + + public String getExportfilename() { + return exportfilename; + } + + public void setExportfilename(String exportfilename) { + this.exportfilename = exportfilename; + } + + public ImportListCommand.FileEncoding getFileencoding() { + return fileencoding; + } + + public void setFileencoding(ImportListCommand.FileEncoding fileencoding) { + this.fileencoding = fileencoding; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getMovetoftp() { + return movetoftp; + } + + public void setMovetoftp(String movetoftp) { + this.movetoftp = movetoftp; + } + + public String getAlleventtypes() { + return alleventtypes; + } + + public void setAlleventtypes(String alleventtypes) { + this.alleventtypes = alleventtypes; + } + + public String getIncludesitevisitevents() { + return includesitevisitevents; + } + + public void setIncludesitevisitevents(String includesitevisitevents) { + this.includesitevisitevents = includesitevisitevents; + } + + public String getIncludepageviewevents() { + return includepageviewevents; + } + + public void setIncludepageviewevents(String includepageviewevents) { + this.includepageviewevents = includepageviewevents; + } + + public String getIncludeclickevents() { + return includeclickevents; + } + + public void setIncludeclickevents(String includeclickevents) { + this.includeclickevents = includeclickevents; + } + + public String getIncludeformsubmitevents() { + return includeformsubmitevents; + } + + public void setIncludeformsubmitevents(String includeformsubmitevents) { + this.includeformsubmitevents = includeformsubmitevents; + } + + public String getIncludedownloadevents() { + return includedownloadevents; + } + + public void setIncludedownloadevents(String includedownloadevents) { + this.includedownloadevents = includedownloadevents; + } + + public String getIncludemediaevents() { + return includemediaevents; + } + + public void setIncludemediaevents(String includemediaevents) { + this.includemediaevents = includemediaevents; + } + + public String getIncludesharetosocialevents() { + return includesharetosocialevents; + } + + public void setIncludesharetosocialevents(String includesharetosocialevents) { + this.includesharetosocialevents = includesharetosocialevents; + } + + public String getIncludecustomevents() { + return includecustomevents; + } + + public void setIncludecustomevents(String includecustomevents) { + this.includecustomevents = includecustomevents; + } + + public ColumnsElementType getColumns() { + return columns; + } + + public void setColumns(ColumnsElementType columns) { + this.columns = columns; + } +} diff --git a/src/main/java/com/silverpop/api/client/result/WebTrackingDataExportResult.java b/src/main/java/com/silverpop/api/client/result/WebTrackingDataExportResult.java new file mode 100644 index 0000000..947d84b --- /dev/null +++ b/src/main/java/com/silverpop/api/client/result/WebTrackingDataExportResult.java @@ -0,0 +1,29 @@ +package com.silverpop.api.client.result; + +import com.silverpop.api.client.ApiResult; +import com.thoughtworks.xstream.annotations.XStreamAlias; + +/** + * Created by PeterJLyons on 10/16/2015. + */ +public class WebTrackingDataExportResult implements ApiResult { + + @XStreamAlias("SUCCESS") + protected boolean success; + @XStreamAlias("JOB_ID") + protected long jobId; + @XStreamAlias("FILE_PATH") + protected String filePath; + + public boolean isSuccess() { + return success; + } + + public long getJobId() { + return jobId; + } + + public String getFilePath() { + return filePath; + } +} From 71c72029c41e16f11c46591c9610c30095efd98a Mon Sep 17 00:00:00 2001 From: lyonspe Date: Fri, 23 Oct 2015 13:07:26 -0400 Subject: [PATCH 5/5] Add necessary elements for WebTrackingDataExport --- .../command/elements/DomainsElementType.java | 76 +++++++++ .../command/elements/MetricsExportFormat.java | 48 ++++++ .../command/elements/SitesElementType.java | 75 +++++++++ .../TrackingMetricMailingElementType.java | 150 ++++++++++++++++++ 4 files changed, 349 insertions(+) create mode 100644 src/main/java/com/silverpop/api/client/command/elements/DomainsElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/MetricsExportFormat.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/SitesElementType.java create mode 100644 src/main/java/com/silverpop/api/client/command/elements/TrackingMetricMailingElementType.java diff --git a/src/main/java/com/silverpop/api/client/command/elements/DomainsElementType.java b/src/main/java/com/silverpop/api/client/command/elements/DomainsElementType.java new file mode 100644 index 0000000..3a792e1 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/DomainsElementType.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DomainsElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="DomainsElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DOMAIN_ID" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XStreamAlias("DOMAINS") +public class DomainsElementType { + + @XStreamImplicit(itemFieldName = "DOMAIN_ID") + protected List domainids; + + /** + * Gets the value of the domainids property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the domainids property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDOMAINIDS().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getDOMAINIDS() { + if (domainids == null) { + domainids = new ArrayList(); + } + return this.domainids; + } + +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/MetricsExportFormat.java b/src/main/java/com/silverpop/api/client/command/elements/MetricsExportFormat.java new file mode 100644 index 0000000..cd47cee --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/MetricsExportFormat.java @@ -0,0 +1,48 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import com.thoughtworks.xstream.annotations.XStreamAlias; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MetricsExportFormat. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="MetricsExportFormat">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="CSV"/>
+ *     <enumeration value="TSV"/>
+ *     <enumeration value="PIPE"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XStreamAlias("EXPORT_FORMAT") +public enum MetricsExportFormat { + + CSV, + TSV, + PIPE; + + public String value() { + return name(); + } + + public static MetricsExportFormat fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/SitesElementType.java b/src/main/java/com/silverpop/api/client/command/elements/SitesElementType.java new file mode 100644 index 0000000..8df6bc4 --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/SitesElementType.java @@ -0,0 +1,75 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import java.util.ArrayList; +import java.util.List; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import com.thoughtworks.xstream.annotations.XStreamImplicit; + + +/** + *

Java class for SitesElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SitesElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SITE_ID" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XStreamAlias("SITES") +public class SitesElementType { + + @XStreamImplicit(itemFieldName = "SITE_ID") + protected List siteids; + + /** + * Gets the value of the siteids property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the siteids property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSITEIDS().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getSITEIDS() { + if (siteids == null) { + siteids = new ArrayList(); + } + return this.siteids; + } + + public void setSITEIDS(List siteids) { + this.siteids = siteids; + } +} diff --git a/src/main/java/com/silverpop/api/client/command/elements/TrackingMetricMailingElementType.java b/src/main/java/com/silverpop/api/client/command/elements/TrackingMetricMailingElementType.java new file mode 100644 index 0000000..819561e --- /dev/null +++ b/src/main/java/com/silverpop/api/client/command/elements/TrackingMetricMailingElementType.java @@ -0,0 +1,150 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.08.25 at 11:03:15 AM EDT +// + + +package com.silverpop.api.client.command.elements; + +import com.silverpop.api.client.XmlApiProperties; +import com.thoughtworks.xstream.annotations.XStreamAlias; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TrackingMetricMailingElementType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="TrackingMetricMailingElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="JOB_ID" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MAILING_ID" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="FILE_PATH" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SENT_DATE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlApiProperties("MAILING") +public class TrackingMetricMailingElementType { + + @XStreamAlias("JOB_ID") + protected Long jobid; + @XStreamAlias("MAILING_ID") + protected Long mailingid; + @XStreamAlias("FILE_PATH") + protected String filepath; + @XStreamAlias("SENT_DATE") + protected String sentdate; + + /** + * Gets the value of the jobid property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getJOBID() { + return jobid; + } + + /** + * Sets the value of the jobid property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setJOBID(Long value) { + this.jobid = value; + } + + /** + * Gets the value of the mailingid property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMAILINGID() { + return mailingid; + } + + /** + * Sets the value of the mailingid property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMAILINGID(Long value) { + this.mailingid = value; + } + + /** + * Gets the value of the filepath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFILEPATH() { + return filepath; + } + + /** + * Sets the value of the filepath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFILEPATH(String value) { + this.filepath = value; + } + + /** + * Gets the value of the sentdate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSENTDATE() { + return sentdate; + } + + /** + * Sets the value of the sentdate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSENTDATE(String value) { + this.sentdate = value; + } + +}