// Path: app/src/main/java/team6/iguide/IssueDataModel/IssueMarker.java
// public class IssueMarker {
// 
//     @SerializedName("pid")
//     @Expose
//     private int pid;
//     @SerializedName("type")
//     @Expose
//     private String type;
//     @SerializedName("status")
//     @Expose
//     private String status;
//     @SerializedName("room")
//     @Expose
//     private String room;
//     @SerializedName("title")
//     @Expose
//     private String title;
//     @SerializedName("description")
//     @Expose
//     private String description;
//     @SerializedName("markerLat")
//     @Expose
//     private Double markerLat;
//     @SerializedName("markerLon")
//     @Expose
//     private Double markerLon;
//     @SerializedName("createdAt")
//     @Expose
//     private String createdAt;
//     @SerializedName("updatedAt")
//     @Expose
//     private String updatedAt;
// 
// 
//     public int getPid() {
//         return pid;
//     }
// 
//     public void setPid(int pid) {
//         this.pid = pid;
//     }
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public String getStatus() {
//         return status;
//     }
// 
//     public void setStatus(String status) {
//         this.status = status;
//     }
// 
//     public String getRoom() {
//         return room;
//     }
// 
//     public void setRoom(String room) {
//         this.room = room;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public Double getMarkerLat() {
//         return markerLat;
//     }
// 
//     public void setMarkerLat(Double markerLat) {
//         this.markerLat = markerLat;
//     }
// 
//     public Double getMarkerLon() {
//         return markerLon;
//     }
// 
//     public void setMarkerLon(Double markerLon) {
//         this.markerLon = markerLon;
//     }
// 
//     public String getCreatedAt() {
//         return createdAt;
//     }
// 
//     public void setCreatedAt(String createdAt) {
//         this.createdAt = createdAt;
//     }
// 
//     public String getUpdatedAt() {
//         return updatedAt;
//     }
// 
//     public void setUpdatedAt(String updatedAt) {
//         this.updatedAt = updatedAt;
//     }
// 
// }


import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.Snackbar;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.InfoWindow;
import com.mapbox.mapboxsdk.views.MapView;
import java.util.List;
import team6.iguide.IssueDataModel.IssueMarker;
package team6.iguide;

/***
 iGuide
 Copyright (C) 2015 Cameron Mace

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */





public class CampusIssueInfoWindow extends InfoWindow {
    // This class is used to handle what happens when an issue marker is clicked.

    private Context mContext;
    String title;
    String ref;
    String shortTitle;
    String shortRef;

// Path: app/src/main/java/team6/iguide/IssueDataModel/IssueMarker.java
// public class IssueMarker {
// 
//     @SerializedName("pid")
//     @Expose
//     private int pid;
//     @SerializedName("type")
//     @Expose
//     private String type;
//     @SerializedName("status")
//     @Expose
//     private String status;
//     @SerializedName("room")
//     @Expose
//     private String room;
//     @SerializedName("title")
//     @Expose
//     private String title;
//     @SerializedName("description")
//     @Expose
//     private String description;
//     @SerializedName("markerLat")
//     @Expose
//     private Double markerLat;
//     @SerializedName("markerLon")
//     @Expose
//     private Double markerLon;
//     @SerializedName("createdAt")
//     @Expose
//     private String createdAt;
//     @SerializedName("updatedAt")
//     @Expose
//     private String updatedAt;
// 
// 
//     public int getPid() {
//         return pid;
//     }
// 
//     public void setPid(int pid) {
//         this.pid = pid;
//     }
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public String getStatus() {
//         return status;
//     }
// 
//     public void setStatus(String status) {
//         this.status = status;
//     }
// 
//     public String getRoom() {
//         return room;
//     }
// 
//     public void setRoom(String room) {
//         this.room = room;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public Double getMarkerLat() {
//         return markerLat;
//     }
// 
//     public void setMarkerLat(Double markerLat) {
//         this.markerLat = markerLat;
//     }
// 
//     public Double getMarkerLon() {
//         return markerLon;
//     }
// 
//     public void setMarkerLon(Double markerLon) {
//         this.markerLon = markerLon;
//     }
// 
//     public String getCreatedAt() {
//         return createdAt;
//     }
// 
//     public void setCreatedAt(String createdAt) {
//         this.createdAt = createdAt;
//     }
// 
//     public String getUpdatedAt() {
//         return updatedAt;
//     }
// 
//     public void setUpdatedAt(String updatedAt) {
//         this.updatedAt = updatedAt;
//     }
// 
// }


// Path: app/src/main/java/team6/iguide/CampusIssueInfoWindow.java
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.Snackbar;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.InfoWindow;
import com.mapbox.mapboxsdk.views.MapView;
import java.util.List;
import team6.iguide.IssueDataModel.IssueMarker;

package team6.iguide;

/***
 iGuide
 Copyright (C) 2015 Cameron Mace

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */





public class CampusIssueInfoWindow extends InfoWindow {
    // This class is used to handle what happens when an issue marker is clicked.

    private Context mContext;
    String title;
    String ref;
    String shortTitle;
    String shortRef;

    public CampusIssueInfoWindow(final Context context, final Activity activity, final MapView mv, final List<IssueMarker> issueInfo, final int position) {