OwnCloudSession.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * ownCloud Android client application
  3. *
  4. * @author Bartek Przybylski
  5. * Copyright (C) 2011 Bartek Przybylski
  6. * Copyright (C) 2015 ownCloud Inc.
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2,
  10. * as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.owncloud.android.utils;
  21. /**
  22. * Represents a session to an ownCloud instance
  23. */
  24. public class OwnCloudSession {
  25. private String mSessionName;
  26. private String mSessionUrl;
  27. private int mEntryId;
  28. public OwnCloudSession(String name, String url, int entryId) {
  29. mSessionName = name;
  30. mSessionUrl = url;
  31. mEntryId = entryId;
  32. }
  33. public void setName(String name) {
  34. mSessionName = name;
  35. }
  36. public String getName() {
  37. return mSessionName;
  38. }
  39. public void setUrl(String url) {
  40. mSessionUrl = url;
  41. }
  42. public String getUrl() {
  43. return mSessionUrl;
  44. }
  45. public int getEntryId() {
  46. return mEntryId;
  47. }
  48. }