content: package com.allen.moments.v2.model;
  
  public class Photo {
      private Integer postid;
  
      private String url;
  
      public Integer getPostId() {
          return postid;
      }
  
      public void setPostId(Integer postid) {
          this.postid = postid;
      }
  
      public String getUrl() {
          return url;
      }
  
      public void setUrl(String url) {
          this.url = url == null ? null : url.trim();
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          Photo other = (Photo) that;
          return (this.getPostId() == null ? other.getPostId() == null : this.getPostId().equals(other.getPostId()))
              && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getPostId() == null) ? 0 : getPostId().hashCode());
          result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
          return result;
      }
  }