All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cosmicpush.gateway.common.PushResponse Maven / Gradle / Ivy

/*
 * Copyright (c) 2014 Jacob D. Parr
 *
 * 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 com.cosmicpush.gateway.common;

import java.util.*;
import org.joda.time.LocalDateTime;

public class PushResponse {

  private String accountId;
  private String apiClientId;
  private String apiRequestId;

  private LocalDateTime createdAt;
  private RequestStatus requestStatus;

  private List notes = new ArrayList();

  private PushResponse() {
  }

  public PushResponse(String accountId, String apiClientId, String apiRequestId, LocalDateTime createdAt, RequestStatus requestStatus, Collection notes) {
    this.accountId = accountId;
    this.apiClientId = apiClientId;
    this.apiRequestId = apiRequestId;

    this.createdAt = createdAt;
    this.requestStatus = requestStatus;

    this.notes.addAll(notes);
  }

  public String getAccountId() {
    return accountId;
  }

  public String getApiClientId() {
    return apiClientId;
  }

  public String getApiRequestId() {
    return apiRequestId;
  }

  public LocalDateTime getCreatedAt() {
    return createdAt;
  }

  public RequestStatus getRequestStatus() {
    return requestStatus;
  }

  public List getNotes() {
    return notes;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy