// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/util/UnixDate.java
// public class UnixDate {
// 
//     public static Date toDate(long unixTimestamp) {
//         return new Date(unixTimestamp * 1000);
//     }
// 
//     public static long toUnixTimestamp(Date date) {
//         return date.getTime() / 1000;
//     }
// 
// }


import com.apwglobal.bd.BD;
import com.apwglobal.nice.util.UnixDate;
import java.util.Date;
import java.util.List;
import java.util.Optional;

        public Builder thumbnailUrl(String thumbnailUrl) {
            this.thumbnailUrl = thumbnailUrl;
            return this;
        }

        public Builder startQuantity(int startQuantity) {
            this.startQuantity = startQuantity;
            return this;
        }

        public Builder soldQuantity(int soldQuantity) {
            this.soldQuantity = soldQuantity;
            return this;
        }

        public Builder quantityType(int quantityType) {
            this.quantityType = ItemQuantityType.VALUES.get(quantityType);
            return this;
        }

        public Builder startTime(long startTime) {
            this.startTime = UnixDate.toDate(startTime);
            return this;
        }

        public Builder endTime(long endTime) {
            if (endTime == 0) {
                this.endTime = Optional.empty();
            } else {
// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/util/UnixDate.java
// public class UnixDate {
// 
//     public static Date toDate(long unixTimestamp) {
//         return new Date(unixTimestamp * 1000);
//     }
// 
//     public static long toUnixTimestamp(Date date) {
//         return date.getTime() / 1000;
//     }
// 
// }


// Path: allegro-nice-domain/src/main/java/com/apwglobal/nice/domain/Auction.java
import com.apwglobal.bd.BD;
import com.apwglobal.nice.util.UnixDate;
import java.util.Date;
import java.util.List;
import java.util.Optional;


        public Builder thumbnailUrl(String thumbnailUrl) {
            this.thumbnailUrl = thumbnailUrl;
            return this;
        }

        public Builder startQuantity(int startQuantity) {
            this.startQuantity = startQuantity;
            return this;
        }

        public Builder soldQuantity(int soldQuantity) {
            this.soldQuantity = soldQuantity;
            return this;
        }

        public Builder quantityType(int quantityType) {
            this.quantityType = ItemQuantityType.VALUES.get(quantityType);
            return this;
        }

        public Builder startTime(long startTime) {
            this.startTime = UnixDate.toDate(startTime);
            return this;
        }

        public Builder endTime(long endTime) {
            if (endTime == 0) {
                this.endTime = Optional.empty();
            } else {
                this.endTime = Optional.of(UnixDate.toDate(endTime));