-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added account blocked publisher create,patch abilities
- Loading branch information
1 parent
dd8a426
commit 4aee6ac
Showing
8 changed files
with
159 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/main/java/com/taboola/backstage/model/media/account/AccountBlockedPublishersPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.taboola.backstage.model.media.account; | ||
|
||
import java.util.Objects; | ||
import java.util.Set; | ||
|
||
import com.taboola.backstage.annotations.Required; | ||
import com.taboola.backstage.model.Patch; | ||
|
||
/** | ||
* Created by vladi.m | ||
* Date 16/12/2020 | ||
* Time 11:29 | ||
* Copyright Taboola | ||
*/ | ||
public class AccountBlockedPublishersPatch extends Patch { | ||
|
||
@Required | ||
private Set<String> sites; | ||
|
||
public Set<String> getSites() { | ||
return sites; | ||
} | ||
|
||
public void setSites(Set<String> sites) { | ||
this.sites = sites; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
AccountBlockedPublishersPatch that = (AccountBlockedPublishersPatch) o; | ||
return Objects.equals(sites, that.sites); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(sites); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "AccountBlockedPublishersPatch{" + | ||
"patchOperation=" + patchOperation + | ||
", sites=" + sites + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters