Add models and coordinates service
This commit is contained in:
parent
ad27db1a47
commit
5dc11c6fec
14
.idea/assetWizardSettings.xml
Normal file
14
.idea/assetWizardSettings.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="WizardSettings">
|
||||
<option name="children">
|
||||
<map>
|
||||
<entry key="imageWizard">
|
||||
<value>
|
||||
<PersistentState />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
65
app/.gitignore
vendored
65
app/.gitignore
vendored
@ -1 +1,66 @@
|
||||
# Built application files
|
||||
*.apk
|
||||
*.ap_
|
||||
|
||||
# Files for the ART/Dalvik VM
|
||||
*.dex
|
||||
|
||||
# Java class files
|
||||
*.class
|
||||
|
||||
# Generated files
|
||||
bin/
|
||||
gen/
|
||||
out/
|
||||
|
||||
# Gradle files
|
||||
.gradle/
|
||||
build/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
||||
# Proguard folder generated by Eclipse
|
||||
proguard/
|
||||
|
||||
# Log Files
|
||||
*.log
|
||||
|
||||
# Android Studio Navigation editor temp files
|
||||
.navigation/
|
||||
|
||||
# Android Studio captures folder
|
||||
captures/
|
||||
|
||||
# IntelliJ
|
||||
*.iml
|
||||
.idea/workspace.xml
|
||||
.idea/tasks.xml
|
||||
.idea/gradle.xml
|
||||
.idea/assetWizardSettings.xml
|
||||
.idea/dictionaries
|
||||
.idea/libraries
|
||||
.idea/caches
|
||||
|
||||
# Keystore files
|
||||
# Uncomment the following line if you do not want to check your keystore files in.
|
||||
#*.jks
|
||||
|
||||
# External native build folder generated in Android Studio 2.2 and later
|
||||
.externalNativeBuild
|
||||
|
||||
# Google Services (e.g. APIs or Firebase)
|
||||
google-services.json
|
||||
|
||||
# Freeline
|
||||
freeline.py
|
||||
freeline/
|
||||
freeline_project_description.json
|
||||
|
||||
# fastlane
|
||||
fastlane/report.xml
|
||||
fastlane/Preview.html
|
||||
fastlane/screenshots
|
||||
fastlane/test_output
|
||||
fastlane/readme.md
|
||||
/build
|
||||
|
@ -29,4 +29,7 @@ dependencies {
|
||||
implementation 'com.google.code.gson:gson:2.8.2'
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
||||
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
||||
implementation "io.swagger:swagger-annotations:1.5.15"
|
||||
implementation "org.threeten:threetenbp:1.3.5"
|
||||
|
||||
}
|
||||
|
@ -3,24 +3,22 @@ package com.uam.wmi.findmytutor.activity;
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.LoaderManager.LoaderCallbacks;
|
||||
import android.content.Context;
|
||||
import android.content.CursorLoader;
|
||||
import android.content.Intent;
|
||||
import android.content.Loader;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.app.LoaderManager.LoaderCallbacks;
|
||||
|
||||
import android.content.CursorLoader;
|
||||
import android.content.Loader;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.provider.ContactsContract;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
@ -32,7 +30,6 @@ import android.widget.AutoCompleteTextView;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.uam.wmi.findmytutor.R;
|
||||
import com.uam.wmi.findmytutor.model.JwtToken;
|
||||
@ -44,8 +41,6 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.Callback;
|
||||
import retrofit2.Response;
|
||||
|
||||
import static android.Manifest.permission.READ_CONTACTS;
|
||||
@ -326,7 +321,7 @@ public class LoginActivity extends AppCompatActivity implements LoaderCallbacks<
|
||||
protected Boolean doInBackground(Void... params) {
|
||||
LdapService service = RetrofitClientInstance.getRetrofitLoginInstance().create(LdapService.class);
|
||||
|
||||
LdapUser user = new LdapUser("string",mPassword,"string","string","string","string",mEmail);
|
||||
LdapUser user = new LdapUser("string",mPassword,"string","pracownik","string","string",mEmail);
|
||||
|
||||
try {
|
||||
Response<JwtToken> loginResponse = service.fakeValidate(user).execute();
|
||||
@ -341,7 +336,8 @@ public class LoginActivity extends AppCompatActivity implements LoaderCallbacks<
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
Log.e("Login error", "nie udalo sie kurde...");
|
||||
Log.d("login failure",e.toString());
|
||||
Log.e("Login error", e.toString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -3,13 +3,8 @@ package com.uam.wmi.findmytutor.activity;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
import com.uam.wmi.findmytutor.R;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
@ -5,17 +5,7 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.uam.wmi.findmytutor.model.JwtToken;
|
||||
import com.uam.wmi.findmytutor.model.LdapUser;
|
||||
import com.uam.wmi.findmytutor.network.RetrofitClientInstance;
|
||||
import com.uam.wmi.findmytutor.service.LdapService;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.Callback;
|
||||
import retrofit2.Response;
|
||||
|
||||
public class StartupActivity extends AppCompatActivity {
|
||||
private static final int AUTHENTICATION_REQUEST_CODE = 666;
|
||||
|
260
app/src/main/java/com/uam/wmi/findmytutor/model/Coordinate.java
Normal file
260
app/src/main/java/com/uam/wmi/findmytutor/model/Coordinate.java
Normal file
@ -0,0 +1,260 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* Coordinate
|
||||
*/
|
||||
|
||||
public class Coordinate {
|
||||
@SerializedName("coordinateId")
|
||||
private UUID coordinateId = null;
|
||||
|
||||
@SerializedName("latitude")
|
||||
private Float latitude = null;
|
||||
|
||||
@SerializedName("longitude")
|
||||
private Float longitude = null;
|
||||
|
||||
@SerializedName("altitude")
|
||||
private Float altitude = null;
|
||||
|
||||
@SerializedName("userId")
|
||||
private String userId = null;
|
||||
|
||||
@SerializedName("approximatedLocation")
|
||||
private String approximatedLocation = null;
|
||||
|
||||
@SerializedName("displayMode")
|
||||
private String displayMode = "exact";
|
||||
|
||||
@SerializedName("timeStamp")
|
||||
private Long timeStamp = null;
|
||||
|
||||
@SerializedName("label")
|
||||
private String label = null;
|
||||
|
||||
public Coordinate coordinateId(UUID coordinateId) {
|
||||
this.coordinateId = coordinateId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get coordinateId
|
||||
* @return coordinateId
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public UUID getCoordinateId() {
|
||||
return coordinateId;
|
||||
}
|
||||
|
||||
public void setCoordinateId(UUID coordinateId) {
|
||||
this.coordinateId = coordinateId;
|
||||
}
|
||||
|
||||
public Coordinate latitude(Float latitude) {
|
||||
this.latitude = latitude;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get latitude
|
||||
* @return latitude
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Float getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(Float latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public Coordinate longitude(Float longitude) {
|
||||
this.longitude = longitude;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get longitude
|
||||
* @return longitude
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Float getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(Float longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public Coordinate altitude(Float altitude) {
|
||||
this.altitude = altitude;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get altitude
|
||||
* @return altitude
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Float getAltitude() {
|
||||
return altitude;
|
||||
}
|
||||
|
||||
public void setAltitude(Float altitude) {
|
||||
this.altitude = altitude;
|
||||
}
|
||||
|
||||
public Coordinate userId(String userId) {
|
||||
this.userId = userId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userId
|
||||
* @return userId
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Coordinate approximatedLocation(String approximatedLocation) {
|
||||
this.approximatedLocation = approximatedLocation;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get approximatedLocation
|
||||
* @return approximatedLocation
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getApproximatedLocation() {
|
||||
return approximatedLocation;
|
||||
}
|
||||
|
||||
public void setApproximatedLocation(String approximatedLocation) {
|
||||
this.approximatedLocation = approximatedLocation;
|
||||
}
|
||||
|
||||
public Coordinate displayMode(String displayMode) {
|
||||
this.displayMode = displayMode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get displayMode
|
||||
* @return displayMode
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getDisplayMode() {
|
||||
return displayMode;
|
||||
}
|
||||
|
||||
public void setDisplayMode(String displayMode) {
|
||||
this.displayMode = displayMode;
|
||||
}
|
||||
|
||||
public Coordinate timeStamp(Long timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get timeStamp
|
||||
* @return timeStamp
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getTimeStamp() {
|
||||
return timeStamp;
|
||||
}
|
||||
|
||||
public void setTimeStamp(Long timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
public Coordinate label(String label) {
|
||||
this.label = label;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get label
|
||||
* @return label
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Coordinate coordinate = (Coordinate) o;
|
||||
return Objects.equals(this.coordinateId, coordinate.coordinateId) &&
|
||||
Objects.equals(this.latitude, coordinate.latitude) &&
|
||||
Objects.equals(this.longitude, coordinate.longitude) &&
|
||||
Objects.equals(this.altitude, coordinate.altitude) &&
|
||||
Objects.equals(this.userId, coordinate.userId) &&
|
||||
Objects.equals(this.approximatedLocation, coordinate.approximatedLocation) &&
|
||||
Objects.equals(this.displayMode, coordinate.displayMode) &&
|
||||
Objects.equals(this.timeStamp, coordinate.timeStamp) &&
|
||||
Objects.equals(this.label, coordinate.label);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(coordinateId, latitude, longitude, altitude, userId, approximatedLocation, displayMode, timeStamp, label);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Coordinate {\n");
|
||||
|
||||
sb.append(" coordinateId: ").append(toIndentedString(coordinateId)).append("\n");
|
||||
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
|
||||
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
|
||||
sb.append(" altitude: ").append(toIndentedString(altitude)).append("\n");
|
||||
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
|
||||
sb.append(" approximatedLocation: ").append(toIndentedString(approximatedLocation)).append("\n");
|
||||
sb.append(" displayMode: ").append(toIndentedString(displayMode)).append("\n");
|
||||
sb.append(" timeStamp: ").append(toIndentedString(timeStamp)).append("\n");
|
||||
sb.append(" label: ").append(toIndentedString(label)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
192
app/src/main/java/com/uam/wmi/findmytutor/model/DutyHour.java
Normal file
192
app/src/main/java/com/uam/wmi/findmytutor/model/DutyHour.java
Normal file
@ -0,0 +1,192 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* DutyHour
|
||||
*/
|
||||
|
||||
public class DutyHour {
|
||||
@SerializedName("dutyHourId")
|
||||
private UUID dutyHourId = null;
|
||||
|
||||
@SerializedName("tutorTabId")
|
||||
private UUID tutorTabId = null;
|
||||
|
||||
@SerializedName("day")
|
||||
private String day = null;
|
||||
|
||||
@SerializedName("start")
|
||||
private String start = null;
|
||||
|
||||
@SerializedName("end")
|
||||
private String end = null;
|
||||
|
||||
@SerializedName("tutorTab")
|
||||
private TutorTab tutorTab = null;
|
||||
|
||||
public DutyHour dutyHourId(UUID dutyHourId) {
|
||||
this.dutyHourId = dutyHourId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dutyHourId
|
||||
* @return dutyHourId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public UUID getDutyHourId() {
|
||||
return dutyHourId;
|
||||
}
|
||||
|
||||
public void setDutyHourId(UUID dutyHourId) {
|
||||
this.dutyHourId = dutyHourId;
|
||||
}
|
||||
|
||||
public DutyHour tutorTabId(UUID tutorTabId) {
|
||||
this.tutorTabId = tutorTabId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorTabId
|
||||
* @return tutorTabId
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public UUID getTutorTabId() {
|
||||
return tutorTabId;
|
||||
}
|
||||
|
||||
public void setTutorTabId(UUID tutorTabId) {
|
||||
this.tutorTabId = tutorTabId;
|
||||
}
|
||||
|
||||
public DutyHour day(String day) {
|
||||
this.day = day;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get day
|
||||
* @return day
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getDay() {
|
||||
return day;
|
||||
}
|
||||
|
||||
public void setDay(String day) {
|
||||
this.day = day;
|
||||
}
|
||||
|
||||
public DutyHour start(String start) {
|
||||
this.start = start;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get start
|
||||
* @return start
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public void setStart(String start) {
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public DutyHour end(String end) {
|
||||
this.end = end;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get end
|
||||
* @return end
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEnd() {
|
||||
return end;
|
||||
}
|
||||
|
||||
public void setEnd(String end) {
|
||||
this.end = end;
|
||||
}
|
||||
|
||||
public DutyHour tutorTab(TutorTab tutorTab) {
|
||||
this.tutorTab = tutorTab;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorTab
|
||||
* @return tutorTab
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public TutorTab getTutorTab() {
|
||||
return tutorTab;
|
||||
}
|
||||
|
||||
public void setTutorTab(TutorTab tutorTab) {
|
||||
this.tutorTab = tutorTab;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DutyHour dutyHour = (DutyHour) o;
|
||||
return Objects.equals(this.dutyHourId, dutyHour.dutyHourId) &&
|
||||
Objects.equals(this.tutorTabId, dutyHour.tutorTabId) &&
|
||||
Objects.equals(this.day, dutyHour.day) &&
|
||||
Objects.equals(this.start, dutyHour.start) &&
|
||||
Objects.equals(this.end, dutyHour.end) &&
|
||||
Objects.equals(this.tutorTab, dutyHour.tutorTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(dutyHourId, tutorTabId, day, start, end, tutorTab);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DutyHour {\n");
|
||||
|
||||
sb.append(" dutyHourId: ").append(toIndentedString(dutyHourId)).append("\n");
|
||||
sb.append(" tutorTabId: ").append(toIndentedString(tutorTabId)).append("\n");
|
||||
sb.append(" day: ").append(toIndentedString(day)).append("\n");
|
||||
sb.append(" start: ").append(toIndentedString(start)).append("\n");
|
||||
sb.append(" end: ").append(toIndentedString(end)).append("\n");
|
||||
sb.append(" tutorTab: ").append(toIndentedString(tutorTab)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,76 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* IsUsingListBoolModel
|
||||
*/
|
||||
|
||||
public class IsUsingListBoolModel {
|
||||
@SerializedName("isUsing")
|
||||
private Boolean isUsing = null;
|
||||
|
||||
public IsUsingListBoolModel isUsing(Boolean isUsing) {
|
||||
this.isUsing = isUsing;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isUsing
|
||||
* @return isUsing
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsUsing() {
|
||||
return isUsing;
|
||||
}
|
||||
|
||||
public void setIsUsing(Boolean isUsing) {
|
||||
this.isUsing = isUsing;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
IsUsingListBoolModel isUsingListBoolModel = (IsUsingListBoolModel) o;
|
||||
return Objects.equals(this.isUsing, isUsingListBoolModel.isUsing);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(isUsing);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class IsUsingListBoolModel {\n");
|
||||
|
||||
sb.append(" isUsing: ").append(toIndentedString(isUsing)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,96 +1,218 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
* LdapUser
|
||||
*/
|
||||
|
||||
public class LdapUser {
|
||||
@SerializedName("login")
|
||||
private String login = null;
|
||||
|
||||
@SerializedName("login")
|
||||
@Expose
|
||||
private String login;
|
||||
@SerializedName("password")
|
||||
@Expose
|
||||
private String password;
|
||||
@SerializedName("department")
|
||||
@Expose
|
||||
private String department;
|
||||
@SerializedName("title")
|
||||
@Expose
|
||||
private String title;
|
||||
@SerializedName("firstName")
|
||||
@Expose
|
||||
private String firstName;
|
||||
@SerializedName("lastName")
|
||||
@Expose
|
||||
private String lastName;
|
||||
@SerializedName("email")
|
||||
@Expose
|
||||
private String email;
|
||||
@SerializedName("password")
|
||||
private String password = null;
|
||||
|
||||
public LdapUser(String login, String password, String department, String title, String firstName, String lastName, String email) {
|
||||
this.login = login;
|
||||
this.password = password;
|
||||
this.department = department;
|
||||
this.title = title;
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
this.email = email;
|
||||
@SerializedName("department")
|
||||
private String department = null;
|
||||
|
||||
@SerializedName("title")
|
||||
private String title = null;
|
||||
|
||||
@SerializedName("firstName")
|
||||
private String firstName = null;
|
||||
|
||||
@SerializedName("lastName")
|
||||
private String lastName = null;
|
||||
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
||||
public LdapUser(String string, String mPassword, String string1, String pracownik, String string2, String string3, String mEmail) {
|
||||
}
|
||||
|
||||
public LdapUser login(String login) {
|
||||
this.login = login;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get login
|
||||
* @return login
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getLogin() {
|
||||
return login;
|
||||
}
|
||||
|
||||
public void setLogin(String login) {
|
||||
this.login = login;
|
||||
}
|
||||
|
||||
public LdapUser password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public LdapUser department(String department) {
|
||||
this.department = department;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get department
|
||||
* @return department
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public LdapUser title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public LdapUser firstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public LdapUser lastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public LdapUser email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getLogin() {
|
||||
return login;
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
LdapUser ldapUser = (LdapUser) o;
|
||||
return Objects.equals(this.login, ldapUser.login) &&
|
||||
Objects.equals(this.password, ldapUser.password) &&
|
||||
Objects.equals(this.department, ldapUser.department) &&
|
||||
Objects.equals(this.title, ldapUser.title) &&
|
||||
Objects.equals(this.firstName, ldapUser.firstName) &&
|
||||
Objects.equals(this.lastName, ldapUser.lastName) &&
|
||||
Objects.equals(this.email, ldapUser.email);
|
||||
}
|
||||
|
||||
public void setLogin(String login) {
|
||||
this.login = login;
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(login, password, department, title, firstName, lastName, email);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class LdapUser {\n");
|
||||
|
||||
sb.append(" login: ").append(toIndentedString(login)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" department: ").append(toIndentedString(department)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* PagedResultUserResponseModel
|
||||
*/
|
||||
|
||||
public class PagedResultUserResponseModel {
|
||||
@SerializedName("results")
|
||||
private List<UserResponseModel> results = null;
|
||||
|
||||
@SerializedName("currentPage")
|
||||
private Integer currentPage = null;
|
||||
|
||||
@SerializedName("pageCount")
|
||||
private Integer pageCount = null;
|
||||
|
||||
@SerializedName("pageSize")
|
||||
private Integer pageSize = null;
|
||||
|
||||
@SerializedName("rowCount")
|
||||
private Integer rowCount = null;
|
||||
|
||||
@SerializedName("firstRowOnPage")
|
||||
private Integer firstRowOnPage = null;
|
||||
|
||||
@SerializedName("lastRowOnPage")
|
||||
private Integer lastRowOnPage = null;
|
||||
|
||||
public PagedResultUserResponseModel results(List<UserResponseModel> results) {
|
||||
this.results = results;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PagedResultUserResponseModel addResultsItem(UserResponseModel resultsItem) {
|
||||
if (this.results == null) {
|
||||
this.results = new ArrayList<UserResponseModel>();
|
||||
}
|
||||
this.results.add(resultsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get results
|
||||
* @return results
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<UserResponseModel> getResults() {
|
||||
return results;
|
||||
}
|
||||
|
||||
public void setResults(List<UserResponseModel> results) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
public PagedResultUserResponseModel currentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get currentPage
|
||||
* @return currentPage
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(Integer currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public PagedResultUserResponseModel pageCount(Integer pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pageCount
|
||||
* @return pageCount
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getPageCount() {
|
||||
return pageCount;
|
||||
}
|
||||
|
||||
public void setPageCount(Integer pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
|
||||
public PagedResultUserResponseModel pageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pageSize
|
||||
* @return pageSize
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public PagedResultUserResponseModel rowCount(Integer rowCount) {
|
||||
this.rowCount = rowCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get rowCount
|
||||
* @return rowCount
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getRowCount() {
|
||||
return rowCount;
|
||||
}
|
||||
|
||||
public void setRowCount(Integer rowCount) {
|
||||
this.rowCount = rowCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get firstRowOnPage
|
||||
* @return firstRowOnPage
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getFirstRowOnPage() {
|
||||
return firstRowOnPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastRowOnPage
|
||||
* @return lastRowOnPage
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getLastRowOnPage() {
|
||||
return lastRowOnPage;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
PagedResultUserResponseModel pagedResultUserResponseModel = (PagedResultUserResponseModel) o;
|
||||
return Objects.equals(this.results, pagedResultUserResponseModel.results) &&
|
||||
Objects.equals(this.currentPage, pagedResultUserResponseModel.currentPage) &&
|
||||
Objects.equals(this.pageCount, pagedResultUserResponseModel.pageCount) &&
|
||||
Objects.equals(this.pageSize, pagedResultUserResponseModel.pageSize) &&
|
||||
Objects.equals(this.rowCount, pagedResultUserResponseModel.rowCount) &&
|
||||
Objects.equals(this.firstRowOnPage, pagedResultUserResponseModel.firstRowOnPage) &&
|
||||
Objects.equals(this.lastRowOnPage, pagedResultUserResponseModel.lastRowOnPage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(results, currentPage, pageCount, pageSize, rowCount, firstRowOnPage, lastRowOnPage);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class PagedResultUserResponseModel {\n");
|
||||
|
||||
sb.append(" results: ").append(toIndentedString(results)).append("\n");
|
||||
sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n");
|
||||
sb.append(" pageCount: ").append(toIndentedString(pageCount)).append("\n");
|
||||
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
|
||||
sb.append(" rowCount: ").append(toIndentedString(rowCount)).append("\n");
|
||||
sb.append(" firstRowOnPage: ").append(toIndentedString(firstRowOnPage)).append("\n");
|
||||
sb.append(" lastRowOnPage: ").append(toIndentedString(lastRowOnPage)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,100 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
* StudentIdModel
|
||||
*/
|
||||
|
||||
public class StudentIdModel {
|
||||
@SerializedName("studentId")
|
||||
private String studentId = null;
|
||||
|
||||
@SerializedName("ldapLogin")
|
||||
private String ldapLogin = null;
|
||||
|
||||
public StudentIdModel studentId(String studentId) {
|
||||
this.studentId = studentId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get studentId
|
||||
* @return studentId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getStudentId() {
|
||||
return studentId;
|
||||
}
|
||||
|
||||
public void setStudentId(String studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
|
||||
public StudentIdModel ldapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ldapLogin
|
||||
* @return ldapLogin
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLdapLogin() {
|
||||
return ldapLogin;
|
||||
}
|
||||
|
||||
public void setLdapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
StudentIdModel studentIdModel = (StudentIdModel) o;
|
||||
return Objects.equals(this.studentId, studentIdModel.studentId) &&
|
||||
Objects.equals(this.ldapLogin, studentIdModel.ldapLogin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(studentId, ldapLogin);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class StudentIdModel {\n");
|
||||
|
||||
sb.append(" studentId: ").append(toIndentedString(studentId)).append("\n");
|
||||
sb.append(" ldapLogin: ").append(toIndentedString(ldapLogin)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
204
app/src/main/java/com/uam/wmi/findmytutor/model/TutorTab.java
Normal file
204
app/src/main/java/com/uam/wmi/findmytutor/model/TutorTab.java
Normal file
@ -0,0 +1,204 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
* TutorTab
|
||||
*/
|
||||
|
||||
public class TutorTab {
|
||||
@SerializedName("tutorTabId")
|
||||
private UUID tutorTabId = null;
|
||||
|
||||
@SerializedName("userId")
|
||||
private String userId = null;
|
||||
|
||||
@SerializedName("room")
|
||||
private String room = null;
|
||||
|
||||
@SerializedName("emailTutorTab")
|
||||
private String emailTutorTab = null;
|
||||
|
||||
@SerializedName("dutyHours")
|
||||
private List<DutyHour> dutyHours = null;
|
||||
|
||||
@SerializedName("user")
|
||||
private User user = null;
|
||||
|
||||
public TutorTab tutorTabId(UUID tutorTabId) {
|
||||
this.tutorTabId = tutorTabId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorTabId
|
||||
* @return tutorTabId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public UUID getTutorTabId() {
|
||||
return tutorTabId;
|
||||
}
|
||||
|
||||
public void setTutorTabId(UUID tutorTabId) {
|
||||
this.tutorTabId = tutorTabId;
|
||||
}
|
||||
|
||||
public TutorTab userId(String userId) {
|
||||
this.userId = userId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userId
|
||||
* @return userId
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public TutorTab room(String room) {
|
||||
this.room = room;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get room
|
||||
* @return room
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getRoom() {
|
||||
return room;
|
||||
}
|
||||
|
||||
public void setRoom(String room) {
|
||||
this.room = room;
|
||||
}
|
||||
|
||||
public TutorTab emailTutorTab(String emailTutorTab) {
|
||||
this.emailTutorTab = emailTutorTab;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get emailTutorTab
|
||||
* @return emailTutorTab
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEmailTutorTab() {
|
||||
return emailTutorTab;
|
||||
}
|
||||
|
||||
public void setEmailTutorTab(String emailTutorTab) {
|
||||
this.emailTutorTab = emailTutorTab;
|
||||
}
|
||||
|
||||
public TutorTab dutyHours(List<DutyHour> dutyHours) {
|
||||
this.dutyHours = dutyHours;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TutorTab addDutyHoursItem(DutyHour dutyHoursItem) {
|
||||
if (this.dutyHours == null) {
|
||||
this.dutyHours = new ArrayList<DutyHour>();
|
||||
}
|
||||
this.dutyHours.add(dutyHoursItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dutyHours
|
||||
* @return dutyHours
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<DutyHour> getDutyHours() {
|
||||
return dutyHours;
|
||||
}
|
||||
|
||||
public void setDutyHours(List<DutyHour> dutyHours) {
|
||||
this.dutyHours = dutyHours;
|
||||
}
|
||||
|
||||
public TutorTab user(User user) {
|
||||
this.user = user;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user
|
||||
* @return user
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public User getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(User user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
TutorTab tutorTab = (TutorTab) o;
|
||||
return Objects.equals(this.tutorTabId, tutorTab.tutorTabId) &&
|
||||
Objects.equals(this.userId, tutorTab.userId) &&
|
||||
Objects.equals(this.room, tutorTab.room) &&
|
||||
Objects.equals(this.emailTutorTab, tutorTab.emailTutorTab) &&
|
||||
Objects.equals(this.dutyHours, tutorTab.dutyHours) &&
|
||||
Objects.equals(this.user, tutorTab.user);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(tutorTabId, userId, room, emailTutorTab, dutyHours, user);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class TutorTab {\n");
|
||||
|
||||
sb.append(" tutorTabId: ").append(toIndentedString(tutorTabId)).append("\n");
|
||||
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
|
||||
sb.append(" room: ").append(toIndentedString(room)).append("\n");
|
||||
sb.append(" emailTutorTab: ").append(toIndentedString(emailTutorTab)).append("\n");
|
||||
sb.append(" dutyHours: ").append(toIndentedString(dutyHours)).append("\n");
|
||||
sb.append(" user: ").append(toIndentedString(user)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
726
app/src/main/java/com/uam/wmi/findmytutor/model/User.java
Normal file
726
app/src/main/java/com/uam/wmi/findmytutor/model/User.java
Normal file
@ -0,0 +1,726 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* User
|
||||
*/
|
||||
|
||||
public class User {
|
||||
@SerializedName("isOnline")
|
||||
private Boolean isOnline = null;
|
||||
|
||||
@SerializedName("isUsingBlacklist")
|
||||
private Boolean isUsingBlacklist = null;
|
||||
|
||||
@SerializedName("isUsingWhitelist")
|
||||
private Boolean isUsingWhitelist = null;
|
||||
|
||||
@SerializedName("blacklist")
|
||||
private List<String> blacklist = null;
|
||||
|
||||
@SerializedName("whitelist")
|
||||
private List<String> whitelist = null;
|
||||
|
||||
@SerializedName("department")
|
||||
private String department = null;
|
||||
|
||||
@SerializedName("ldapLogin")
|
||||
private String ldapLogin = null;
|
||||
|
||||
@SerializedName("title")
|
||||
private String title = null;
|
||||
|
||||
@SerializedName("firstName")
|
||||
private String firstName = null;
|
||||
|
||||
@SerializedName("lastName")
|
||||
private String lastName = null;
|
||||
|
||||
@SerializedName("isActive")
|
||||
private Boolean isActive = null;
|
||||
|
||||
@SerializedName("tutorTab")
|
||||
private TutorTab tutorTab = null;
|
||||
|
||||
@SerializedName("coordinates")
|
||||
private List<Coordinate> coordinates = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private String id = null;
|
||||
|
||||
@SerializedName("userName")
|
||||
private String userName = null;
|
||||
|
||||
@SerializedName("normalizedUserName")
|
||||
private String normalizedUserName = null;
|
||||
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
||||
@SerializedName("normalizedEmail")
|
||||
private String normalizedEmail = null;
|
||||
|
||||
@SerializedName("emailConfirmed")
|
||||
private Boolean emailConfirmed = null;
|
||||
|
||||
@SerializedName("passwordHash")
|
||||
private String passwordHash = null;
|
||||
|
||||
@SerializedName("securityStamp")
|
||||
private String securityStamp = null;
|
||||
|
||||
@SerializedName("concurrencyStamp")
|
||||
private String concurrencyStamp = null;
|
||||
|
||||
@SerializedName("phoneNumber")
|
||||
private String phoneNumber = null;
|
||||
|
||||
@SerializedName("phoneNumberConfirmed")
|
||||
private Boolean phoneNumberConfirmed = null;
|
||||
|
||||
@SerializedName("twoFactorEnabled")
|
||||
private Boolean twoFactorEnabled = null;
|
||||
|
||||
@SerializedName("lockoutEnd")
|
||||
private OffsetDateTime lockoutEnd = null;
|
||||
|
||||
@SerializedName("lockoutEnabled")
|
||||
private Boolean lockoutEnabled = null;
|
||||
|
||||
@SerializedName("accessFailedCount")
|
||||
private Integer accessFailedCount = null;
|
||||
|
||||
public User isOnline(Boolean isOnline) {
|
||||
this.isOnline = isOnline;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isOnline
|
||||
* @return isOnline
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsOnline() {
|
||||
return isOnline;
|
||||
}
|
||||
|
||||
public void setIsOnline(Boolean isOnline) {
|
||||
this.isOnline = isOnline;
|
||||
}
|
||||
|
||||
public User isUsingBlacklist(Boolean isUsingBlacklist) {
|
||||
this.isUsingBlacklist = isUsingBlacklist;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isUsingBlacklist
|
||||
* @return isUsingBlacklist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsUsingBlacklist() {
|
||||
return isUsingBlacklist;
|
||||
}
|
||||
|
||||
public void setIsUsingBlacklist(Boolean isUsingBlacklist) {
|
||||
this.isUsingBlacklist = isUsingBlacklist;
|
||||
}
|
||||
|
||||
public User isUsingWhitelist(Boolean isUsingWhitelist) {
|
||||
this.isUsingWhitelist = isUsingWhitelist;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isUsingWhitelist
|
||||
* @return isUsingWhitelist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsUsingWhitelist() {
|
||||
return isUsingWhitelist;
|
||||
}
|
||||
|
||||
public void setIsUsingWhitelist(Boolean isUsingWhitelist) {
|
||||
this.isUsingWhitelist = isUsingWhitelist;
|
||||
}
|
||||
|
||||
public User blacklist(List<String> blacklist) {
|
||||
this.blacklist = blacklist;
|
||||
return this;
|
||||
}
|
||||
|
||||
public User addBlacklistItem(String blacklistItem) {
|
||||
if (this.blacklist == null) {
|
||||
this.blacklist = new ArrayList<String>();
|
||||
}
|
||||
this.blacklist.add(blacklistItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blacklist
|
||||
* @return blacklist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getBlacklist() {
|
||||
return blacklist;
|
||||
}
|
||||
|
||||
public void setBlacklist(List<String> blacklist) {
|
||||
this.blacklist = blacklist;
|
||||
}
|
||||
|
||||
public User whitelist(List<String> whitelist) {
|
||||
this.whitelist = whitelist;
|
||||
return this;
|
||||
}
|
||||
|
||||
public User addWhitelistItem(String whitelistItem) {
|
||||
if (this.whitelist == null) {
|
||||
this.whitelist = new ArrayList<String>();
|
||||
}
|
||||
this.whitelist.add(whitelistItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whitelist
|
||||
* @return whitelist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getWhitelist() {
|
||||
return whitelist;
|
||||
}
|
||||
|
||||
public void setWhitelist(List<String> whitelist) {
|
||||
this.whitelist = whitelist;
|
||||
}
|
||||
|
||||
public User department(String department) {
|
||||
this.department = department;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get department
|
||||
* @return department
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public User ldapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ldapLogin
|
||||
* @return ldapLogin
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getLdapLogin() {
|
||||
return ldapLogin;
|
||||
}
|
||||
|
||||
public void setLdapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
}
|
||||
|
||||
public User title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public User firstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public User lastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public User isActive(Boolean isActive) {
|
||||
this.isActive = isActive;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isActive
|
||||
* @return isActive
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Boolean isIsActive() {
|
||||
return isActive;
|
||||
}
|
||||
|
||||
public void setIsActive(Boolean isActive) {
|
||||
this.isActive = isActive;
|
||||
}
|
||||
|
||||
public User tutorTab(TutorTab tutorTab) {
|
||||
this.tutorTab = tutorTab;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorTab
|
||||
* @return tutorTab
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public TutorTab getTutorTab() {
|
||||
return tutorTab;
|
||||
}
|
||||
|
||||
public void setTutorTab(TutorTab tutorTab) {
|
||||
this.tutorTab = tutorTab;
|
||||
}
|
||||
|
||||
public User coordinates(List<Coordinate> coordinates) {
|
||||
this.coordinates = coordinates;
|
||||
return this;
|
||||
}
|
||||
|
||||
public User addCoordinatesItem(Coordinate coordinatesItem) {
|
||||
if (this.coordinates == null) {
|
||||
this.coordinates = new ArrayList<Coordinate>();
|
||||
}
|
||||
this.coordinates.add(coordinatesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get coordinates
|
||||
* @return coordinates
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Coordinate> getCoordinates() {
|
||||
return coordinates;
|
||||
}
|
||||
|
||||
public void setCoordinates(List<Coordinate> coordinates) {
|
||||
this.coordinates = coordinates;
|
||||
}
|
||||
|
||||
public User id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public User userName(String userName) {
|
||||
this.userName = userName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userName
|
||||
* @return userName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public User normalizedUserName(String normalizedUserName) {
|
||||
this.normalizedUserName = normalizedUserName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get normalizedUserName
|
||||
* @return normalizedUserName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getNormalizedUserName() {
|
||||
return normalizedUserName;
|
||||
}
|
||||
|
||||
public void setNormalizedUserName(String normalizedUserName) {
|
||||
this.normalizedUserName = normalizedUserName;
|
||||
}
|
||||
|
||||
public User email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public User normalizedEmail(String normalizedEmail) {
|
||||
this.normalizedEmail = normalizedEmail;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get normalizedEmail
|
||||
* @return normalizedEmail
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getNormalizedEmail() {
|
||||
return normalizedEmail;
|
||||
}
|
||||
|
||||
public void setNormalizedEmail(String normalizedEmail) {
|
||||
this.normalizedEmail = normalizedEmail;
|
||||
}
|
||||
|
||||
public User emailConfirmed(Boolean emailConfirmed) {
|
||||
this.emailConfirmed = emailConfirmed;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get emailConfirmed
|
||||
* @return emailConfirmed
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isEmailConfirmed() {
|
||||
return emailConfirmed;
|
||||
}
|
||||
|
||||
public void setEmailConfirmed(Boolean emailConfirmed) {
|
||||
this.emailConfirmed = emailConfirmed;
|
||||
}
|
||||
|
||||
public User passwordHash(String passwordHash) {
|
||||
this.passwordHash = passwordHash;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get passwordHash
|
||||
* @return passwordHash
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPasswordHash() {
|
||||
return passwordHash;
|
||||
}
|
||||
|
||||
public void setPasswordHash(String passwordHash) {
|
||||
this.passwordHash = passwordHash;
|
||||
}
|
||||
|
||||
public User securityStamp(String securityStamp) {
|
||||
this.securityStamp = securityStamp;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get securityStamp
|
||||
* @return securityStamp
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getSecurityStamp() {
|
||||
return securityStamp;
|
||||
}
|
||||
|
||||
public void setSecurityStamp(String securityStamp) {
|
||||
this.securityStamp = securityStamp;
|
||||
}
|
||||
|
||||
public User concurrencyStamp(String concurrencyStamp) {
|
||||
this.concurrencyStamp = concurrencyStamp;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get concurrencyStamp
|
||||
* @return concurrencyStamp
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getConcurrencyStamp() {
|
||||
return concurrencyStamp;
|
||||
}
|
||||
|
||||
public void setConcurrencyStamp(String concurrencyStamp) {
|
||||
this.concurrencyStamp = concurrencyStamp;
|
||||
}
|
||||
|
||||
public User phoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phoneNumber
|
||||
* @return phoneNumber
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public User phoneNumberConfirmed(Boolean phoneNumberConfirmed) {
|
||||
this.phoneNumberConfirmed = phoneNumberConfirmed;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phoneNumberConfirmed
|
||||
* @return phoneNumberConfirmed
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isPhoneNumberConfirmed() {
|
||||
return phoneNumberConfirmed;
|
||||
}
|
||||
|
||||
public void setPhoneNumberConfirmed(Boolean phoneNumberConfirmed) {
|
||||
this.phoneNumberConfirmed = phoneNumberConfirmed;
|
||||
}
|
||||
|
||||
public User twoFactorEnabled(Boolean twoFactorEnabled) {
|
||||
this.twoFactorEnabled = twoFactorEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get twoFactorEnabled
|
||||
* @return twoFactorEnabled
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isTwoFactorEnabled() {
|
||||
return twoFactorEnabled;
|
||||
}
|
||||
|
||||
public void setTwoFactorEnabled(Boolean twoFactorEnabled) {
|
||||
this.twoFactorEnabled = twoFactorEnabled;
|
||||
}
|
||||
|
||||
public User lockoutEnd(OffsetDateTime lockoutEnd) {
|
||||
this.lockoutEnd = lockoutEnd;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lockoutEnd
|
||||
* @return lockoutEnd
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public OffsetDateTime getLockoutEnd() {
|
||||
return lockoutEnd;
|
||||
}
|
||||
|
||||
public void setLockoutEnd(OffsetDateTime lockoutEnd) {
|
||||
this.lockoutEnd = lockoutEnd;
|
||||
}
|
||||
|
||||
public User lockoutEnabled(Boolean lockoutEnabled) {
|
||||
this.lockoutEnabled = lockoutEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lockoutEnabled
|
||||
* @return lockoutEnabled
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isLockoutEnabled() {
|
||||
return lockoutEnabled;
|
||||
}
|
||||
|
||||
public void setLockoutEnabled(Boolean lockoutEnabled) {
|
||||
this.lockoutEnabled = lockoutEnabled;
|
||||
}
|
||||
|
||||
public User accessFailedCount(Integer accessFailedCount) {
|
||||
this.accessFailedCount = accessFailedCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessFailedCount
|
||||
* @return accessFailedCount
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getAccessFailedCount() {
|
||||
return accessFailedCount;
|
||||
}
|
||||
|
||||
public void setAccessFailedCount(Integer accessFailedCount) {
|
||||
this.accessFailedCount = accessFailedCount;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
User user = (User) o;
|
||||
return Objects.equals(this.isOnline, user.isOnline) &&
|
||||
Objects.equals(this.isUsingBlacklist, user.isUsingBlacklist) &&
|
||||
Objects.equals(this.isUsingWhitelist, user.isUsingWhitelist) &&
|
||||
Objects.equals(this.blacklist, user.blacklist) &&
|
||||
Objects.equals(this.whitelist, user.whitelist) &&
|
||||
Objects.equals(this.department, user.department) &&
|
||||
Objects.equals(this.ldapLogin, user.ldapLogin) &&
|
||||
Objects.equals(this.title, user.title) &&
|
||||
Objects.equals(this.firstName, user.firstName) &&
|
||||
Objects.equals(this.lastName, user.lastName) &&
|
||||
Objects.equals(this.isActive, user.isActive) &&
|
||||
Objects.equals(this.tutorTab, user.tutorTab) &&
|
||||
Objects.equals(this.coordinates, user.coordinates) &&
|
||||
Objects.equals(this.id, user.id) &&
|
||||
Objects.equals(this.userName, user.userName) &&
|
||||
Objects.equals(this.normalizedUserName, user.normalizedUserName) &&
|
||||
Objects.equals(this.email, user.email) &&
|
||||
Objects.equals(this.normalizedEmail, user.normalizedEmail) &&
|
||||
Objects.equals(this.emailConfirmed, user.emailConfirmed) &&
|
||||
Objects.equals(this.passwordHash, user.passwordHash) &&
|
||||
Objects.equals(this.securityStamp, user.securityStamp) &&
|
||||
Objects.equals(this.concurrencyStamp, user.concurrencyStamp) &&
|
||||
Objects.equals(this.phoneNumber, user.phoneNumber) &&
|
||||
Objects.equals(this.phoneNumberConfirmed, user.phoneNumberConfirmed) &&
|
||||
Objects.equals(this.twoFactorEnabled, user.twoFactorEnabled) &&
|
||||
Objects.equals(this.lockoutEnd, user.lockoutEnd) &&
|
||||
Objects.equals(this.lockoutEnabled, user.lockoutEnabled) &&
|
||||
Objects.equals(this.accessFailedCount, user.accessFailedCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(isOnline, isUsingBlacklist, isUsingWhitelist, blacklist, whitelist, department, ldapLogin, title, firstName, lastName, isActive, tutorTab, coordinates, id, userName, normalizedUserName, email, normalizedEmail, emailConfirmed, passwordHash, securityStamp, concurrencyStamp, phoneNumber, phoneNumberConfirmed, twoFactorEnabled, lockoutEnd, lockoutEnabled, accessFailedCount);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class User {\n");
|
||||
|
||||
sb.append(" isOnline: ").append(toIndentedString(isOnline)).append("\n");
|
||||
sb.append(" isUsingBlacklist: ").append(toIndentedString(isUsingBlacklist)).append("\n");
|
||||
sb.append(" isUsingWhitelist: ").append(toIndentedString(isUsingWhitelist)).append("\n");
|
||||
sb.append(" blacklist: ").append(toIndentedString(blacklist)).append("\n");
|
||||
sb.append(" whitelist: ").append(toIndentedString(whitelist)).append("\n");
|
||||
sb.append(" department: ").append(toIndentedString(department)).append("\n");
|
||||
sb.append(" ldapLogin: ").append(toIndentedString(ldapLogin)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
||||
sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n");
|
||||
sb.append(" tutorTab: ").append(toIndentedString(tutorTab)).append("\n");
|
||||
sb.append(" coordinates: ").append(toIndentedString(coordinates)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" userName: ").append(toIndentedString(userName)).append("\n");
|
||||
sb.append(" normalizedUserName: ").append(toIndentedString(normalizedUserName)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" normalizedEmail: ").append(toIndentedString(normalizedEmail)).append("\n");
|
||||
sb.append(" emailConfirmed: ").append(toIndentedString(emailConfirmed)).append("\n");
|
||||
sb.append(" passwordHash: ").append(toIndentedString(passwordHash)).append("\n");
|
||||
sb.append(" securityStamp: ").append(toIndentedString(securityStamp)).append("\n");
|
||||
sb.append(" concurrencyStamp: ").append(toIndentedString(concurrencyStamp)).append("\n");
|
||||
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
|
||||
sb.append(" phoneNumberConfirmed: ").append(toIndentedString(phoneNumberConfirmed)).append("\n");
|
||||
sb.append(" twoFactorEnabled: ").append(toIndentedString(twoFactorEnabled)).append("\n");
|
||||
sb.append(" lockoutEnd: ").append(toIndentedString(lockoutEnd)).append("\n");
|
||||
sb.append(" lockoutEnabled: ").append(toIndentedString(lockoutEnabled)).append("\n");
|
||||
sb.append(" accessFailedCount: ").append(toIndentedString(accessFailedCount)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,393 @@
|
||||
package com.uam.wmi.findmytutor.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
|
||||
/**
|
||||
* UserResponseModel
|
||||
*/
|
||||
|
||||
public class UserResponseModel {
|
||||
@SerializedName("id")
|
||||
private String id = null;
|
||||
|
||||
@SerializedName("isOnline")
|
||||
private Boolean isOnline = null;
|
||||
|
||||
@SerializedName("isUsingBlacklist")
|
||||
private Boolean isUsingBlacklist = null;
|
||||
|
||||
@SerializedName("isUsingWhitelist")
|
||||
private Boolean isUsingWhitelist = null;
|
||||
|
||||
@SerializedName("blacklist")
|
||||
private List<String> blacklist = null;
|
||||
|
||||
@SerializedName("whitelist")
|
||||
private List<String> whitelist = null;
|
||||
|
||||
@SerializedName("ldapLogin")
|
||||
private String ldapLogin = null;
|
||||
|
||||
@SerializedName("title")
|
||||
private String title = null;
|
||||
|
||||
@SerializedName("firstName")
|
||||
private String firstName = null;
|
||||
|
||||
@SerializedName("lastName")
|
||||
private String lastName = null;
|
||||
|
||||
@SerializedName("department")
|
||||
private String department = null;
|
||||
|
||||
@SerializedName("userName")
|
||||
private String userName = null;
|
||||
|
||||
@SerializedName("email")
|
||||
private String email = null;
|
||||
|
||||
@SerializedName("isActive")
|
||||
private Boolean isActive = null;
|
||||
|
||||
public UserResponseModel id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UserResponseModel isOnline(Boolean isOnline) {
|
||||
this.isOnline = isOnline;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isOnline
|
||||
* @return isOnline
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsOnline() {
|
||||
return isOnline;
|
||||
}
|
||||
|
||||
public void setIsOnline(Boolean isOnline) {
|
||||
this.isOnline = isOnline;
|
||||
}
|
||||
|
||||
public UserResponseModel isUsingBlacklist(Boolean isUsingBlacklist) {
|
||||
this.isUsingBlacklist = isUsingBlacklist;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isUsingBlacklist
|
||||
* @return isUsingBlacklist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsUsingBlacklist() {
|
||||
return isUsingBlacklist;
|
||||
}
|
||||
|
||||
public void setIsUsingBlacklist(Boolean isUsingBlacklist) {
|
||||
this.isUsingBlacklist = isUsingBlacklist;
|
||||
}
|
||||
|
||||
public UserResponseModel isUsingWhitelist(Boolean isUsingWhitelist) {
|
||||
this.isUsingWhitelist = isUsingWhitelist;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isUsingWhitelist
|
||||
* @return isUsingWhitelist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsUsingWhitelist() {
|
||||
return isUsingWhitelist;
|
||||
}
|
||||
|
||||
public void setIsUsingWhitelist(Boolean isUsingWhitelist) {
|
||||
this.isUsingWhitelist = isUsingWhitelist;
|
||||
}
|
||||
|
||||
public UserResponseModel blacklist(List<String> blacklist) {
|
||||
this.blacklist = blacklist;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UserResponseModel addBlacklistItem(String blacklistItem) {
|
||||
if (this.blacklist == null) {
|
||||
this.blacklist = new ArrayList<String>();
|
||||
}
|
||||
this.blacklist.add(blacklistItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get blacklist
|
||||
* @return blacklist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getBlacklist() {
|
||||
return blacklist;
|
||||
}
|
||||
|
||||
public void setBlacklist(List<String> blacklist) {
|
||||
this.blacklist = blacklist;
|
||||
}
|
||||
|
||||
public UserResponseModel whitelist(List<String> whitelist) {
|
||||
this.whitelist = whitelist;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UserResponseModel addWhitelistItem(String whitelistItem) {
|
||||
if (this.whitelist == null) {
|
||||
this.whitelist = new ArrayList<String>();
|
||||
}
|
||||
this.whitelist.add(whitelistItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whitelist
|
||||
* @return whitelist
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getWhitelist() {
|
||||
return whitelist;
|
||||
}
|
||||
|
||||
public void setWhitelist(List<String> whitelist) {
|
||||
this.whitelist = whitelist;
|
||||
}
|
||||
|
||||
public UserResponseModel ldapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ldapLogin
|
||||
* @return ldapLogin
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLdapLogin() {
|
||||
return ldapLogin;
|
||||
}
|
||||
|
||||
public void setLdapLogin(String ldapLogin) {
|
||||
this.ldapLogin = ldapLogin;
|
||||
}
|
||||
|
||||
public UserResponseModel title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public UserResponseModel firstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public UserResponseModel lastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
public UserResponseModel department(String department) {
|
||||
this.department = department;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get department
|
||||
* @return department
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public UserResponseModel userName(String userName) {
|
||||
this.userName = userName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userName
|
||||
* @return userName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public UserResponseModel email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public UserResponseModel isActive(Boolean isActive) {
|
||||
this.isActive = isActive;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isActive
|
||||
* @return isActive
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsActive() {
|
||||
return isActive;
|
||||
}
|
||||
|
||||
public void setIsActive(Boolean isActive) {
|
||||
this.isActive = isActive;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
UserResponseModel userResponseModel = (UserResponseModel) o;
|
||||
return Objects.equals(this.id, userResponseModel.id) &&
|
||||
Objects.equals(this.isOnline, userResponseModel.isOnline) &&
|
||||
Objects.equals(this.isUsingBlacklist, userResponseModel.isUsingBlacklist) &&
|
||||
Objects.equals(this.isUsingWhitelist, userResponseModel.isUsingWhitelist) &&
|
||||
Objects.equals(this.blacklist, userResponseModel.blacklist) &&
|
||||
Objects.equals(this.whitelist, userResponseModel.whitelist) &&
|
||||
Objects.equals(this.ldapLogin, userResponseModel.ldapLogin) &&
|
||||
Objects.equals(this.title, userResponseModel.title) &&
|
||||
Objects.equals(this.firstName, userResponseModel.firstName) &&
|
||||
Objects.equals(this.lastName, userResponseModel.lastName) &&
|
||||
Objects.equals(this.department, userResponseModel.department) &&
|
||||
Objects.equals(this.userName, userResponseModel.userName) &&
|
||||
Objects.equals(this.email, userResponseModel.email) &&
|
||||
Objects.equals(this.isActive, userResponseModel.isActive);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, isOnline, isUsingBlacklist, isUsingWhitelist, blacklist, whitelist, ldapLogin, title, firstName, lastName, department, userName, email, isActive);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class UserResponseModel {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" isOnline: ").append(toIndentedString(isOnline)).append("\n");
|
||||
sb.append(" isUsingBlacklist: ").append(toIndentedString(isUsingBlacklist)).append("\n");
|
||||
sb.append(" isUsingWhitelist: ").append(toIndentedString(isUsingWhitelist)).append("\n");
|
||||
sb.append(" blacklist: ").append(toIndentedString(blacklist)).append("\n");
|
||||
sb.append(" whitelist: ").append(toIndentedString(whitelist)).append("\n");
|
||||
sb.append(" ldapLogin: ").append(toIndentedString(ldapLogin)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
||||
sb.append(" department: ").append(toIndentedString(department)).append("\n");
|
||||
sb.append(" userName: ").append(toIndentedString(userName)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,48 @@
|
||||
package com.uam.wmi.findmytutor.service;
|
||||
|
||||
import com.uam.wmi.findmytutor.model.Coordinate;
|
||||
import com.uam.wmi.findmytutor.model.JwtToken;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import okhttp3.ResponseBody;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.Body;
|
||||
import retrofit2.http.DELETE;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Header;
|
||||
import retrofit2.http.POST;
|
||||
import retrofit2.http.PUT;
|
||||
import retrofit2.http.Path;
|
||||
|
||||
public interface Coordinates {
|
||||
|
||||
@GET("api/coordinates")
|
||||
Call<List<Coordinate>> getAllCoordinates(@Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/{id}")
|
||||
Call<Coordinate> getCoordinatesById(@Path("id") String id, @Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/user/{userId}")
|
||||
Call<List<Coordinate>> getCoordinatesByUserId(@Path("userId") String userId , @Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/userTop/{userId}")
|
||||
Call<List<Coordinate>> getTopCoordinatesByUserId(@Path("userId") String userId , @Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/top")
|
||||
Call<List<Coordinate>> getTopCoordinates(@Header("Authorization") JwtToken token);
|
||||
|
||||
@GET("api/coordinates/top/online")
|
||||
Call<List<Coordinate>> getOnlineCoordinates(@Header("Authorization") JwtToken token);
|
||||
|
||||
@POST("api/coordinates")
|
||||
Call<ResponseBody> postCoordinate(@Body Coordinate coordinate, @Header("Authorization") JwtToken token);
|
||||
|
||||
@PUT("api/coordinates/{id}")
|
||||
Call<Coordinate> putCoordinatesById(@Path("id") String id, @Header("Authorization") JwtToken token);
|
||||
|
||||
@DELETE("api/coordinates/{id}")
|
||||
Call<Coordinate> deleteCoordinatesById(@Path("id") String id, @Header("Authorization") JwtToken token);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user