use of com.marketo.mktows.SyncStatus in project components by Talend.
the class MarketoSOAPClientTest method getSyncMultipleLeadsResult.
public SuccessSyncMultipleLeads getSyncMultipleLeadsResult() {
SuccessSyncMultipleLeads result = new SuccessSyncMultipleLeads();
ResultSyncMultipleLeads rsml = new ResultSyncMultipleLeads();
ArrayOfSyncStatus aoss = new ArrayOfSyncStatus();
SyncStatus ss = new SyncStatus();
ss.setLeadId(12345);
ss.setStatus(LeadSyncStatus.CREATED);
ss.setError(objectFactory.createSyncStatusError(null));
aoss.getSyncStatuses().add(ss);
rsml.setSyncStatusList(aoss);
result.setResult(rsml);
return result;
}
use of com.marketo.mktows.SyncStatus in project components by Talend.
the class MarketoSOAPClientTest method getSyncLeadResult.
public SuccessSyncLead getSyncLeadResult() {
SuccessSyncLead resut = new SuccessSyncLead();
ResultSyncLead rsl = new ResultSyncLead();
rsl.setLeadId(12345);
SyncStatus status = new SyncStatus();
status.setLeadId(12345);
status.setStatus(LeadSyncStatus.CREATED);
status.setError(objectFactory.createSyncStatusError(null));
rsl.setSyncStatus(status);
LeadRecord r = objectFactory.createLeadRecord();
r.setId(objectFactory.createLeadRecordId(12345));
r.setEmail(objectFactory.createLeadRecordEmail("t@t.com"));
r.setForeignSysPersonId(objectFactory.createLeadRecordForeignSysPersonId(""));
r.setForeignSysType(objectFactory.createLeadRecordForeignSysType(null));
rsl.setLeadRecord(objectFactory.createResultSyncLeadLeadRecord(r));
resut.setResult(rsl);
return resut;
}
Aggregations