PushConfigurationState.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**
  2. * Nextcloud Android client application
  3. *
  4. * @author Mario Danic
  5. * Copyright (C) 2017 Mario Danic
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.owncloud.android.datamodel;
  21. public class PushArbitraryData {
  22. public String pushToken;
  23. public String deviceIdentifier;
  24. public String deviceIdentifierSignature;
  25. public String userPublicKey;
  26. public boolean shouldBeDeleted;
  27. public PushArbitraryData() {
  28. }
  29. public PushArbitraryData(String pushToken, String deviceIdentifier, String deviceIdentifierSignature,
  30. String userPublicKey, boolean shouldBeDeleted) {
  31. this.pushToken = pushToken;
  32. this.deviceIdentifier = deviceIdentifier;
  33. this.deviceIdentifierSignature = deviceIdentifierSignature;
  34. this.userPublicKey = userPublicKey;
  35. this.shouldBeDeleted = shouldBeDeleted;
  36. }
  37. public String getPushToken() {
  38. return pushToken;
  39. }
  40. public void setPushToken(String pushToken) {
  41. this.pushToken = pushToken;
  42. }
  43. public String getDeviceIdentifier() {
  44. return deviceIdentifier;
  45. }
  46. public void setDeviceIdentifier(String deviceIdentifier) {
  47. this.deviceIdentifier = deviceIdentifier;
  48. }
  49. public String getDeviceIdentifierSignature() {
  50. return deviceIdentifierSignature;
  51. }
  52. public void setDeviceIdentifierSignature(String deviceIdentifierSignature) {
  53. this.deviceIdentifierSignature = deviceIdentifierSignature;
  54. }
  55. public String getUserPublicKey() {
  56. return userPublicKey;
  57. }
  58. public void setUserPublicKey(String userPublicKey) {
  59. this.userPublicKey = userPublicKey;
  60. }
  61. public boolean isShouldBeDeleted() {
  62. return shouldBeDeleted;
  63. }
  64. public void setShouldBeDeleted(boolean shouldBeDeleted) {
  65. this.shouldBeDeleted = shouldBeDeleted;
  66. }
  67. }