use of net.iGap.fragments.emoji.struct.StructIGStickerCategory in project iGap-Android by KianIranian-STDG.
the class StickerRepository method getStickerCategory.
public Single<List<StructIGStickerCategory>> getStickerCategory() {
return stickerApi.getCategories().subscribeOn(Schedulers.newThread()).map(dataModel -> {
List<StructIGStickerCategory> categories = new ArrayList<>();
for (int i = 0; i < dataModel.getData().size(); i++) {
StructIGStickerCategory category = new StructIGStickerCategory(dataModel.getData().get(i));
categories.add(category);
}
return categories;
});
}
Aggregations