package eu.livotov.labs.android.robotools.api;

import android.util.Xml;
import eu.livotov.labs.android.robotools.net.RTHTTPError;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

import java.io.IOException;
import java.io.StringReader;

/**
 * (c) Livotov Labs Ltd. 2012
 * Date: 29.01.13
 */
public abstract class RTApiCommandResult {
    private RTApiCommand command;

    protected void loadResponseData(RTApiCommand command, final String data) {
        this.command = command;
        processCommandSpecificData(data);
    }

    protected void loadErrorResponseData(RTApiCommand command,
                                         RTHTTPError error) {
        this.command = command;
        processCommandSpecificErrorData(error);
    }

    protected abstract void processCommandSpecificData(final String data);

    protected abstract void processCommandSpecificErrorData (RTHTTPError error);

    public RTApiCommand getCommand() {
        return command;
    }
}

@@ -553,16 +553,20 @@
 (data);%0A
+    
     %7D%0A%0A 

update data model for profile info;