Search in sources :

Example 1 with AdvertisingSchedule

use of com.zype.android.zypeapi.model.AdvertisingSchedule in project zype-android by zype.

the class DbHelper method adScheduleApiToEntity.

public static List<AdSchedule> adScheduleApiToEntity(List<AdvertisingSchedule> schedule, String videoId) {
    List<AdSchedule> result = new ArrayList<>();
    for (AdvertisingSchedule item : schedule) {
        AdSchedule entity = new AdSchedule();
        entity.videoId = videoId;
        entity.offset = item.offset;
        entity.tag = item.tag;
        result.add(entity);
    }
    return result;
}
Also used : AdvertisingSchedule(com.zype.android.zypeapi.model.AdvertisingSchedule) AdSchedule(com.zype.android.Db.Entity.AdSchedule) ArrayList(java.util.ArrayList)

Aggregations

AdSchedule (com.zype.android.Db.Entity.AdSchedule)1 AdvertisingSchedule (com.zype.android.zypeapi.model.AdvertisingSchedule)1 ArrayList (java.util.ArrayList)1