From a7a2d24e16fb605a86df6f21ceb31e650383d09b Mon Sep 17 00:00:00 2001 From: bancika Date: Thu, 4 Feb 2021 22:35:39 +0100 Subject: [PATCH] doc fix --- .../plugins/cloud/model/IServiceAPI.java | 83 +++++++++---------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/diylc/diylc-core/src/org/diylc/plugins/cloud/model/IServiceAPI.java b/diylc/diylc-core/src/org/diylc/plugins/cloud/model/IServiceAPI.java index c7873032..0c236e42 100644 --- a/diylc/diylc-core/src/org/diylc/plugins/cloud/model/IServiceAPI.java +++ b/diylc/diylc-core/src/org/diylc/plugins/cloud/model/IServiceAPI.java @@ -1,24 +1,24 @@ -/* - - DIY Layout Creator (DIYLC). - Copyright (c) 2009-2018 held jointly by the individual authors. - - This file is part of DIYLC. - - DIYLC is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - DIYLC is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with DIYLC. If not, see . - -*/ +/* + + DIY Layout Creator (DIYLC). + Copyright (c) 2009-2018 held jointly by the individual authors. + + This file is part of DIYLC. + + DIYLC is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DIYLC is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DIYLC. If not, see . + +*/ package org.diylc.plugins.cloud.model; import java.io.File; @@ -91,7 +91,7 @@ public interface IServiceAPI { * Tries to authenticate with the token that was previously created by calling login() function. * * @param username - * @param password + * @param token * @param machineId * @return "Success" if the login is successful or error message if it failed. */ @@ -102,9 +102,8 @@ public interface IServiceAPI { * Updates password of the current user using token to authenticate. * * @param username - * @param token - * @param machineId - * @param password + * @param oldPassword + * @param newPassword * @return "Success" if the login is successful or error message if it failed. */ String updatePassword(@ParamName("username") String username, @ParamName("oldPassword") String oldPassword, @@ -149,23 +148,23 @@ public interface IServiceAPI { @ParamName("category") String category, @ParamName("description") String description, @ParamName("diylcVersion") String diylcVersion, @ParamName("keywords") String keywords, @ParamName("thumbnail") File thumbnail, @ParamName("project") File project, - @ParamName("projectId") Integer projectId); - - /** - * Replaces project files using token to authenticate. The project must belong to the user. - * - * @param username - * @param token - * @param machineId - * @param diylcVersion - * @param thumbnail - * @param project - * @param projectId - * @return "Success" if the upload was successful or error message if it failed. - */ - String replaceProjectFiles(@ParamName("username") String username, @ParamName("token") String token, - @ParamName("machineId") String machineId, @ParamName("diylcVersion") String diylcVersion, - @ParamName("thumbnail") File thumbnail, @ParamName("project") File project, + @ParamName("projectId") Integer projectId); + + /** + * Replaces project files using token to authenticate. The project must belong to the user. + * + * @param username + * @param token + * @param machineId + * @param diylcVersion + * @param thumbnail + * @param project + * @param projectId + * @return "Success" if the upload was successful or error message if it failed. + */ + String replaceProjectFiles(@ParamName("username") String username, @ParamName("token") String token, + @ParamName("machineId") String machineId, @ParamName("diylcVersion") String diylcVersion, + @ParamName("thumbnail") File thumbnail, @ParamName("project") File project, @ParamName("projectId") Integer projectId); /**