// Path: app/src/main/java/com/nilhcem/droidconde/data/app/model/Session.java
// @Value
// public class Session implements Parcelable {
// 
//     public static final Parcelable.Creator<Session> CREATOR = new Parcelable.Creator<Session>() {
//         public Session createFromParcel(Parcel source) {
//             return new Session(source);
//         }
// 
//         public Session[] newArray(int size) {
//             return new Session[size];
//         }
//     };
// 
//     int id;
//     String room;
//     List<Speaker> speakers;
//     String title;
//     String description;
//     LocalDateTime fromTime;
//     LocalDateTime toTime;
// 
//     public Session(int id, String room, List<Speaker> speakers, String title, String description, LocalDateTime fromTime, LocalDateTime toTime) {
//         this.id = id;
//         this.room = room;
//         this.speakers = speakers;
//         this.title = title;
//         this.description = description;
//         this.fromTime = fromTime;
//         this.toTime = toTime;
//     }
// 
//     protected Session(Parcel in) {
//         id = in.readInt();
//         room = in.readString();
//         speakers = in.createTypedArrayList(Speaker.CREATOR);
//         title = in.readString();
//         description = in.readString();
//         fromTime = (LocalDateTime) in.readSerializable();
//         toTime = (LocalDateTime) in.readSerializable();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(id);
//         dest.writeString(room);
//         dest.writeTypedList(speakers);
//         dest.writeString(title);
//         dest.writeString(description);
//         dest.writeSerializable(fromTime);
//         dest.writeSerializable(toTime);
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/droidconde/data/app/model/Speaker.java
// @Value
// public class Speaker implements Parcelable {
// 
//     public static final Parcelable.Creator<Speaker> CREATOR = new Parcelable.Creator<Speaker>() {
//         public Speaker createFromParcel(Parcel source) {
//             return new Speaker(source);
//         }
// 
//         public Speaker[] newArray(int size) {
//             return new Speaker[size];
//         }
//     };
// 
//     int id;
//     String name;
//     String title;
//     String bio;
//     String website;
//     String twitter;
//     String github;
//     String photo;
// 
//     public Speaker(int id, String name, String title, String bio, String website, String twitter, String github, String photo) {
//         this.id = id;
//         this.name = name;
//         this.title = title;
//         this.bio = bio;
//         this.website = website;
//         this.twitter = twitter;
//         this.github = github;
//         this.photo = photo;
//     }
// 
//     protected Speaker(Parcel in) {
//         id = in.readInt();
//         name = in.readString();
//         title = in.readString();
//         bio = in.readString();
//         website = in.readString();
//         twitter = in.readString();
//         github = in.readString();
//         photo = in.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(id);
//         dest.writeString(name);
//         dest.writeString(title);
//         dest.writeString(bio);
//         dest.writeString(website);
//         dest.writeString(twitter);
//         dest.writeString(github);
//         dest.writeString(photo);
//     }
// }


import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Build;
import android.support.annotation.Nullable;
import com.nilhcem.droidconde.BuildConfig;
import com.nilhcem.droidconde.data.app.model.Session;
import com.nilhcem.droidconde.data.app.model.Speaker;
import java.util.List;
import java.util.Locale;
package com.nilhcem.droidconde.utils;




public final class App {

    private App() {
        throw new UnsupportedOperationException();
    }

    public static boolean isCompatible(int apiLevel) {
        return android.os.Build.VERSION.SDK_INT >= apiLevel;
    }

    public static String getVersion() {
        String version = String.format(Locale.US, "%s (#%d)", BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE);
        if (BuildConfig.INTERNAL_BUILD) {
            version = String.format(Locale.US, "%s — commit %s", version, BuildConfig.GIT_SHA);
        }
        return version;
    }

    public static void setExactAlarm(AlarmManager alarmManager, long triggerAtMillis, PendingIntent operation) {
        if (isCompatible(Build.VERSION_CODES.KITKAT)) {
            alarmManager.setExact(AlarmManager.RTC_WAKEUP, triggerAtMillis, operation);
        } else {
            alarmManager.set(AlarmManager.RTC_WAKEUP, triggerAtMillis, operation);
        }
    }

    @Nullable
    public static String getPhotoUrl(@Nullable Session session) {
        String photoUrl = null;
        if (session != null) {
// Path: app/src/main/java/com/nilhcem/droidconde/data/app/model/Session.java
// @Value
// public class Session implements Parcelable {
// 
//     public static final Parcelable.Creator<Session> CREATOR = new Parcelable.Creator<Session>() {
//         public Session createFromParcel(Parcel source) {
//             return new Session(source);
//         }
// 
//         public Session[] newArray(int size) {
//             return new Session[size];
//         }
//     };
// 
//     int id;
//     String room;
//     List<Speaker> speakers;
//     String title;
//     String description;
//     LocalDateTime fromTime;
//     LocalDateTime toTime;
// 
//     public Session(int id, String room, List<Speaker> speakers, String title, String description, LocalDateTime fromTime, LocalDateTime toTime) {
//         this.id = id;
//         this.room = room;
//         this.speakers = speakers;
//         this.title = title;
//         this.description = description;
//         this.fromTime = fromTime;
//         this.toTime = toTime;
//     }
// 
//     protected Session(Parcel in) {
//         id = in.readInt();
//         room = in.readString();
//         speakers = in.createTypedArrayList(Speaker.CREATOR);
//         title = in.readString();
//         description = in.readString();
//         fromTime = (LocalDateTime) in.readSerializable();
//         toTime = (LocalDateTime) in.readSerializable();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(id);
//         dest.writeString(room);
//         dest.writeTypedList(speakers);
//         dest.writeString(title);
//         dest.writeString(description);
//         dest.writeSerializable(fromTime);
//         dest.writeSerializable(toTime);
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/droidconde/data/app/model/Speaker.java
// @Value
// public class Speaker implements Parcelable {
// 
//     public static final Parcelable.Creator<Speaker> CREATOR = new Parcelable.Creator<Speaker>() {
//         public Speaker createFromParcel(Parcel source) {
//             return new Speaker(source);
//         }
// 
//         public Speaker[] newArray(int size) {
//             return new Speaker[size];
//         }
//     };
// 
//     int id;
//     String name;
//     String title;
//     String bio;
//     String website;
//     String twitter;
//     String github;
//     String photo;
// 
//     public Speaker(int id, String name, String title, String bio, String website, String twitter, String github, String photo) {
//         this.id = id;
//         this.name = name;
//         this.title = title;
//         this.bio = bio;
//         this.website = website;
//         this.twitter = twitter;
//         this.github = github;
//         this.photo = photo;
//     }
// 
//     protected Speaker(Parcel in) {
//         id = in.readInt();
//         name = in.readString();
//         title = in.readString();
//         bio = in.readString();
//         website = in.readString();
//         twitter = in.readString();
//         github = in.readString();
//         photo = in.readString();
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeInt(id);
//         dest.writeString(name);
//         dest.writeString(title);
//         dest.writeString(bio);
//         dest.writeString(website);
//         dest.writeString(twitter);
//         dest.writeString(github);
//         dest.writeString(photo);
//     }
// }


// Path: app/src/main/java/com/nilhcem/droidconde/utils/App.java
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Build;
import android.support.annotation.Nullable;
import com.nilhcem.droidconde.BuildConfig;
import com.nilhcem.droidconde.data.app.model.Session;
import com.nilhcem.droidconde.data.app.model.Speaker;
import java.util.List;
import java.util.Locale;

package com.nilhcem.droidconde.utils;




public final class App {

    private App() {
        throw new UnsupportedOperationException();
    }

    public static boolean isCompatible(int apiLevel) {
        return android.os.Build.VERSION.SDK_INT >= apiLevel;
    }

    public static String getVersion() {
        String version = String.format(Locale.US, "%s (#%d)", BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE);
        if (BuildConfig.INTERNAL_BUILD) {
            version = String.format(Locale.US, "%s — commit %s", version, BuildConfig.GIT_SHA);
        }
        return version;
    }

    public static void setExactAlarm(AlarmManager alarmManager, long triggerAtMillis, PendingIntent operation) {
        if (isCompatible(Build.VERSION_CODES.KITKAT)) {
            alarmManager.setExact(AlarmManager.RTC_WAKEUP, triggerAtMillis, operation);
        } else {
            alarmManager.set(AlarmManager.RTC_WAKEUP, triggerAtMillis, operation);
        }
    }

    @Nullable
    public static String getPhotoUrl(@Nullable Session session) {
        String photoUrl = null;
        if (session != null) {
            List<Speaker> speakers = session.getSpeakers();