Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / cloud / account / src / main / java / org / iotivity / cloud / accountserver / db / InviteTable.java
1 /*
2  * //******************************************************************
3  * //
4  * // Copyright 2016 Samsung Electronics All Rights Reserved.
5  * //
6  * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  * //
8  * // Licensed under the Apache License, Version 2.0 (the "License");
9  * // you may not use this file except in compliance with the License.
10  * // You may obtain a copy of the License at
11  * //
12  * //      http://www.apache.org/licenses/LICENSE-2.0
13  * //
14  * // Unless required by applicable law or agreed to in writing, software
15  * // distributed under the License is distributed on an "AS IS" BASIS,
16  * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * // See the License for the specific language governing permissions and
18  * // limitations under the License.
19  * //
20  * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22 package org.iotivity.cloud.accountserver.db;
23
24 public class InviteTable {
25
26     String gid;
27     String inviteUser;
28     String invitedUser;
29
30     public InviteTable() {
31     }
32
33     /**
34      * API to initialize an instance of the group invitation table
35      * 
36      * @param inviteUser
37      *            user ID who requests the group invitation for the
38      *            "invitedUser"
39      * @param gid
40      *            group ID to be invited
41      * @param invitedUser
42      *            invited user ID
43      */
44     public InviteTable(String inviteUser, String gid, String invitedUser) {
45         this.inviteUser = inviteUser;
46         this.gid = gid;
47         this.invitedUser = invitedUser;
48     }
49
50     /**
51      * API to get the group ID to be invited
52      * 
53      * @return group ID
54      */
55     public String getGid() {
56         return gid;
57     }
58
59     /**
60      * API to set the group ID to invite
61      * 
62      * @param gid
63      *            group ID
64      */
65     public void setGid(String gid) {
66         this.gid = gid;
67     }
68
69     /**
70      * API to get the user ID who requests the group invitation
71      * 
72      * @return user ID
73      */
74     public String getInviteUser() {
75         return inviteUser;
76     }
77
78     /**
79      * API to set the user ID to be invited
80      * 
81      * @param inviteUser
82      *            user ID to be invited
83      */
84     public void setInviteUser(String inviteUser) {
85         this.inviteUser = inviteUser;
86     }
87
88     /**
89      * API to get the user Id to be invited
90      * 
91      * @return user ID to be invited
92      */
93     public String getInvitedUser() {
94         return invitedUser;
95     }
96
97     public void setInvitedUser(String invitedUser) {
98         this.invitedUser = invitedUser;
99     }
100
101 }