1 | /** |
---|
2 | * |
---|
3 | */ |
---|
4 | package fr.mael.jiwigo.transverse.enumeration; |
---|
5 | |
---|
6 | /* |
---|
7 | * jiwigo-ws-api Piwigo webservice access Api |
---|
8 | * Copyright (c) 2010-2011 Mael mael@le-guevel.com |
---|
9 | * All Rights Reserved |
---|
10 | * |
---|
11 | * This library is free software. It comes without any warranty, to |
---|
12 | * the extent permitted by applicable law. You can redistribute it |
---|
13 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
14 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
15 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
16 | */ |
---|
17 | /** |
---|
18 | |
---|
19 | * Lists the methods of the webservice |
---|
20 | * @author mael |
---|
21 | * |
---|
22 | */ |
---|
23 | public enum MethodsEnum { |
---|
24 | |
---|
25 | LOGIN("pwg.session.login"), LISTER_CATEGORIES("pwg.categories.getList"), LISTER_IMAGES("pwg.categories.getImages"), GET_INFO( |
---|
26 | "pwg.images.getInfo"), AJOUTER_CATEGORIE("pwg.categories.add"), AJOUTER_COMMENTAIRE("pwg.images.addComment"), LISTER_TAGS( |
---|
27 | "pwg.tags.getList"), TAGS_ADMIN_LIST("pwg.tags.getAdminList"), ADD_TAG("pwg.tags.add"), SET_INFO( |
---|
28 | "pwg.images.setInfo"), SEARCH("pwg.images.search"), SET_PRIVACY_LEVEL("pwg.images.setPrivacyLevel"), ADD_SIMPLE( |
---|
29 | "pwg.images.addSimple"), ADD_IMAGE("pwg.images.add"), ADD_CHUNK("pwg.images.addChunk"), DELETE_CATEGORY( |
---|
30 | "pwg.categories.delete"), SESSION_STATUS("pwg.session.getStatus"); |
---|
31 | |
---|
32 | protected String label; |
---|
33 | |
---|
34 | /** Constructeur */ |
---|
35 | MethodsEnum(String pLabel) { |
---|
36 | this.label = pLabel; |
---|
37 | } |
---|
38 | |
---|
39 | public String getLabel() { |
---|
40 | return this.label; |
---|
41 | } |
---|
42 | } |
---|