-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataPlugin.java
More file actions
52 lines (42 loc) · 1.23 KB
/
DataPlugin.java
File metadata and controls
52 lines (42 loc) · 1.23 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
50
51
52
package edu.cmu.qatar.cs214.hw.hw4;
import java.util.ArrayList;
import java.util.Date;
public interface DataPlugin {
/**
* @param userID
* the data to be collected for this user
* @return D where D is the list of the days the user was active
*/
public ArrayList<Date> getUserActivity(String userID);
/**
* @param userID
* the id for which to get all the firends
* @return D where D is the arraylist of all the firends
*/
public ArrayList<String> getUserFriends(String userID);
/**
* @param userID
* the id for which to get all the info
* @return the info in string format
*/
public ArrayList<String> getPersonalInfo(String userID);
/**
* @param userID
* the id for which to get all the recommended friends
* @return the recommended friends
*/
public ArrayList<String> getRecommendedFriends(String userID);
/**
* @param userID
* the id for which to get all the number of firneds
* @return number of friends
*/
public int getNumberFriends(String userID);
/**
* @param userID
* the id for which to get the status
* @return the status for userID
*/
public ArrayList<String> getStatus(String userID);
public String getSource();
}