001/**
002 * Copyright 2014 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.users.twitter;
017
018import com.google.gson.annotations.SerializedName;
019
020import core.tut.pori.users.UserIdentity;
021
022/**
023 * User credentials for a Twitter account.
024 */
025public class TwitterCredential {
026  private transient UserIdentity _userId = null;
027  @SerializedName(value="id")
028  private String _id = null;
029  @SerializedName(value="name")
030  private String _name = null;
031  @SerializedName(value="screen_name")
032  private String _screenName = null;
033  @SerializedName(value="protected")
034  private Boolean _protectedAccount = null;
035  @SerializedName(value="lang")
036  private String _lang = null;
037  @SerializedName(value="utc_offset")
038  private Integer _utcOffSet = null; // in seconds
039  @SerializedName(value="verified")
040  private Boolean _verified = null;
041  
042  /**
043   * @return the userId
044   */
045  public UserIdentity getUserId() {
046    return _userId;
047  }
048  
049  /**
050   * @param userId the userId to set
051   */
052  public void setUserId(UserIdentity userId) {
053    _userId = userId;
054  }
055  
056  /**
057   * @return the id
058   */
059  public String getId() {
060    return _id;
061  }
062  
063  /**
064   * @param id the id to set
065   */
066  public void setId(String id) {
067    _id = id;
068  }
069  
070  /**
071   * @return the name
072   */
073  public String getName() {
074    return _name;
075  }
076  
077  /**
078   * @param name the name to set
079   */
080  public void setName(String name) {
081    _name = name;
082  }
083  
084  /**
085   * @return the screenName
086   */
087  public String getScreenName() {
088    return _screenName;
089  }
090  
091  /**
092   * @param screenName the screenName to set
093   */
094  public void setScreenName(String screenName) {
095    _screenName = screenName;
096  }
097  
098  /**
099   * @return the protectedAccount
100   */
101  public Boolean getProtectedAccount() {
102    return _protectedAccount;
103  }
104  
105  /**
106   * @param protectedAccount the protectedAccount to set
107   */
108  public void setProtectedAccount(Boolean protectedAccount) {
109    _protectedAccount = protectedAccount;
110  }
111  
112  /**
113   * @return the lang
114   */
115  public String getLang() {
116    return _lang;
117  }
118  
119  /**
120   * @param lang the lang to set
121   */
122  public void setLang(String lang) {
123    _lang = lang;
124  }
125  
126  /**
127   * @return the utcOffSet
128   */
129  public Integer getUtcOffSet() {
130    return _utcOffSet;
131  }
132  
133  /**
134   * @param utcOffSet the utcOffSet to set
135   */
136  public void setUtcOffSet(Integer utcOffSet) {
137    _utcOffSet = utcOffSet;
138  }
139  
140  /**
141   * @return the verified
142   */
143  public Boolean getVerified() {
144    return _verified;
145  }
146  
147  /**
148   * @param verified the verified to set
149   */
150  public void setVerified(Boolean verified) {
151    _verified = verified;
152  }
153}