/*
 *   Copyright (c) 2013 Intellectual Reserve, Inc.  All rights reserved.
 *
 *   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 cf.client.model;

import cf.common.JsonObject;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.net.URI;

/**
 * @author Mike Heath <elcapo@gmail.com>
 */
public class Info extends JsonObject {

	private final String name;
	private final Integer version;
	private final URI authorizationEndpoint;
	private final URI tokenEndpoint;

	public Info(
			@JsonProperty("name") String name,
			@JsonProperty("version") Integer version,
			@JsonProperty("authorization_endpoint") URI authorizationEndpoint,
			@JsonProperty("token_endpoint") URI tokenEndpoint) {
		this.name = name;
		this.version = version;
		this.authorizationEndpoint = authorizationEndpoint;
		this.tokenEndpoint = tokenEndpoint;
	}

	public String getName() {
		return name;
	}

	public Integer getVersion() {
		return version;
	}

	public URI getAuthorizationEndpoint() {
		return authorizationEndpoint;
	}

	public URI getTokenEndpoint() {
		return tokenEndpoint;
	}
}

@@ -678,16 +678,38 @@
 model;%0A%0A
+import java.net.URI;%0A%0A
 import c
@@ -729,16 +729,17 @@
 Object;%0A
+%0A
 import c
@@ -785,38 +785,16 @@
 perty;%0A%0A
-import java.net.URI;%0A%0A
 /**%0A * @
@@ -1009,16 +1009,95 @@
 ndpoint;
+%0A%09private final URI loggingEndpoint;%0A%09private final URI dopplerLoggingEndpoint;
 %0A%0A%09publi
@@ -1309,16 +1309,147 @@
 Endpoint
+,%0A%09%09%09@JsonProperty(%22doppler_logging_endpoint%22) URI dopplerLoggingEndpoint,%0A%09%09%09@JsonProperty(%22logging_endpoint%22) URI loggingEndpoint
 ) %7B%0A%09%09th
@@ -1574,32 +1574,130 @@
  tokenEndpoint;%0A
+%09%09this.dopplerLoggingEndpoint = dopplerLoggingEndpoint;%0A%09%09this.loggingEndpoint = loggingEndpoint;%0A
 %09%7D%0A%0A%09public Stri
@@ -1885,32 +1885,32 @@
 kenEndpoint() %7B%0A
-
 %09%09return tokenEn
@@ -1920,10 +1920,156 @@
 int;%0A%09%7D%0A
+%09%0A%09public URI getLoggingEndpoint() %7B%0A%09%09return loggingEndpoint;%0A%09%7D%0A%09%0A%09public URI getDopplerLoggingEndpoint() %7B%0A%09%09return dopplerLoggingEndpoint;%0A%09%7D%0A
 %7D%0A

Add logging_endpoint and doppler_logging_endpoint