Skip to content
Snippets Groups Projects

Iss #98 - Initial commit of Github webhooks code

Merged Iss #98 - Initial commit of Github webhooks code
5 unresolved threads
Merged Martin Lowe requested to merge (removed):malowe/master/98 into main
5 unresolved threads
Files
36
/**
* Copyright (c) 2022 Eclipse Foundation
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Author: Martin Lowe <martin.lowe@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipsefoundation.git.eca.api.models;
import java.time.LocalDateTime;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.google.auto.value.AutoValue;
/**
* @author martin
*
*/
@AutoValue
@JsonDeserialize(builder = AutoValue_GithubAccessToken.Builder.class)
public abstract class GithubAccessToken {
public abstract String getToken();
public abstract LocalDateTime getExpiresAt();
public static Builder builder() {
return new AutoValue_GithubAccessToken.Builder();
}
@AutoValue.Builder
@JsonPOJOBuilder(withPrefix = "set")
public abstract static class Builder {
public abstract Builder setToken(String token);
public abstract Builder setExpiresAt(LocalDateTime expiresAt);
public abstract GithubAccessToken build();
}
}
Loading