Fixed condition to determine expiration of SAML SSO
[pub/Android/ownCloud.git] / src / com / owncloud / android / OwnCloudSession.java
1 /* ownCloud Android client application
2 * Copyright (C) 2011 Bartek Przybylski
3 * Copyright (C) 2012-2013 ownCloud Inc.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2,
7 * as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 */
18 package com.owncloud.android;
19
20 /**
21 * Represents a session to an ownCloud instance
22 *
23 * @author Bartek Przybylski
24 *
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 }