use of com.marketo.mktows.ResultSyncLead 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