Search in sources :

Example 1 with ArrayOfSyncStatus

use of com.marketo.mktows.ArrayOfSyncStatus 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;
}
Also used : ArrayOfSyncStatus(com.marketo.mktows.ArrayOfSyncStatus) ResultSyncMultipleLeads(com.marketo.mktows.ResultSyncMultipleLeads) ArrayOfSyncStatus(com.marketo.mktows.ArrayOfSyncStatus) LeadSyncStatus(com.marketo.mktows.LeadSyncStatus) SyncStatus(com.marketo.mktows.SyncStatus) SuccessSyncMultipleLeads(com.marketo.mktows.SuccessSyncMultipleLeads)

Aggregations

ArrayOfSyncStatus (com.marketo.mktows.ArrayOfSyncStatus)1 LeadSyncStatus (com.marketo.mktows.LeadSyncStatus)1 ResultSyncMultipleLeads (com.marketo.mktows.ResultSyncMultipleLeads)1 SuccessSyncMultipleLeads (com.marketo.mktows.SuccessSyncMultipleLeads)1 SyncStatus (com.marketo.mktows.SyncStatus)1