All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ticketmaster.discovery.model.Sale Maven / Gradle / Ivy

There is a newer version: 0.1.8
Show newest version
package com.ticketmaster.discovery.model;

import java.util.Set;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import org.joda.time.DateTime;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@ToString(callSuper = true)
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Sale extends BaseModel {

  @JsonProperty("public")
  private Public publicSale;

  private Set presales;

  @ToString(callSuper = true)
  @Getter
  @Setter
  @EqualsAndHashCode(callSuper = true)
  @NoArgsConstructor
  @AllArgsConstructor
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  public static class Public extends BaseModel {

    private DateTime startDateTime;
    private DateTime endDateTime;
    private Boolean startTBD;
  }
  
  @ToString(callSuper = true)
  @Getter
  @Setter
  @EqualsAndHashCode(callSuper = true)
  @NoArgsConstructor
  @AllArgsConstructor
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  public static class Presale extends BaseModel {

    private DateTime startDateTime;
    private DateTime endDateTime;
    private String name;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy