public static function binaryBatch(Api\MtBatchBinarySmsCreate $batch)
    {
        $fields = Serialize::_createBatchHelper($batch);

        $fields['type'] = 'mt_binary';
        $fields['body'] = base64_encode($batch->getBody());
        $fields['udh'] = bin2hex($batch->getUdh());

        return Serialize::_toJson($fields);
    }
public static function binaryBatch(Api\MtBatchBinarySmsCreate $batch)
    {
        $fields = Serialize::_createBatchHelper($batch);

        $fields['type'] = 'mt_binary';
        $fields['body'] = base64_encode($batch->getBody());
        $fields['udh'] = bin2hex($batch->getUdh());

        return Serialize::_toJson($fields);
    }
public static function binaryBatch ( Api \ MtBatchBinarySmsCreate $ batch ) { $ fields = Serialize :: _createBatchHelper ( $ batch ) ; $ fields [ 'type' ] = 'mt_binary' ; $ fields [ 'body' ] = base64_encode ( $ batch -> getBody ( ) ) ; $ fields [ 'udh' ] = bin2hex ( $ batch -> getUdh ( ) ) ; return Serialize :: _toJson ( $ fields ) ; }
Serializes the given binary batch into JSON.

@param Api\MtBatchBinarySmsCreate $batch the batch to serialize

@return string JSON formatted string
Serializes the given binary batch into JSON .