package com.atlassian.bitbucket.rest.server;

import com.atlassian.bitbucket.rest.RestMapEntity;
import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize
public class RestApplicationProperties extends RestMapEntity {

    private static final String VERSION = "version";
    private static final String BUILD_NUMBER = "buildNumber";
    private static final String BUILD_DATE = "buildDate";
    private static final String DISPLAY_NAME = "displayName";

    public RestApplicationProperties(String version, String buildNumber, String buildDate, String displayName) {
        put(VERSION, version);
        put(BUILD_NUMBER, buildNumber);
        put(BUILD_DATE, buildDate);
        put(DISPLAY_NAME, displayName);
    }

    // REST Documentation Examples

    public static final RestApplicationProperties EXAMPLE = new RestApplicationProperties("2.1.0", "20130123103656677", "1358897885952000", "Example.com Bitbucket");

}
