use of com.applozic.mobicomkit.sync.SyncChannelFeed in project Applozic-Android-SDK by AppLozic.
the class ChannelService method syncChannels.
public synchronized void syncChannels() {
final MobiComUserPreference userpref = MobiComUserPreference.getInstance(context);
SyncChannelFeed syncChannelFeed = channelClientService.getChannelFeed(userpref.getChannelSyncTime());
if (syncChannelFeed == null) {
return;
}
if (syncChannelFeed.isSuccess()) {
processChannelList(syncChannelFeed.getResponse());
BroadcastService.sendUpdate(context, BroadcastService.INTENT_ACTIONS.CHANNEL_SYNC.toString());
}
userpref.setChannelSyncTime(syncChannelFeed.getGeneratedAt());
}
Aggregations