Author: jerome
Date: 2009-10-19 11:16:09 +0200 (Mon, 19 Oct 2009)
New Revision: 5725
Modified:
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/resources/plugin.xml
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookFunctions.java
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookPlugin.java
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/configuration/PluginFacebookConfiguration.java
Log:
* Removed 'share' and 'pokes' options.
Modified:
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/resources/plugin.xml
===================================================================
---
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/resources/plugin.xml
2009-10-19 09:12:03 UTC (rev 5724)
+++
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/resources/plugin.xml
2009-10-19 09:16:09 UTC (rev 5725)
@@ -51,12 +51,6 @@
description="Check event invites"
type="boolean"
defaultValue="true" />
- <parameter
- category="Gadget parameters"
- name="showPokes"
- description="Check pokes"
- type="boolean"
- defaultValue="true" />
</parameters>
<commands>
<command
Modified:
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookFunctions.java
===================================================================
---
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookFunctions.java
2009-10-19 09:12:03 UTC (rev 5724)
+++
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookFunctions.java
2009-10-19 09:16:09 UTC (rev 5725)
@@ -30,7 +30,6 @@
import com.google.code.facebookapi.FacebookException;
import com.google.code.facebookapi.ProfileField;
-import com.google.code.facebookapi.schema.FriendsGetResponse;
import com.google.code.facebookapi.schema.User;
import com.google.code.facebookapi.schema.UsersGetInfoResponse;
@@ -52,42 +51,6 @@
/**
- * Return the user friend list as Vector<String>.
- * @return
- */
- public Vector<String> getFriends()
- {
- Vector<String> friendsList = new Vector<String>();
-
- try
- {
- // Get friends list
- connection.getClient().friends_get();
- FriendsGetResponse response = (FriendsGetResponse)
connection.getClient().getResponsePOJO();
- List<Long> friends = response.getUid();
-
- // Go fetch the information for the user list of user
ids
- connection.getClient().users_getInfo(friends,
EnumSet.of(ProfileField.NAME));
-
- UsersGetInfoResponse userResponse =
(UsersGetInfoResponse) connection.getClient().getResponsePOJO();
-
- // Print out the user information
- List<User> users = userResponse.getUser();
- for (User user : users)
- {
- friendsList.add(user.getName());
- }
- }
- catch (FacebookException e)
- {
- return null;
- }
-
- return friendsList;
- }
-
-
- /**
* Gets all notifications.
*/
private Hashtable<String, Vector<String>> getUserNotification()
@@ -126,66 +89,6 @@
}
/**
- * Getting pokes notifications.
- */
- if(notifs.contains("<pokes"))
- {
- String pokesString;
-
- try
- {
- pokesString =
notifs.substring(notifs.indexOf("<pokes"), notifs.indexOf("</pokes>"));
- }
- catch(IndexOutOfBoundsException indexError)
- {
- pokesString =
notifs.substring(notifs.indexOf("<pokes"), notifs.indexOf("/>"));
- }
-
- Vector<String> pkDatas = new Vector<String>();
-
- String unreaded = pokesString.substring(
-
pokesString.indexOf("<unread>") + "<unread>".length(),
-
pokesString.indexOf("</unread>"));
-
- pkDatas.add(unreaded);
-
- if(Integer.valueOf(unreaded).intValue() > 0 )
- {
- notifications.put("pokes", pkDatas);
- }
- }
-
- /**
- * Getting shares notifications.
- */
- if(notifs.contains("<shares"))
- {
- String sharesString;
-
- try
- {
- sharesString =
notifs.substring(notifs.indexOf("<shares"), notifs.indexOf("</shares>"));
- }
- catch(IndexOutOfBoundsException indexError)
- {
- sharesString =
notifs.substring(notifs.indexOf("<shares"), notifs.indexOf("/>"));
- }
-
- Vector<String> shDatas = new Vector<String>();
-
- String unreaded = sharesString.substring(
-
sharesString.indexOf("<unread>") + "<unread>".length(),
-
sharesString.indexOf("</unread>"));
-
- shDatas.add(unreaded);
-
- if(Integer.valueOf(unreaded).intValue() > 0)
- {
- notifications.put("shares", shDatas);
- }
- }
-
- /**
* Get the friend_requests notifications.
*/
if(notifs.contains("<friend_requests"))
@@ -400,23 +303,6 @@
/**
- * Return how many pokes user has.
- * @return
- */
- public Integer getPokesCount()
- {
- if(this.notifications.containsKey("pokes"))
- {
- return
Integer.valueOf(this.notifications.get("pokes").get(0));
- }
- else
- {
- return 0;
- }
- }
-
-
- /**
* Return the number of friend requests.
* @return
*/
Modified:
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookPlugin.java
===================================================================
---
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookPlugin.java
2009-10-19 09:12:03 UTC (rev 5724)
+++
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/FacebookPlugin.java
2009-10-19 09:16:09 UTC (rev 5725)
@@ -171,28 +171,6 @@
}
}
- if(this.configuration().getShowPokes())
- {
- if(functions.getPokesCount().intValue() > 0)
- {
- news = true;
- if(this.check && (!throwNotif))
- {
- throwNotif = true;
- this.throwResult(true);
- }
-
- if(functions.getPokesCount().intValue()
== 1)
- {
- throwMessage("You have one
poke");
- }
- else
- {
- throwMessage("You have {0}
pokes", functions.getPokesCount().intValue());
- }
- }
- }
-
if((!throwNotif) && this.check )
{
this.throwResult(false);
Modified:
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/configuration/PluginFacebookConfiguration.java
===================================================================
---
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/configuration/PluginFacebookConfiguration.java
2009-10-19 09:12:03 UTC (rev 5724)
+++
software_suite_v3/software/plugin/plugin-facebook/branches/october_release/src/com/kysoh/plugins/facebook/configuration/PluginFacebookConfiguration.java
2009-10-19 09:16:09 UTC (rev 5725)
@@ -32,7 +32,6 @@
private boolean showFriendRequests = true;
private boolean showGroupsInvites = true;
private boolean showEventsInvites = true;
- private boolean showPokes = true;
private boolean notifyEmail = true;
/**
@@ -95,25 +94,6 @@
}
/**
- * Return true if user want to hear his pokes notifications.
- * @return
- */
- public boolean getShowPokes()
- {
- return this.showPokes;
- }
-
-
- /**
- * Set the show pokes parameter value.
- * @param aShowPokes
- */
- public void setShowPokes(boolean aShowPokes)
- {
- this.showPokes = aShowPokes;
- }
-
- /**
* Return true if user want to hear his events invites.
* @return
*/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn