-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddEvent.java
More file actions
49 lines (42 loc) · 1.07 KB
/
AddEvent.java
File metadata and controls
49 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.example.findme_technovation;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.util.Random;
import java.util.ArrayList;
import java.util.List;
public class AddEvent extends CalendarActivity {
// fields:
String nameOfEvent;
String time;
boolean isMedicine;
public AddEvent(){
nameOfEvent = "unittled event";
time = "all day";
isMedicine = false;
}
public AddEvent(String nameOfEvent, String time, boolean isMedicine ){
this.nameOfEvent = nameOfEvent;
this.time = time;
this.isMedicine = isMedicine;
if(isMedicine){
changeAlarmVal();
}
}
public String getNameOfEvent(){
return "";
}
public String getTime(){
return "";
}
public boolean getIsMedicine(){
return false;
}
public void changeAlarmVal(){
}
// create getter + setters
}