|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.main.campustream.APIs
public class APIs
Constructor Summary | |
---|---|
APIs()
|
Method Summary | |
---|---|
static java.lang.String |
FindFriends(java.lang.String friendUsername)
Returns a list of users with the specified name (Partial Matching) as a json string, |
static java.lang.String |
GetFriendList()
Returns a list of users that the current user is following as a json string. |
static java.lang.String |
GetNewsComments(java.lang.String id)
Returns the comments on the specified new or event item as a json string. |
static java.lang.String |
GetNewsList(java.lang.String section)
Returns the specified section of news and events as a json string. |
static java.lang.String |
GetNewsListSection(java.lang.String section,
java.lang.String category)
Returns the specified section of news and events as a json string. |
static java.lang.String |
GetQuestionList(java.lang.String section,
java.lang.String sorting)
Returns a list of questions in the specified section with the specified sorting method as a json string. |
static java.lang.String |
GetQuestionResponses(java.lang.String id)
Returns the responses for the specified question as a json string. |
static java.lang.String |
GetStream()
Returns the 50 most recent public status messages as a json string. |
static java.lang.String |
GetStreamComments(java.lang.String id)
Returns the comments for the specified status update as a json string. |
static java.lang.String |
GetUserActivity(java.lang.String userName)
Returns a user's 50 most recent status messages as a json string. |
static java.lang.String |
GetUserProfile(java.lang.String username)
Returns a user's profile as a json string. |
static java.lang.String |
GetUserStatus(java.lang.String userName)
Returns the specified user's most recent status message as a json string. |
static java.lang.String |
GetUserWithID(java.lang.String id)
Returns the user with the specified ID as a json string. |
static void |
rateNews(java.lang.String direction,
java.lang.String id)
Rates the specified news or event item up or down. |
static void |
rateQuestion(java.lang.String direction,
java.lang.String id)
Rates the specified question response up or down. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public APIs()
Method Detail |
---|
public static java.lang.String GetUserProfile(java.lang.String username)
username
-
public static java.lang.String GetFriendList()
public static java.lang.String GetUserStatus(java.lang.String userName)
userName
-
public static java.lang.String GetUserActivity(java.lang.String userName)
userName
-
public static java.lang.String FindFriends(java.lang.String friendUsername)
friendUsername
-
public static java.lang.String GetStream()
public static java.lang.String GetQuestionList(java.lang.String section, java.lang.String sorting)
section
- sorting
-
public static java.lang.String GetQuestionResponses(java.lang.String id)
id
-
public static java.lang.String GetUserWithID(java.lang.String id)
id
-
public static void rateQuestion(java.lang.String direction, java.lang.String id)
direction
- up OR downid
- public static java.lang.String GetNewsList(java.lang.String section)
section
-
public static java.lang.String GetNewsListSection(java.lang.String section, java.lang.String category)
section
- category
-
public static java.lang.String GetNewsComments(java.lang.String id)
id
-
public static void rateNews(java.lang.String direction, java.lang.String id)
direction
- up OR downid
- public static java.lang.String GetStreamComments(java.lang.String id)
id
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |