-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1444 from firebase/version-4.2.0
Version 4.2.0
- Loading branch information
Showing
182 changed files
with
1,031 additions
and
418 deletions.
There are no files selected for viewing
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
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
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
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
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
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
16 changes: 14 additions & 2 deletions
16
app/src/main/java/com/firebase/uidemo/database/AbstractChat.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
package com.firebase.uidemo.database; | ||
|
||
import android.support.annotation.NonNull; | ||
import android.support.annotation.Nullable; | ||
|
||
/** | ||
* Common interface for chat messages, helps share code between RTDB and Firestore examples. | ||
*/ | ||
public abstract class AbstractChat { | ||
|
||
@Nullable | ||
public abstract String getName(); | ||
|
||
public abstract void setName(@Nullable String name); | ||
|
||
@Nullable | ||
public abstract String getMessage(); | ||
|
||
public abstract void setMessage(@Nullable String message); | ||
|
||
@NonNull | ||
public abstract String getUid(); | ||
|
||
public abstract void setUid(@NonNull String uid); | ||
|
||
@Override | ||
public abstract int hashCode(); | ||
public abstract boolean equals(@Nullable Object obj); | ||
|
||
@Override | ||
public abstract boolean equals(Object obj); | ||
public abstract int hashCode(); | ||
|
||
} |
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
Oops, something went wrong.