This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
android-app/src/com/studentersamfundet/app/Event.java
T

32 lines
704 B
Java

package com.studentersamfundet.app;
public class Event {
public int id;
public String title;
public String description;
public String date;
public String location;
public String category;
public Event(int id, String title, String description, String date, String location, String category) {
this.id = id;
this.title = title;
this.description = description;
this.date = date;
this.location = location;
this.category = category;
}
public String toString() {
return this.title;
}
public String getDateString() {
String date = this.date;
String month = date.substring(5, 7);
String day = date.substring(8, 10);
return day + ". " + DataHandler.toMonth(month);
}
}