Search in sources :

Example 1 with SyncStatus

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;
}
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)

Example 2 with SyncStatus

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;
}
Also used : ArrayOfLeadRecord(com.marketo.mktows.ArrayOfLeadRecord) LeadRecord(com.marketo.mktows.LeadRecord) ResultSyncLead(com.marketo.mktows.ResultSyncLead) ArrayOfSyncStatus(com.marketo.mktows.ArrayOfSyncStatus) LeadSyncStatus(com.marketo.mktows.LeadSyncStatus) SyncStatus(com.marketo.mktows.SyncStatus) SuccessSyncLead(com.marketo.mktows.SuccessSyncLead)

Aggregations

ArrayOfSyncStatus (com.marketo.mktows.ArrayOfSyncStatus)2 LeadSyncStatus (com.marketo.mktows.LeadSyncStatus)2 SyncStatus (com.marketo.mktows.SyncStatus)2 ArrayOfLeadRecord (com.marketo.mktows.ArrayOfLeadRecord)1 LeadRecord (com.marketo.mktows.LeadRecord)1 ResultSyncLead (com.marketo.mktows.ResultSyncLead)1 ResultSyncMultipleLeads (com.marketo.mktows.ResultSyncMultipleLeads)1 SuccessSyncLead (com.marketo.mktows.SuccessSyncLead)1 SuccessSyncMultipleLeads (com.marketo.mktows.SuccessSyncMultipleLeads)1