SMACK - subscription depth

I try to find the way to insert the subscriptionDepth in the database.

I 've got a SubscribeForm with some value :

SubscribeForm subForm = new SubscribeForm(FormType.submit);

subForm.setDeliverOn(true);

subForm.setDigestFrequency(5000);

subForm.setDigestOn(true);

subForm.setIncludeBody(true);

but I can find something like setSubscriptionDepth…

Someone can help me??

If this is a missing field, you can simply add it via the generic Form methods for adding a new field. The setXXX methods just do this under the hood as a convenience.

thanks for you answer.

I find this methode on the API SMACK SubscribeOptionFields where you can define the subscription_depth.

But I don’t know how I can use it.

Thanks rcollier I use the form methods like that:

SubscribeForm subForm = new SubscribeForm(FormType.submit);

subForm.setDeliverOn(true);

subForm.setDigestFrequency(5000);

subForm.setDigestOn(true);

subForm.setIncludeBody(true);

FormField field = new FormField(SubscribeOptionFields.subscription_type.getFieldName());

** field.setType(FormField.TYPE_LIST_SINGLE);**

** field.addValue(“items”);**

subForm.addField(field);

it’s ok