Commit d9103bc3 authored by Varun Patil's avatar Varun Patil

Add getBodyURL to ShareURLMaker

parent 1aef2ad4
package in.ac.iitb.gymkhana.iitbapp; package in.ac.iitb.gymkhana.iitbapp;
import in.ac.iitb.gymkhana.iitbapp.data.Body;
import in.ac.iitb.gymkhana.iitbapp.data.Event; import in.ac.iitb.gymkhana.iitbapp.data.Event;
/** /**
...@@ -12,4 +13,8 @@ public final class ShareURLMaker { ...@@ -12,4 +13,8 @@ public final class ShareURLMaker {
public static final String getEventURL(Event event) { public static final String getEventURL(Event event) {
return WEB_HOST + "event/" + event.getEventStrID(); return WEB_HOST + "event/" + event.getEventStrID();
} }
public static final String getBodyURL(Body body) {
return WEB_HOST + "org/" + body.getBodyStrID();
}
} }
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