private void addPostParams(final Request request) {
        if (from != null) {
            request.addPostParam("From", from.toString());
        }

        if (to != null) {
            request.addPostParam("To", to.toString());
        }

        if (statusCallback != null) {
            request.addPostParam("StatusCallback", statusCallback.toString());
        }

        if (statusCallbackMethod != null) {
            request.addPostParam("StatusCallbackMethod", statusCallbackMethod.toString());
        }

        if (statusCallbackEvent != null) {
            for (String prop : statusCallbackEvent) {
                request.addPostParam("StatusCallbackEvent", prop);
            }
        }

        if (timeout != null) {
            request.addPostParam("Timeout", timeout.toString());
        }

        if (record != null) {
            request.addPostParam("Record", record.toString());
        }

        if (muted != null) {
            request.addPostParam("Muted", muted.toString());
        }

        if (beep != null) {
            request.addPostParam("Beep", beep);
        }

        if (startConferenceOnEnter != null) {
            request.addPostParam("StartConferenceOnEnter", startConferenceOnEnter.toString());
        }

        if (endConferenceOnExit != null) {
            request.addPostParam("EndConferenceOnExit", endConferenceOnExit.toString());
        }

        if (waitUrl != null) {
            request.addPostParam("WaitUrl", waitUrl.toString());
        }

        if (waitMethod != null) {
            request.addPostParam("WaitMethod", waitMethod.toString());
        }

        if (earlyMedia != null) {
            request.addPostParam("EarlyMedia", earlyMedia.toString());
        }

        if (maxParticipants != null) {
            request.addPostParam("MaxParticipants", maxParticipants.toString());
        }

        if (conferenceRecord != null) {
            request.addPostParam("ConferenceRecord", conferenceRecord);
        }

        if (conferenceTrim != null) {
            request.addPostParam("ConferenceTrim", conferenceTrim);
        }

        if (conferenceStatusCallback != null) {
            request.addPostParam("ConferenceStatusCallback", conferenceStatusCallback.toString());
        }

        if (conferenceStatusCallbackMethod != null) {
            request.addPostParam("ConferenceStatusCallbackMethod", conferenceStatusCallbackMethod.toString());
        }

        if (conferenceStatusCallbackEvent != null) {
            for (String prop : conferenceStatusCallbackEvent) {
                request.addPostParam("ConferenceStatusCallbackEvent", prop);
            }
        }

        if (recordingChannels != null) {
            request.addPostParam("RecordingChannels", recordingChannels);
        }

        if (recordingStatusCallback != null) {
            request.addPostParam("RecordingStatusCallback", recordingStatusCallback.toString());
        }

        if (recordingStatusCallbackMethod != null) {
            request.addPostParam("RecordingStatusCallbackMethod", recordingStatusCallbackMethod.toString());
        }

        if (sipAuthUsername != null) {
            request.addPostParam("SipAuthUsername", sipAuthUsername);
        }

        if (sipAuthPassword != null) {
            request.addPostParam("SipAuthPassword", sipAuthPassword);
        }

        if (region != null) {
            request.addPostParam("Region", region);
        }

        if (conferenceRecordingStatusCallback != null) {
            request.addPostParam("ConferenceRecordingStatusCallback", conferenceRecordingStatusCallback.toString());
        }

        if (conferenceRecordingStatusCallbackMethod != null) {
            request.addPostParam("ConferenceRecordingStatusCallbackMethod", conferenceRecordingStatusCallbackMethod.toString());
        }

        if (recordingStatusCallbackEvent != null) {
            for (String prop : recordingStatusCallbackEvent) {
                request.addPostParam("RecordingStatusCallbackEvent", prop);
            }
        }

        if (conferenceRecordingStatusCallbackEvent != null) {
            for (String prop : conferenceRecordingStatusCallbackEvent) {
                request.addPostParam("ConferenceRecordingStatusCallbackEvent", prop);
            }
        }

        if (coaching != null) {
            request.addPostParam("Coaching", coaching.toString());
        }

        if (callSidToCoach != null) {
            request.addPostParam("CallSidToCoach", callSidToCoach);
        }
    }
private void addPostParams ( final Request request ) { if ( from != null ) { request . addPostParam ( "From" , from . toString ( ) ) ; } if ( to != null ) { request . addPostParam ( "To" , to . toString ( ) ) ; } if ( statusCallback != null ) { request . addPostParam ( "StatusCallback" , statusCallback . toString ( ) ) ; } if ( statusCallbackMethod != null ) { request . addPostParam ( "StatusCallbackMethod" , statusCallbackMethod . toString ( ) ) ; } if ( statusCallbackEvent != null ) { for ( String prop : statusCallbackEvent ) { request . addPostParam ( "StatusCallbackEvent" , prop ) ; } } if ( timeout != null ) { request . addPostParam ( "Timeout" , timeout . toString ( ) ) ; } if ( record != null ) { request . addPostParam ( "Record" , record . toString ( ) ) ; } if ( muted != null ) { request . addPostParam ( "Muted" , muted . toString ( ) ) ; } if ( beep != null ) { request . addPostParam ( "Beep" , beep ) ; } if ( startConferenceOnEnter != null ) { request . addPostParam ( "StartConferenceOnEnter" , startConferenceOnEnter . toString ( ) ) ; } if ( endConferenceOnExit != null ) { request . addPostParam ( "EndConferenceOnExit" , endConferenceOnExit . toString ( ) ) ; } if ( waitUrl != null ) { request . addPostParam ( "WaitUrl" , waitUrl . toString ( ) ) ; } if ( waitMethod != null ) { request . addPostParam ( "WaitMethod" , waitMethod . toString ( ) ) ; } if ( earlyMedia != null ) { request . addPostParam ( "EarlyMedia" , earlyMedia . toString ( ) ) ; } if ( maxParticipants != null ) { request . addPostParam ( "MaxParticipants" , maxParticipants . toString ( ) ) ; } if ( conferenceRecord != null ) { request . addPostParam ( "ConferenceRecord" , conferenceRecord ) ; } if ( conferenceTrim != null ) { request . addPostParam ( "ConferenceTrim" , conferenceTrim ) ; } if ( conferenceStatusCallback != null ) { request . addPostParam ( "ConferenceStatusCallback" , conferenceStatusCallback . toString ( ) ) ; } if ( conferenceStatusCallbackMethod != null ) { request . addPostParam ( "ConferenceStatusCallbackMethod" , conferenceStatusCallbackMethod . toString ( ) ) ; } if ( conferenceStatusCallbackEvent != null ) { for ( String prop : conferenceStatusCallbackEvent ) { request . addPostParam ( "ConferenceStatusCallbackEvent" , prop ) ; } } if ( recordingChannels != null ) { request . addPostParam ( "RecordingChannels" , recordingChannels ) ; } if ( recordingStatusCallback != null ) { request . addPostParam ( "RecordingStatusCallback" , recordingStatusCallback . toString ( ) ) ; } if ( recordingStatusCallbackMethod != null ) { request . addPostParam ( "RecordingStatusCallbackMethod" , recordingStatusCallbackMethod . toString ( ) ) ; } if ( sipAuthUsername != null ) { request . addPostParam ( "SipAuthUsername" , sipAuthUsername ) ; } if ( sipAuthPassword != null ) { request . addPostParam ( "SipAuthPassword" , sipAuthPassword ) ; } if ( region != null ) { request . addPostParam ( "Region" , region ) ; } if ( conferenceRecordingStatusCallback != null ) { request . addPostParam ( "ConferenceRecordingStatusCallback" , conferenceRecordingStatusCallback . toString ( ) ) ; } if ( conferenceRecordingStatusCallbackMethod != null ) { request . addPostParam ( "ConferenceRecordingStatusCallbackMethod" , conferenceRecordingStatusCallbackMethod . toString ( ) ) ; } if ( recordingStatusCallbackEvent != null ) { for ( String prop : recordingStatusCallbackEvent ) { request . addPostParam ( "RecordingStatusCallbackEvent" , prop ) ; } } if ( conferenceRecordingStatusCallbackEvent != null ) { for ( String prop : conferenceRecordingStatusCallbackEvent ) { request . addPostParam ( "ConferenceRecordingStatusCallbackEvent" , prop ) ; } } if ( coaching != null ) { request . addPostParam ( "Coaching" , coaching . toString ( ) ) ; } if ( callSidToCoach != null ) { request . addPostParam ( "CallSidToCoach" , callSidToCoach ) ; } }
Add the requested post parameters to the Request.

@param request Request to add post params to