Search in sources :

Example 1 with StructIGStickerCategory

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;
    });
}
Also used : StructIGStickerCategory(net.iGap.fragments.emoji.struct.StructIGStickerCategory) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 StructIGStickerCategory (net.iGap.fragments.emoji.struct.StructIGStickerCategory)1