Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB

  1. package eu.faircode.email;
  2. /*
  3. This file is part of Safe email.
  4. Safe email is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. NetGuard is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
  14. Copyright 2018 by Marcel Bokhorst (M66B)
  15. */
  16. public class TupleMessageEx extends EntityMessage {
  17. public String folderName;
  18. public String folderType;
  19. public int count;
  20. public int unseen;
  21. @Override
  22. public boolean equals(Object obj) {
  23. if (obj instanceof TupleMessageEx) {
  24. TupleMessageEx other = (TupleMessageEx) obj;
  25. return (super.equals(obj) &&
  26. this.folderType.equals(other.folderType) &&
  27. this.count == other.count &&
  28. this.unseen == other.unseen);
  29. }
  30. return super.equals(obj);
  31. }
  32. }