com.tradeshift.sdk.assignments.domain.AutoAssignmentDeleted Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2018 Tradeshift Inc. and/or its affiliates. All rights reserved.
*/
package com.tradeshift.sdk.assignments.domain;
import java.util.Objects;
import org.apache.commons.lang3.builder.ToStringBuilder;
import com.tradeshift.sdk.core.domain.ContextMsg;
import com.tradeshift.sdk.core.domain.Event;
import com.tradeshift.sdk.core.domain.ID;
import com.tradeshift.sdk.core.domain.User;
import com.tradeshift.sdk.core.domain.UserContext;
public class AutoAssignmentDeleted extends ContextMsg implements Event {
private final ID assigneeId;
public AutoAssignmentDeleted(UserContext ctx, ID assigneeId) {
super(ctx);
this.assigneeId = Objects.requireNonNull(assigneeId);
}
public ID getAssigneeId() {
return assigneeId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
final AutoAssignmentDeleted cmd = (AutoAssignmentDeleted) o;
return Objects.equals(assigneeId, cmd.assigneeId);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), assigneeId);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy