From c717b1cd06c3d935cc5d70208bebe57215492eab Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 1 Aug 2008 18:21:12 +0000 Subject: Client: Fixed subcribing code Previously, after subscribing to a subscription, the client would do nothing to notify the Central Server of this change. Now, an XML-RPC function is sent to it. --- client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/trunk/src/com/fourisland') diff --git a/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java b/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java index 2d8ad07..eae52a1 100644 --- a/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java +++ b/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java @@ -120,6 +120,10 @@ class SubscriptionFileThread implements Runnable { s.setCategory(headerMap.get("Category")); Wrapper.addSubscription(s); + XmlRpc xmlrpc = new XmlRpc("addSubscription"); + xmlrpc.addParam(headerMap.get("Subscription")); + xmlrpc.execute(); + status.setText("You've sucessfully subscribed to that website"); } else { status.setText("Error: Subscription file is not well-formed"); -- cgit 1.4.1