Created
August 27, 2016 13:56
-
-
Save MostafaAnter/3b3a5c7c9074d31c142e52a823ca1b9e to your computer and use it in GitHub Desktop.
استركشر ال objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package perfect_apps.makonway.models; | |
import io.realm.RealmObject; | |
import io.realm.annotations.RealmClass; | |
/** | |
* Created by mostafa on 30/04/16. | |
*/ | |
@RealmClass | |
public class Groups extends RealmObject { | |
private String name; | |
private String groupId; | |
private boolean MAKType; | |
private boolean group; | |
public Groups(){ | |
} | |
public Groups(String name, boolean MAKType, boolean group){ | |
this.name = name; | |
this.MAKType = MAKType; | |
this.group = group; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public boolean isMAKType() { | |
return MAKType; | |
} | |
public void setMAKType(boolean MAKType) { | |
this.MAKType = MAKType; | |
} | |
public boolean isGroup() { | |
return group; | |
} | |
public void setGroup(boolean group) { | |
this.group = group; | |
} | |
public String getGroupId() { | |
return groupId; | |
} | |
public void setGroupId(String groupId) { | |
this.groupId = groupId; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package perfect_apps.makonway.models; | |
import io.realm.RealmObject; | |
import io.realm.annotations.RealmClass; | |
/** | |
* Created by mostafa on 05/05/16. | |
*/ | |
@RealmClass | |
public class Messages extends RealmObject { | |
private String message; | |
private Long timestamp; | |
private String author; | |
public Messages(){ | |
} | |
public Messages(String message, String author, Long timestamp){ | |
this.message = message; | |
this.author = author; | |
this.timestamp = timestamp; | |
} | |
public String getMessage() { | |
return message; | |
} | |
public void setMessage(String message) { | |
this.message = message; | |
} | |
public Long getTimestamp() { | |
return timestamp; | |
} | |
public void setTimestamp(Long timestamp) { | |
this.timestamp = timestamp; | |
} | |
public String getAuthor() { | |
return author; | |
} | |
public void setAuthor(String author) { | |
this.author = author; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package perfect_apps.makonway.models; | |
import com.google.firebase.database.IgnoreExtraProperties; | |
/** | |
* Created by mostafa on 25/04/16. | |
*/ | |
@IgnoreExtraProperties | |
public class UserFireBasePOJO{ | |
private String name; | |
private String email; | |
private Long phone; | |
private String avatarUrl; | |
private int status; | |
private Long timestampJoined; | |
public UserFireBasePOJO(){ | |
} | |
public UserFireBasePOJO(String name, String email, Long phone, int status, Long timestampJoined, String avatarUrl){ | |
this.name = name; | |
this.email = email; | |
this.phone = phone; | |
this.status = status; | |
this.timestampJoined = timestampJoined; | |
this.avatarUrl = avatarUrl; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
public Long getPhone() { | |
return phone; | |
} | |
public void setPhone(Long phone) { | |
this.phone = phone; | |
} | |
public Long getTimestampJoined() { | |
return timestampJoined; | |
} | |
public void setTimestampJoined(Long timestampJoined) { | |
this.timestampJoined = timestampJoined; | |
} | |
public String getAvatarUrl() { | |
return avatarUrl; | |
} | |
public void setAvatarUrl(String avatarUrl) { | |
this.avatarUrl = avatarUrl; | |
} | |
public int getStatus() { | |
return status; | |
} | |
public void setStatus(int status) { | |
this.status = status; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment