[tx-robot] updated from transifex
[pub/Android/ownCloud.git] / src / com / owncloud / android / utils / OwnCloudSession.java
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 */
21 package com.owncloud.android.utils;
22
23 /**
24 * Represents a session to an ownCloud instance
25 */
26 public class OwnCloudSession {
27 private String mSessionName;
28 private String mSessionUrl;
29 private int mEntryId;
30
31 public OwnCloudSession(String name, String url, int entryId) {
32 mSessionName = name;
33 mSessionUrl = url;
34 mEntryId = entryId;
35 }
36
37 public void setName(String name) {
38 mSessionName = name;
39 }
40
41 public String getName() {
42 return mSessionName;
43 }
44
45 public void setUrl(String url) {
46 mSessionUrl = url;
47 }
48
49 public String getUrl() {
50 return mSessionUrl;
51 }
52
53 public int getEntryId() {
54 return mEntryId;
55 }
56 }