// Path: src/main/java/com/alwaysallthetime/messagebeast/model/CustomPlace.java
// public class CustomPlace extends Place {
// 
//     private String id;
// 
//     /**
//      * Construct a new CustomPlace.
//      *
//      * @param id
//      * @param place
//      */
//     public CustomPlace(String id, Place place) {
//         this.id = id;
// 
//         this.name = place.getName();
//         this.address = place.getAddress();
//         this.addressExtended = place.getAddressExtended();
//         this.locality = place.getLocality();
//         this.region = place.getRegion();
//         this.adminRegion = place.getAdminRegion();
//         this.postTown = place.getPostTown();
//         this.poBox = place.getPoBox();
//         this.postcode = place.getPostcode();
//         this.countryCode = place.getCountryCode();
//         this.latitude = place.getLatitude();
//         this.longitude = place.getLongitude();
//         this.isOpen = place.isOpen();
//         this.telephone = place.getTelephone();
//         this.fax = place.getFax();
//         this.website = place.getWebsite();
//         this.categories = place.getCategories();
//     }
// 
//     public String getId() {
//         return id;
//     }
// }


import com.alwaysallthetime.adnlib.Annotations;
import com.alwaysallthetime.adnlib.data.Annotation;
import com.alwaysallthetime.adnlib.data.File;
import com.alwaysallthetime.messagebeast.model.CustomPlace;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
package com.alwaysallthetime.messagebeast;



/**
 * A factory for Annotations.
 */
public class AnnotationFactory {

    /**
     * Get an Annotation of type net.app.core.checkin with the given Factual id.
     *
     * The Annotation will have a +net.app.core.place key whose associated Map
     * will contain a "factual_id" key/value pair.
     *
     * @param factualId the Factual id to embed in the checkin annotation.
     * @return an Annotation of type net.app.core.checkin with the given Factual id.
     */
    public static Annotation getCheckinAnnotation(String factualId) {
        HashMap<String, Object> value = new HashMap<String, Object>(1);
        HashMap<String, String> replacement = new HashMap<String, String>(1);
        replacement.put("factual_id", factualId);
        value.put(Annotations.REPLACEMENT_PLACE, replacement);
        Annotation a = new Annotation(Annotations.CHECKIN);
        a.setValue(value);
        return a;
    }

// Path: src/main/java/com/alwaysallthetime/messagebeast/model/CustomPlace.java
// public class CustomPlace extends Place {
// 
//     private String id;
// 
//     /**
//      * Construct a new CustomPlace.
//      *
//      * @param id
//      * @param place
//      */
//     public CustomPlace(String id, Place place) {
//         this.id = id;
// 
//         this.name = place.getName();
//         this.address = place.getAddress();
//         this.addressExtended = place.getAddressExtended();
//         this.locality = place.getLocality();
//         this.region = place.getRegion();
//         this.adminRegion = place.getAdminRegion();
//         this.postTown = place.getPostTown();
//         this.poBox = place.getPoBox();
//         this.postcode = place.getPostcode();
//         this.countryCode = place.getCountryCode();
//         this.latitude = place.getLatitude();
//         this.longitude = place.getLongitude();
//         this.isOpen = place.isOpen();
//         this.telephone = place.getTelephone();
//         this.fax = place.getFax();
//         this.website = place.getWebsite();
//         this.categories = place.getCategories();
//     }
// 
//     public String getId() {
//         return id;
//     }
// }


// Path: src/main/java/com/alwaysallthetime/messagebeast/AnnotationFactory.java
import com.alwaysallthetime.adnlib.Annotations;
import com.alwaysallthetime.adnlib.data.Annotation;
import com.alwaysallthetime.adnlib.data.File;
import com.alwaysallthetime.messagebeast.model.CustomPlace;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

package com.alwaysallthetime.messagebeast;



/**
 * A factory for Annotations.
 */
public class AnnotationFactory {

    /**
     * Get an Annotation of type net.app.core.checkin with the given Factual id.
     *
     * The Annotation will have a +net.app.core.place key whose associated Map
     * will contain a "factual_id" key/value pair.
     *
     * @param factualId the Factual id to embed in the checkin annotation.
     * @return an Annotation of type net.app.core.checkin with the given Factual id.
     */
    public static Annotation getCheckinAnnotation(String factualId) {
        HashMap<String, Object> value = new HashMap<String, Object>(1);
        HashMap<String, String> replacement = new HashMap<String, String>(1);
        replacement.put("factual_id", factualId);
        value.put(Annotations.REPLACEMENT_PLACE, replacement);
        Annotation a = new Annotation(Annotations.CHECKIN);
        a.setValue(value);
        return a;
    }

    public static Annotation getOhaiLocationAnnotation(CustomPlace customPlace) {