package com.juick.server.helpers; import org.apache.commons.lang3.StringUtils; /** * Created by vitalyster on 09.02.2016. */ public class EmailOpts { private String email; private String subscriptionHour; public EmailOpts(String email, int subscriptionHour) { this.email = email; this.subscriptionHour = StringUtils.leftPad(String.format("%d", subscriptionHour), 2, "0"); } public String getSubscriptionHour() { return subscriptionHour; } public String getEmail() { return email; } }