
com.codeslap.apps.bean.C2DMDevice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codeslap-api Show documentation
Show all versions of codeslap-api Show documentation
Java library to use the apps.codeslap.com API
The newest version!
package com.codeslap.apps.bean;
import org.simpleframework.xml.Default;
import org.simpleframework.xml.DefaultType;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/**
* @author cristian
*/
@Root(name = "c2dm-device")
@Default(DefaultType.FIELD)
public class C2DMDevice {
@Element(name = "id")
private String id;
@Element(name = "device-id")
private String deviceId;
@Element(name = "email")
private String email;
@Element(name = "registration-id")
private String registrationId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getRegistrationId() {
return registrationId;
}
public void setRegistrationId(String registrationId) {
this.registrationId = registrationId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof C2DMDevice)) return false;
C2DMDevice feedback = (C2DMDevice) o;
if (email != null ? !email.equals(feedback.email) : feedback.email != null) return false;
if (id != null ? !id.equals(feedback.id) : feedback.id != null) return false;
if (deviceId != null ? !deviceId.equals(feedback.deviceId) : feedback.deviceId != null) return false;
if (registrationId != null ? !registrationId.equals(feedback.registrationId) : feedback.registrationId != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (deviceId != null ? deviceId.hashCode() : 0);
result = 31 * result + (email != null ? email.hashCode() : 0);
result = 31 * result + (registrationId != null ? registrationId.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "Feedback{" +
"id='" + id + '\'' +
", name='" + deviceId + '\'' +
", email='" + email + '\'' +
", subject='" + registrationId + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy