fedilab-Android-App/app/src/main/java/app/fedilab/android/client/Entities/PleromaAdmin.java

101 lines
2.5 KiB
Java
Raw Normal View History

2019-01-29 11:34:37 +01:00
/* Copyright 2017 Thomas Schneider
*
2019-05-18 11:10:30 +02:00
* This file is a part of Fedilab
2019-01-29 11:34:37 +01:00
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*
2019-05-18 11:10:30 +02:00
* Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
2019-01-29 11:34:37 +01:00
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
2019-05-18 11:10:30 +02:00
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
2019-01-29 11:34:37 +01:00
* see <http://www.gnu.org/licenses>. */
2019-05-18 11:10:30 +02:00
package app.fedilab.android.client.Entities;
2019-01-29 11:34:37 +01:00
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Thomas on 27/01/2019.
* Manage Entity PleromaAdmin
*/
2020-05-07 16:16:54 +02:00
@SuppressWarnings("unused")
2019-01-29 11:34:37 +01:00
public class PleromaAdmin implements Parcelable {
2019-11-15 16:32:25 +01:00
public static final Creator<PleromaAdmin> CREATOR = new Creator<PleromaAdmin>() {
@Override
public PleromaAdmin createFromParcel(Parcel source) {
return new PleromaAdmin(source);
}
@Override
public PleromaAdmin[] newArray(int size) {
return new PleromaAdmin[size];
}
};
2019-01-29 11:34:37 +01:00
private String nickname;
private String email;
private String password;
private String tags;
2019-11-15 16:32:25 +01:00
2019-09-06 17:55:14 +02:00
public PleromaAdmin() {
}
2019-01-29 11:34:37 +01:00
2020-05-07 16:16:54 +02:00
private PleromaAdmin(Parcel in) {
2019-11-15 16:32:25 +01:00
this.nickname = in.readString();
this.email = in.readString();
this.password = in.readString();
this.tags = in.readString();
}
2019-01-29 11:34:37 +01:00
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getTags() {
return tags;
}
public void setTags(String tags) {
this.tags = tags;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.nickname);
dest.writeString(this.email);
dest.writeString(this.password);
dest.writeString(this.tags);
}
}