diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 18:21:12 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 18:21:12 +0000 |
commit | c717b1cd06c3d935cc5d70208bebe57215492eab (patch) | |
tree | 608d9ae095449b07f868f66f4471dc9bbb6483ef | |
parent | be96f198642944da86e8c43b0eab5e7cd0dacdea (diff) | |
download | instadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.tar.gz instadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.tar.bz2 instadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.zip |
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.
-rw-r--r-- | client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
120 | s.setCategory(headerMap.get("Category")); | 120 | s.setCategory(headerMap.get("Category")); |
121 | Wrapper.addSubscription(s); | 121 | Wrapper.addSubscription(s); |
122 | 122 | ||
123 | XmlRpc xmlrpc = new XmlRpc("addSubscription"); | ||
124 | xmlrpc.addParam(headerMap.get("Subscription")); | ||
125 | xmlrpc.execute(); | ||
126 | |||
123 | status.setText("You've sucessfully subscribed to that website"); | 127 | status.setText("You've sucessfully subscribed to that website"); |
124 | } else { | 128 | } else { |
125 | status.setText("Error: Subscription file is not well-formed"); | 129 | status.setText("Error: Subscription file is not well-formed"); |