/**
 * JBoss, Home of Professional Open Source
 * Copyright Red Hat, Inc., and individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.aerogear.unifiedpush.service.dashboard;

import java.util.Date;

/**
 * The purpose of this class is to act as a "value object" for the Dashboard services.
 * It contains information about a particular PushMessageInformation instance.
 */
public class Application {

    private String name;
    private String id;
    private long totalReceivers;
    private Date submittedDate;

    public Application(String name, String id, long totalReceivers, Date submittedDate) {
        this.name = name;
        this.id = id;
        this.totalReceivers = totalReceivers;
        this.submittedDate = submittedDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getTotalReceivers() {
        return totalReceivers;
    }

    public void setTotalReceivers(long totalReceivers) {
        this.totalReceivers = totalReceivers;
    }

    public Date getSubmittedDate() {
        return submittedDate;
    }

    public void setSubmittedDate(Date submittedDate) {
        this.submittedDate = submittedDate;
    }
}

@@ -1301,511 +1301,1682 @@
     
-public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(String id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public long getTotalReceivers() %7B%0A        return totalReceivers;%0A    %7D%0A%0A    public void setTotalReceivers(long totalReceivers) %7B%0A        this.totalReceivers = totalReceivers;%0A    %7D%0A%0A    public Date getSubmittedDate() %7B%0A        return submittedDate;%0A    %7D%0A
+/**%0A     * The name of the Push Application%0A     *%0A     * @return the name of the Push Application%0A     */%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    /**%0A     * Set the name of the Push Application%0A     *%0A     * @param name of the Push Application%0A     */%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    /**%0A     * The id of the Push Application%0A     *%0A     * @return the id of the Push Application%0A     */%0A    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    /**%0A     * Set the id of the Push Application%0A     *%0A     * @param id of the Push Application%0A     */%0A    public void setId(String id) %7B%0A        this.id = id;%0A    %7D%0A%0A    /**%0A     * Number of active tokens that received the Push Message%0A     *%0A     * @return the number of active tokens that received the Push Message%0A     */%0A    public long getTotalReceivers() %7B%0A        return totalReceivers;%0A    %7D%0A%0A    /**%0A     * Set the number of active tokens that received the Push Message%0A     *%0A     * @param totalReceivers, number of active tokens that received the Push Message%0A     */%0A    public void setTotalReceivers(long totalReceivers) %7B%0A        this.totalReceivers = totalReceivers;%0A    %7D%0A%0A    /**%0A     * The timestamp of when the Push Message was submitted to the Push Networks%0A     *%0A     * @return the timestamp of when the Push Message was submitted to the Push Networks%0A     */%0A    public Date getSubmittedDate() %7B%0A        return submittedDate;%0A    %7D%0A%0A    /**%0A     * Set the timestamp of when the Push Message was submitted to the Push Networks%0A     *%0A     * @param submittedDate, timestamp of when the Push Message was submitted to the Push Networks%0A     */
 %0A   

add javadoc