Commit bde18ccd authored by Varun Patil's avatar Varun Patil

Use new share URL structure for event URL

parent 32615123
......@@ -10,6 +10,6 @@ public final class ShareURLMaker {
public static final String WEB_HOST = "https://instiapp.wncc-iitb.org/";
public static final String getEventURL(Event event) {
return WEB_HOST + "event/" + event.getEventID();
return WEB_HOST + "event/" + event.getEventStrID();
}
}
......@@ -18,6 +18,9 @@ public class Event {
@ColumnInfo(name = "id")
@SerializedName("id")
String eventID;
@ColumnInfo(name = "str_id")
@SerializedName("str_id")
String eventStrID;
@ColumnInfo(name = "name")
@SerializedName("name")
String eventName;
......@@ -79,6 +82,14 @@ public class Event {
this.eventID = eventID;
}
public String getEventStrID() {
return eventStrID;
}
public void setEventStrID(String eventStrID) {
this.eventStrID = eventStrID;
}
public String getEventName() {
return eventName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment