
io.getlime.push.model.response.ListOfUsersFromCampaignResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powerauth-push-model Show documentation
Show all versions of powerauth-push-model Show documentation
PowerAuth Push Server RESTful Model Classes
/*
* Copyright 2016 Wultra s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.getlime.push.model.response;
import io.getlime.push.model.entity.ListOfUsers;
import lombok.Getter;
import lombok.Setter;
import java.util.Objects;
/**
* Response used for getting a list of users from certain campaign
*
* @author Martin Tupy, [email protected]
*/
@Getter
@Setter
public class ListOfUsersFromCampaignResponse {
/**
* Campaign ID.
*/
private Long campaignId;
/**
* List of users.
*/
private ListOfUsers users;
/**
* Default constructor.
*/
public ListOfUsersFromCampaignResponse() {
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListOfUsersFromCampaignResponse that = (ListOfUsersFromCampaignResponse) o;
if (!Objects.equals(campaignId, that.campaignId)) {
return false;
}
return Objects.equals(users, that.users);
}
@Override
public int hashCode() {
int result = campaignId != null ? campaignId.hashCode() : 0;
result = 31 * result + (users != null ? users.hashCode() : 0);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy