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

io.fruitful.ecomerce.dto.MagentoMediaDto Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package io.fruitful.ecomerce.dto;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class MagentoMediaDto {
	private Long id;

	private String mediaType;

	@JsonProperty("label")
	private String label;

	@JsonProperty("position")
	private Integer position;

	@JsonProperty("disabled")
	private boolean disabled;

	@JsonProperty("types")
	private List types;

	private String fileUrl;

	@JsonGetter("mediaType")
	public String getMediaType() {
		return mediaType;
	}

	@JsonSetter("media_type")
	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}

	@JsonGetter("fileUrl")
	public String getFileUrl() {
		return fileUrl;
	}

	@JsonSetter("file")
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy