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

io.voucherify.client.model.campaign.response.CampaignsResponse Maven / Gradle / Ivy

Go to download

Voucherify-java-sdk is a Java client (can be used in Android application as well) which was created to simplify integration with Voucherify backend (http://www.voucherify.io)

There is a newer version: 16.0.2
Show newest version
package io.voucherify.client.model.campaign.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
@ToString
public class CampaignsResponse {

  private String object;

  private Integer total;

  @JsonProperty("data_ref")
  private String dataRef;

  private List campaigns;

  public static CampaignsResponse of(String object, Integer total, String dataRef, List campaignResponses) {
    return new CampaignsResponse(object, total, dataRef, campaignResponses);
  }

  public static CampaignsResponse of(List campaignResponses) {
    return new CampaignsResponse(null, null, null, campaignResponses);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy