Github user therajanmaurya commented on a diff in the pull request:

    
https://github.com/apache/incubator-taverna-mobile/pull/28#discussion_r81107282
  
    --- Diff: app/src/main/java/org/apache/taverna/mobile/data/DataManager.java 
---
    @@ -166,6 +170,45 @@ public PreferencesHelper getPreferencesHelper() {
                     });
         }
     
    +    /**
    +     * @param url is Workflow's content xml URL
    +     * @return OkHTTP ResponseBody of download file
    +     */
    +    public Observable<ResponseBody> downloadWorkflowContent(String url) {
    +        return 
mBaseApiManager.getTavernaApi().downloadWorkflowContent(url);
    +    }
    +
    +    /**
    +     * @param body     is body of upload workflow's detail
    +     * @param baseAuth is base64 encoded credential
    +     * @return Workflow's ID
    +     */
    +    public Observable<PlayerWorkflow> uploadWorkflowContent(RequestBody 
body, String baseAuth) {
    +        return mBaseApiManager.getTavernaPlayerApi().uploadWorkflow(body, 
baseAuth);
    +    }
    +
    +    /**
    +     * @param credentials is base64 encoded credential
    +     * @param flagLogin   is used to maintain the Remain login or not
    +     * @return okHTTP ResponseBody
    +     */
    +
    +    public Observable<ResponseBody> authPlayerUserLoginDetail(final String 
credentials,
    +                                                              final 
boolean flagLogin) {
    +        return 
mBaseApiManager.getTavernaPlayerApi().playerlogin(credentials)
    +                .concatMap(new Func1<ResponseBody, Observable<? extends 
ResponseBody>>() {
    --- End diff --
    
    Remove concatMap, There is no use of concaMap.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to