Initial commit
[mustard2:mustard2.git] / src / org / mustard2 / microblog / Relationship.java
1 /**
2  * MUSTARD: Android's Client for StatusNet
3  * 
4  * Copyright (C) 2009-2010 macno.org, Michele Azzolari
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  * 
20  */
21
22 package org.mustard2.microblog;
23
24 public class Relationship {
25
26         private User source;
27         private User target;
28         
29         public Relationship() {
30                 source = new User();
31                 target = new User();
32         }
33
34         public User getSource() {
35                 return source;
36         }
37
38         public void setSource(User source) {
39                 this.source = source;
40         }
41
42         public User getTarget() {
43                 return target;
44         }
45
46         public void setTarget(User target) {
47                 this.target = target;
48         }       
49         
50         public class User {
51                 
52                 private String screen_name;
53                 private boolean followed_by;
54                 private boolean following;
55                 private boolean notifications_enabled;
56                 private boolean blocking;
57                 private long id;
58                 
59                 public String getScreen_name() {
60                         return screen_name;
61                 }
62                 
63                 public void setScreen_name(String screen_name) {
64                         this.screen_name = screen_name;
65                 }
66                 
67                 public boolean isFollowed_by() {
68                         return followed_by;
69                 }
70                 
71                 public void setFollowed_by(boolean followed_by) {
72                         this.followed_by = followed_by;
73                 }
74                 
75                 public boolean isFollowing() {
76                         return following;
77                 }
78                 
79                 public void setFollowing(boolean following) {
80                         this.following = following;
81                 }
82                 
83                 public boolean isNotifications_enabled() {
84                         return notifications_enabled;
85                 }
86                 
87                 public void setNotifications_enabled(boolean notifications_enabled) {
88                         this.notifications_enabled = notifications_enabled;
89                 }
90                 
91                 public boolean isBlocking() {
92                         return blocking;
93                 }
94                 
95                 public void setBlocking(boolean blocking) {
96                         this.blocking = blocking;
97                 }
98                 
99                 public long getId() {
100                         return id;
101                 }
102                 
103                 public void setId(long id) {
104                         this.id = id;
105                 }
106                 
107         }
108
109 }