modzyClient.getRelatedModels

Retrieve related models

modzyClient.getRelatedModels(String modelId)

Returns a detailed list of all the models that share tags with a given model.

Parameters

ParameterTypeDescriptionExample
modelIdjava.lang.StringA model identifier assigned by Modzy."ed542963de"

Returns

List<com.modzy.sdk.model.Model> A detailed list of models that share at least one tag with a given model.

Examples

List<Model> models =  modzyClient.getRelatedModels("ed542963de");
System.out.println("Related models "+models.lenght());

You can also use an existing model object

Model model = modzyClient.getModel("ed542963de");
List<Model> models =  modzyClient.getRelatedModels(model);
System.out.println("Related models "+models.lenght());