Search in sources :

Example 6 with LeadRecord

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

LeadRecord (com.marketo.mktows.LeadRecord)6 ArrayOfLeadRecord (com.marketo.mktows.ArrayOfLeadRecord)5 ArrayOfAttribute (com.marketo.mktows.ArrayOfAttribute)3 Attribute (com.marketo.mktows.Attribute)3 JAXBElement (javax.xml.bind.JAXBElement)3 QName (javax.xml.namespace.QName)3 Field (org.apache.avro.Schema.Field)3 ArrayOfString (com.marketo.mktows.ArrayOfString)2 ArrayList (java.util.ArrayList)2 IndexedRecord (org.apache.avro.generic.IndexedRecord)2 MarketoException (org.talend.components.marketo.runtime.client.type.MarketoException)2 ActivityRecord (com.marketo.mktows.ActivityRecord)1 ArrayOfSyncStatus (com.marketo.mktows.ArrayOfSyncStatus)1 LeadChangeRecord (com.marketo.mktows.LeadChangeRecord)1 LeadSyncStatus (com.marketo.mktows.LeadSyncStatus)1 ResultGetLead (com.marketo.mktows.ResultGetLead)1 ResultGetMultipleLeads (com.marketo.mktows.ResultGetMultipleLeads)1 ResultSyncLead (com.marketo.mktows.ResultSyncLead)1 SuccessGetLead (com.marketo.mktows.SuccessGetLead)1 SuccessGetMultipleLeads (com.marketo.mktows.SuccessGetMultipleLeads)1