Sending a message

    Table of contents
    No headers

     

    To send a message to another TurboExchange user, first create the message class, and populate the fields:

    //Create new Recovery Job
    var recoveryJob = new turboExchange.Messages.turboMessage.RecoveryJob();
    //Populate fields
    recoveryJob._messageEvent = turboExchange.Messages.turboMessage.RecoveryJob.MessageEvent.NewJob;
    recoveryJob._jobNumber = "ABC123";
    recoveryJob._driverLocation ="M1 J20 North";
    //etc...

     

    Then to send to TurboID (e.g. 9123456)

    Program.turboClient.Send(9123456, recoveryJob);

     

    OR

     

    If you want  to include a message receipt index (e.g 12345), then:

    Program.turboClient.Send(9123456, recoveryJob, 12345);

     

    OR

     

    If you also want to change the default minutes to live to 30 minutes (default is 2 for 'Recovery' messages):

    Program.turboClient.Send(9123456, recoveryJob, 12345, 30);

     

    OR

    For more control, you need to create a Message Wrapper.